source: git/make_tar.sh @ 2617fca

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