source: git/make_tar.sh @ 0874066

jengelh-datetimespielwiese
Last change on this file since 0874066 was 0874066, checked in by Hans Schoenemann <hannes@…>, 22 months ago
adapt make_tar.sh to doc-build
  • Property mode set to 100755
File size: 1.9 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.2.0p3
9VERSION=4.2.0
10BUILD_DIR=/tmp/tst2
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 -
19mkdir singular-$VERSION/doc
20cp doc/*.* singular-$VERSION/doc/.
21mkdir singular-$VERSION/doc/images
22cp doc/images/* singular-$VERSION/doc/images/.
23
24command rm singular-$VERSION/.gdbinit singular-$VERSION/*/.gdbinit singular-$VERSION/*/*/.gdbinit singular-$VERSION/*/*/*/.gdbinit
25command rm singular-$VERSION/IntegerProgramming/README
26cd singular-$VERSION
27./autogen.sh
28cd ..
29command rm -rf singular-$VERSION/autom4te.cache
30command rm -rf singular-$VERSION/*/autom4te.cache
31command rm -rf singular-$VERSION/*/*/autom4te.cache
32command rm -rf singular-$VERSION/omalloc/Misc
33command rm -rf singular-$VERSION/Singular/LIB/surfex
34command rm -rf singular-$VERSION/Singular/cnf2ideal.py
35command rm -rf singular-$VERSION/kernel/old singular-$VERSION/kernel/sample
36command rm -rf singular-$VERSION/dox/Doxyfile.html.all singular-$VERSION/dox/Doxyfile.in1 singular-$VERSION/dox/Doxyfile.latex.short singular-$VERSION/dox/readme
37command rm singular-$VERSION/factory/ConwayList.txt
38command rm -rf singular-$VERSION/logo  singular-$VERSION/standalone.test  singular-$VERSION/templates  singular-$VERSION/tests
39cp $BUILD_DIR/redhat/singular.spec singular-$VERSION/redhat/singular.spec
40cp $BUILD_DIR/Singular/all.lib  singular-$VERSION/Singular/LIB/.
41tar cf singular-$TARVERSION.tar singular-$VERSION
42gzip -9 -f singular-$TARVERSION.tar
43command rm -rf singular-$VERSION
44
45else
46  echo BUILD_DIR is not set correctly, use
47  echo make dist
48  echo in a configured directory
49  exit 1
50fi
Note: See TracBrowser for help on using the repository browser.