source: git/make_tar.sh @ 621d20

spielwiese
Last change on this file since 621d20 was 6f8707, checked in by Hans Schoenemann <hannes@…>, 4 years ago
fix: typo
  • Property mode set to 100755
File size: 1.7 KB
Line 
1#!/usr/bin/env bash
2# Hannes helper to build tar files for the ftp server
3
4set -e
5
6TARVERSION=4.1.3p2
7VERSION=4.1.3
8INSTALL_DIR=/tmp2/wawa-i
9BUILD_DIR=/tmp2/wawa
10export VERSION TARVERSION INSTALL_DIR BUILD_DIR
11
12git archive --prefix=singular-$VERSION/ HEAD |tar xf -
13mkdir singular-$VERSION/doc
14cp doc/*.man singular-$VERSION/doc/.
15cp doc/singular.idx singular-$VERSION/doc/.
16if test -e doc/doc.tbz2
17then
18  cp doc/doc.tbz2 singular-$VERSION/doc/.
19fi
20
21command rm singular-$VERSION/.gdbinit singular-$VERSION/*/.gdbinit singular-$VERSION/*/*/.gdbinit singular-$VERSION/*/*/*/.gdbinit
22command rm singular-$VERSION/IntegerProgramming/README
23command rm -rf singular-$VERSION/modules
24command rm -rf singular-$VERSION/factory/old
25cd singular-$VERSION
26./autogen.sh
27cd ..
28command rm -rf singular-$VERSION/autom4te.cache
29command rm -rf singular-$VERSION/*/autom4te.cache
30command rm -rf singular-$VERSION/*/*/autom4te.cache
31command rm -rf singular-$VERSION/omalloc/Misc
32command rm -rf singular-$VERSION/Singular/LIB/surfex
33command rm -rf singular-$VERSION/Singular/cnf2ideal.py
34command rm -rf singular-$VERSION/kernel/old singular-$VERSION/kernel/sample
35command rm -rf singular-$VERSION/dox/Doxyfile.html.all singular-$VERSION/dox/Doxyfile.in1 singular-$VERSION/dox/Doxyfile.latex.short singular-$VERSION/dox/readme
36command rm singular-$VERSION/factory/ConwayList.txt
37command rm -rf singular-$VERSION/logo  singular-$VERSION/standalone.test  singular-$VERSION/templates  singular-$VERSION/tests
38cp $BUILD_DIR/redhat/singular.spec singular-$VERSION/redhat/singular.spec
39cp $INSTALL_DIR/share/singular/LIB/all.lib  singular-$VERSION/Singular/LIB/.
40tar cf singular-$TARVERSION.tar singular-$VERSION
41gzip -9 -f singular-$TARVERSION.tar
42command rm -rf singular-$VERSION
Note: See TracBrowser for help on using the repository browser.