"Fossies" - the Fresh Open Source Software Archive

Member "singular-4.2.1/make_tar.sh" (9 Jun 2021, 1900 Bytes) of package /linux/misc/singular-4.2.1.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) Bash source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file. See also the latest Fossies "Diffs" side-by-side code changes report for "make_tar.sh": 4.2.0p3_vs_4.2.1.

    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 
    6 set -e
    7 
    8 TARVERSION=4.2.0p3
    9 VERSION=4.2.0
   10 BUILD_DIR=/tmp/tst2
   11 export VERSION TARVERSION BUILD_DIR
   12 
   13 # sanity check
   14 if test -e $BUILD_DIR/singularconfig.h
   15 then
   16 
   17 rm -rf singular-$VERSION
   18 git archive --prefix=singular-$VERSION/ HEAD |tar xf -
   19 mkdir singular-$VERSION/doc
   20 cp doc/*.* singular-$VERSION/doc/.
   21 mkdir singular-$VERSION/doc/images
   22 cp doc/images/* singular-$VERSION/doc/images/.
   23 
   24 command rm singular-$VERSION/.gdbinit singular-$VERSION/*/.gdbinit singular-$VERSION/*/*/.gdbinit singular-$VERSION/*/*/*/.gdbinit
   25 command rm singular-$VERSION/IntegerProgramming/README
   26 cd singular-$VERSION
   27 ./autogen.sh
   28 cd ..
   29 command rm -rf singular-$VERSION/autom4te.cache
   30 command rm -rf singular-$VERSION/*/autom4te.cache
   31 command rm -rf singular-$VERSION/*/*/autom4te.cache
   32 command rm -rf singular-$VERSION/omalloc/Misc
   33 command rm -rf singular-$VERSION/Singular/LIB/surfex
   34 command rm -rf singular-$VERSION/Singular/cnf2ideal.py
   35 command rm -rf singular-$VERSION/kernel/old singular-$VERSION/kernel/sample
   36 command rm -rf singular-$VERSION/dox/Doxyfile.html.all singular-$VERSION/dox/Doxyfile.in1 singular-$VERSION/dox/Doxyfile.latex.short singular-$VERSION/dox/readme
   37 command rm singular-$VERSION/factory/ConwayList.txt
   38 command rm -rf singular-$VERSION/logo  singular-$VERSION/standalone.test  singular-$VERSION/templates  singular-$VERSION/tests
   39 cp $BUILD_DIR/redhat/singular.spec singular-$VERSION/redhat/singular.spec
   40 cp $BUILD_DIR/Singular/all.lib  singular-$VERSION/Singular/LIB/.
   41 tar cf singular-$TARVERSION.tar singular-$VERSION
   42 gzip -9 -f singular-$TARVERSION.tar
   43 command rm -rf singular-$VERSION
   44 
   45 else
   46   echo BUILD_DIR is not set correctly, use
   47   echo make dist
   48   echo in a configured directory
   49   exit 1
   50 fi