#!/bin/bash -e #--------------------------------------------------------------------- # The script below was used previously to build the following tarball # in this directory: # # upstream-ambassador.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. #--------------------------------------------------------------------- # As of 2023-04-08, 2024-04-14, and 2024-08-18, the upstream repo was # still online. The code had last been modified, in each case, on # 2020-12-19. #--------------------------------------------------------------------- ORNAME=ambassador USNAME=upstream-$ORNAME LINK=https://github.com/Ascrod/ambassador.git set -e rm -fr $USNAME $ORNAME $USNAME.tar* $ORNAME.tar* git clone $LINK $ORNAME cd $ORNAME/ for x in ../*.spcpat do patch -p1 < $x done cd .. tar zcf $USNAME.tar.gz $ORNAME/ rm -fr $ORNAME/ tardate $USNAME.tar.gz ls -l $USNAME.tar.gz echo $0: Done