source: git/make_tar.sh @ 914b60

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