generate.sh
changeset 1 dbce0b16b0c1
parent 0 8e044e762a6c
child 2 7dddb5fb1595
equal deleted inserted replaced
0:8e044e762a6c 1:dbce0b16b0c1
    57   echo "If you already have a copy somewhere else, make a symlink:"
    57   echo "If you already have a copy somewhere else, make a symlink:"
    58   echo "  $ ln -s /path/to/enano/hg ./enano-hg"
    58   echo "  $ ln -s /path/to/enano/hg ./enano-hg"
    59   exit 1
    59   exit 1
    60 fi
    60 fi
    61 
    61 
    62 printf "Pulling latest code..."
    62 printf "Compacting self-extraction script..."
       
    63 sed -f compact-shellscript.sed self-extract-src.sh > self-extract.sh || fail "Failed to generate compacted self-extract script"
       
    64 
       
    65 printf "\nPulling latest code..."
    63 hg -R $REPO archive -r $REVISION -t tgz enano-$VERSION.tar.gz || fail "Could not pull revision $REVISION from Mercurial repo"
    66 hg -R $REPO archive -r $REVISION -t tgz enano-$VERSION.tar.gz || fail "Could not pull revision $REVISION from Mercurial repo"
    64 printf "\nExtracting..."
    67 printf "\nExtracting..."
    65 tar xzCf `dirname $0`/stage enano-$VERSION.tar.gz || fail "Could not extract tarball"
    68 tar xzCf `dirname $0`/stage enano-$VERSION.tar.gz || fail "Could not extract tarball"
    66 rm -f enano-$VERSION.tar.gz
    69 rm -f enano-$VERSION.tar.gz
    67 printf "\nCreating payload..."
    70 printf "\nCreating payload..."