source: git/make_tar.sh @ 0f1f79

spielwiese
Last change on this file since 0f1f79 was 0f1f79, checked in by Hans Schoenemann <hannes@…>, 3 years ago
new version numbers: make_tar.sh
  • Property mode set to 100755
File size: 1.9 KB
RevLine 
[4de3dc]1#!/usr/bin/env bash
2# Hannes helper to build tar files for the ftp server
[063360]3# for the patch-versions (version between official releases x.x.x)
4# for official versions: use "make dist"/"make distcheck"
[4de3dc]5
6set -e
[2570f08]7
[0f1f79]8TARVERSION=4.2.1p1
9VERSION=4.2.1
[0874066]10BUILD_DIR=/tmp/tst2
[8f5493]11export VERSION TARVERSION BUILD_DIR
[724581c]12
[063360]13# sanity check
14if test -e $BUILD_DIR/singularconfig.h
15then
16
[0874066]17rm -rf singular-$VERSION
[724581c]18git archive --prefix=singular-$VERSION/ HEAD |tar xf -
19mkdir singular-$VERSION/doc
[0874066]20cp doc/*.* singular-$VERSION/doc/.
21mkdir singular-$VERSION/doc/images
22cp doc/images/* singular-$VERSION/doc/images/.
[fe8ff2]23
[6b08c9e]24command rm singular-$VERSION/.gdbinit singular-$VERSION/*/.gdbinit singular-$VERSION/*/*/.gdbinit singular-$VERSION/*/*/*/.gdbinit
[1a1f34b]25command rm singular-$VERSION/IntegerProgramming/README
[6b08c9e]26cd singular-$VERSION
27./autogen.sh
28cd ..
[1a1f34b]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
[2570f08]39cp $BUILD_DIR/redhat/singular.spec singular-$VERSION/redhat/singular.spec
[8f5493]40cp $BUILD_DIR/Singular/all.lib  singular-$VERSION/Singular/LIB/.
[5afddc]41tar cf singular-$TARVERSION.tar singular-$VERSION
42gzip -9 -f singular-$TARVERSION.tar
[724581c]43command rm -rf singular-$VERSION
[063360]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.