source: git/make_tar.sh @ 8f5493

spielwiese
Last change on this file since 8f5493 was 8f5493, checked in by Hans Schoenemann <hannes@…>, 4 years ago
simplified maake_tar.sh: no INSTALL_DIR
  • Property mode set to 100755
File size: 2.0 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.1.3p2
9VERSION=4.1.3
10BUILD_DIR=/tmp2/wawa
11export VERSION TARVERSION BUILD_DIR
12
13# sanity check
14if test -e $BUILD_DIR/singularconfig.h
15then
16
17git archive --prefix=singular-$VERSION/ HEAD |tar xf -
18mkdir singular-$VERSION/doc
19cp doc/*.man singular-$VERSION/doc/.
20cp doc/singular.idx singular-$VERSION/doc/.
21if test -e doc/doc.tbz2
22then
23  cp doc/doc.tbz2 singular-$VERSION/doc/.
24fi
25
26command rm singular-$VERSION/.gdbinit singular-$VERSION/*/.gdbinit singular-$VERSION/*/*/.gdbinit singular-$VERSION/*/*/*/.gdbinit
27command rm singular-$VERSION/IntegerProgramming/README
28command rm -rf singular-$VERSION/modules
29command rm -rf singular-$VERSION/factory/old
30cd singular-$VERSION
31./autogen.sh
32cd ..
33command rm -rf singular-$VERSION/autom4te.cache
34command rm -rf singular-$VERSION/*/autom4te.cache
35command rm -rf singular-$VERSION/*/*/autom4te.cache
36command rm -rf singular-$VERSION/omalloc/Misc
37command rm -rf singular-$VERSION/Singular/LIB/surfex
38command rm -rf singular-$VERSION/Singular/cnf2ideal.py
39command rm -rf singular-$VERSION/kernel/old singular-$VERSION/kernel/sample
40command rm -rf singular-$VERSION/dox/Doxyfile.html.all singular-$VERSION/dox/Doxyfile.in1 singular-$VERSION/dox/Doxyfile.latex.short singular-$VERSION/dox/readme
41command rm singular-$VERSION/factory/ConwayList.txt
42command rm -rf singular-$VERSION/logo  singular-$VERSION/standalone.test  singular-$VERSION/templates  singular-$VERSION/tests
43cp $BUILD_DIR/redhat/singular.spec singular-$VERSION/redhat/singular.spec
44cp $BUILD_DIR/Singular/all.lib  singular-$VERSION/Singular/LIB/.
45tar cf singular-$TARVERSION.tar singular-$VERSION
46gzip -9 -f singular-$TARVERSION.tar
47command rm -rf singular-$VERSION
48
49else
50  echo BUILD_DIR is not set correctly, use
51  echo make dist
52  echo in a configured directory
53  exit 1
54fi
Note: See TracBrowser for help on using the repository browser.