source: git/make_tar.sh

spielwiese
Last change on this file was 52f77c, checked in by Hans Schoenemann <hannes@…>, 7 months ago
make_tar: 4.3.1
  • Property mode set to 100755
File size: 1.8 KB
Line 
1#!/usr/bin/env bash
2# Hannes helper to build tar files for the ftp server
3# for the patch-versions (version between official releases x.x.x)
4# for official versions: use "make dist"/"make distcheck"
5
6set -e
7
8TARVERSION=4.3.1
9VERSION=4.3.1
10BUILD_DIR=/tmp/wawa
11export VERSION TARVERSION BUILD_DIR
12
13# sanity check
14if test -e $BUILD_DIR/singularconfig.h
15then
16
17rm -rf singular-$VERSION
18git archive --prefix=singular-$VERSION/ HEAD |tar xf -
19
20command rm singular-$VERSION/.gdbinit singular-$VERSION/*/.gdbinit singular-$VERSION/*/*/.gdbinit singular-$VERSION/*/*/*/.gdbinit
21command rm singular-$VERSION/IntegerProgramming/README
22cp doc/doc.tbz2 singular-$VERSION/doc/.
23cd singular-$VERSION
24./autogen.sh
25cd ..
26command rm -rf singular-$VERSION/autom4te.cache
27command rm -rf singular-$VERSION/*/autom4te.cache
28command rm -rf singular-$VERSION/*/*/autom4te.cache
29command rm -rf singular-$VERSION/omalloc/Misc
30command rm -rf singular-$VERSION/Singular/LIB/surfex
31command rm -rf singular-$VERSION/Singular/cnf2ideal.py
32command rm -rf singular-$VERSION/kernel/old singular-$VERSION/kernel/sample
33command rm -rf singular-$VERSION/dox/Doxyfile.html.all singular-$VERSION/dox/Doxyfile.in1 singular-$VERSION/dox/Doxyfile.latex.short singular-$VERSION/dox/readme
34command rm singular-$VERSION/factory/ConwayList.txt
35command rm -rf singular-$VERSION/logo  singular-$VERSION/standalone.test  singular-$VERSION/templates  singular-$VERSION/tests
36cp $BUILD_DIR/redhat/singular.spec singular-$VERSION/redhat/singular.spec
37cp $BUILD_DIR/Singular/all.lib  singular-$VERSION/Singular/LIB/.
38tar cf singular-$TARVERSION.tar singular-$VERSION
39gzip -9 -f singular-$TARVERSION.tar
40command rm -rf singular-$VERSION
41
42else
43  echo BUILD_DIR is not set correctly, use
44  echo make dist
45  echo in a configured directory
46  exit 1
47fi
Note: See TracBrowser for help on using the repository browser.