#!/bin/bash -e #--------------------------------------------------------------------- # The script below was used previously to build the following tarball # in this directory: # upstream-basilisk.tar.gz # If you re-execute the script, it will delete the tarball and try to # re-create and update it. THIS WILL QUITE POSSIBLY FAIL. BACK-UP A # COPY OF THE DIRECTORY. #--------------------------------------------------------------------- REPACKDIR=dltemp TARBALL=upstream-basilisk.tar.gz set -e rm -fr $TARBALL rm -fr $REPACKDIR mkdir $REPACKDIR pushd $REPACKDIR git clone \ https://repo.palemoon.org/Basilisk-Dev/Basilisk.git \ basilisk pushd basilisk git submodule init git submodule update for x in ../../*.spcpat do patch -p1 < $x done rm -fr `find . -name .git` settreedate . popd tar zcf $TARBALL basilisk tardate $TARBALL mv $TARBALL .. popd rm -fr $REPACKDIR ls -l $TARBALL echo $0: Done