#!/bin/bash -e #--------------------------------------------------------------------- # The script below was used previously to build the following tarball # in this directory: # # upstream-albusluna.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-albusluna.tar.gz set -e rm -fr $TARBALL rm -fr $REPACKDIR mkdir $REPACKDIR pushd $REPACKDIR git clone \ https://repo.palemoon.org/MoonchildProductions/Pale-Moon.git \ palemoon-source pushd palemoon-source rm -fr platform git clone \ http://repo.palemoon.org/MoonchildProductions/UXP.git \ platform rm -fr `find . -name .git` settreedate . for x in ../../*.spcpat do patch -p1 < $x done popd tar zcf $TARBALL palemoon-source tardate $TARBALL mv $TARBALL .. popd rm -fr $REPACKDIR ls -l $TARBALL echo $0: Done