"Fossies" - the Fresh Open Source Software Archive

Member "redis-7.0.5/utils/releasetools/01_create_tarball.sh" (21 Sep 2022, 329 Bytes) of package /linux/misc/redis-7.0.5.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.

    1 #!/bin/sh
    2 if [ $# != "1" ]
    3 then
    4     echo "Usage: ./utils/releasetools/01_create_tarball.sh <version_tag>"
    5     exit 1
    6 fi
    7 
    8 TAG=$1
    9 TARNAME="redis-${TAG}.tar"
   10 echo "Generating /tmp/${TARNAME}"
   11 git archive $TAG --prefix redis-${TAG}/ > /tmp/$TARNAME || exit 1
   12 echo "Gizipping the archive"
   13 rm -f /tmp/$TARNAME.gz
   14 gzip -9 /tmp/$TARNAME