generate.sh
changeset 2 7dddb5fb1595
parent 1 dbce0b16b0c1
child 3 859eeb3579b2
equal deleted inserted replaced
1:dbce0b16b0c1 2:7dddb5fb1595
    52 
    52 
    53 if [ ! -d "$REPO/.hg" ]; then
    53 if [ ! -d "$REPO/.hg" ]; then
    54   echo "ERROR: Could not find the Enano Mercurial repository at $REPO."
    54   echo "ERROR: Could not find the Enano Mercurial repository at $REPO."
    55   echo "Perhaps you need to obtain a copy?"
    55   echo "Perhaps you need to obtain a copy?"
    56   echo "  $ hg clone http://hg.enanocms.org/repos/enano-1.1 ./enano-hg"
    56   echo "  $ hg clone http://hg.enanocms.org/repos/enano-1.1 ./enano-hg"
    57   echo "If you already have a copy somewhere else, make a symlink:"
    57   echo "If you 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 "Compacting self-extraction script..."
    62 printf "Compacting self-extraction script..."
    75 printf "\nWriting output..."
    75 printf "\nWriting output..."
    76 cat self-extract.sh enano-$VERSION-selfextract.tar.bz2 > enano-$VERSION-bitnami-module.sh || fail "Could not write output"
    76 cat self-extract.sh enano-$VERSION-selfextract.tar.bz2 > enano-$VERSION-bitnami-module.sh || fail "Could not write output"
    77 chmod +x enano-$VERSION-bitnami-module.sh
    77 chmod +x enano-$VERSION-bitnami-module.sh
    78 rm -f enano-$VERSION-selfextract.tar.bz2
    78 rm -f enano-$VERSION-selfextract.tar.bz2
    79 echo -e "\nDone! Output written to enano-$VERSION-bitnami-module.sh"
    79 echo -e "\nDone! Output written to enano-$VERSION-bitnami-module.sh"
    80