Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place.
Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place.
| Download
GAP 4.8.9 installation with standard packages -- copy to your CoCalc project to get it
Project: cocalc-sagemath-dev-slelievre
Views: 418346#!/bin/sh -e1#2# This script generates a .tar.gz, .tar.bz2 and -win.zip for ANUPQ.3# This requires that a tag has been set of the form "v3.1". You then4# may invoke this script like this:5# ./make_dist.sh 3.16# and the rest happens automatically.7# If a checkout of the website repository is present, this script8# also copies relevant files (PackageInfo.g, documentation) there.9#10# TODO: Right now this only works in a git clone of the repository;11# make it possible to also use this in a Mercurial clone, by12# using "hg export" instead of "git archive"1314if [ $# -lt 1 ]; then15echo "Usage: $0 <version> [<tag-or-date>]"16exit 117fi1819PKG="anupq"20VER=$121if [ $# -lt 2 ]; then22REF=v$VER # a 'tag' by default, but allow overriding it23else24REF=$225fi2627FULLPKG="$PKG-$VER"2829SRC_DIR=$PWD30DEST_DIR=$PWD/..31#DEST_DIR=/tmp32WEB_DIR=$SRC_DIR/$PKG.gh-pages3334# Clean any remains of previous export attempts35rm -rf $DEST_DIR/$FULLPKG*3637echo "Exporting repository content for ref '$REF'"38if [ -d .git ] ; then39git archive --prefix=$FULLPKG/ $REF | tar xf - -C $DEST_DIR/40elif [ -d .hg ] ; then41hg archive -r $REF $DEST_DIR/$FULLPKG42else43echo "Error, only git and mercurial repositories are currently supported"44exit 145fi4647echo "Creating tarball $FULLPKG.tar"48cd $DEST_DIR/$FULLPKG49rm -f .git* .hg* .cvs*5051# Build documentation and later remove aux files created by this.52echo "Building GAP package documentation"53cd $DEST_DIR/$FULLPKG/doc54./make_doc #> /dev/null 2> /dev/null55rm -f \56manual.example*.tst \57manual.aux \58manual.bbl \59manual.blg \60manual.idx \61manual.ilg \62manual.ind \63manual.log \64manual.mst \65manual.toc6667echo "Building documentation for standalone binary"68cd $DEST_DIR/$FULLPKG/standalone-doc69for i in 1 2 3 ; do70latex guide.tex > /dev/null 2> /dev/null71done72for i in 1 2 3 ; do73pdflatex guide.tex > /dev/null 2> /dev/null74done75rm -f guide.aux guide.log guide.toc7677cd $DEST_DIR78tar cf $FULLPKG.tar $FULLPKG7980echo "Compressing (using gzip) tarball $FULLPKG.tar.gz"81gzip -9c $FULLPKG.tar > $FULLPKG.tar.gz8283echo "Compressing (using bzip2) tarball $FULLPKG.tar.gz"84bzip2 -9c $FULLPKG.tar > $FULLPKG.tar.bz28586# TODO: The name "-win.zip" may carries additional meaning, such as text87# files converted to windows line endings; or it might be expected to88# contained pre-compiled binaries.89# However, GAP insists on the suffix "-win.zip", so we keep using that for now90# (instead of plain .zip).91echo "Zipping $FULLPKG-win.zip..."92zip -r9 --quiet $FULLPKG-win.zip $FULLPKG939495# Update website repository if available96if [ -d $WEB_DIR ] ; then97echo "Updating website"98cd $WEB_DIR99cp $DEST_DIR/$FULLPKG/README .100cp $DEST_DIR/$FULLPKG/PackageInfo.g .101rm -rf doc/102mkdir -p doc/103cp $DEST_DIR/$FULLPKG/htm/*.htm doc/104cp $DEST_DIR/$FULLPKG/doc/manual.pdf doc/105cp $DEST_DIR/$FULLPKG/doc/manual.dvi doc/106cp $DEST_DIR/$FULLPKG/standalone-doc/guide.pdf doc/107cp $DEST_DIR/$FULLPKG/standalone-doc/guide.dvi doc/108fi109110echo "Done:"111cd $DEST_DIR112ls -l $FULLPKG.tar.gz $FULLPKG.tar.bz2 $FULLPKG-win.zip113114exit 0115116117