refactor + overrideable variables

This commit is contained in:
Gwenhael Le Moine 2010-12-03 14:52:29 +07:00
parent 747297381d
commit d7dcee975b

View file

@ -1,16 +1,18 @@
#!/bin/sh #!/bin/sh
set -x -e set -x -e
PRGNAM=clojure
VERSION=1.2.0
ARCH=java
BUILD=1
PACKAGER=cyco
CWD=$(pwd) CWD=$(pwd)
TMP=/tmp
PKG=$TMP/$PACKAGER/pkg-$PRGNAM PRGNAM=$(basename $CWD)
PREFIX=/usr VERSION=${VERSION:-1.2.0}
ARCH=${ARCH:-java}
BUILD=${BUILD:-1}
PACKAGER=${PACKAGER:-cyco}
TMP=${TMP:-/tmp/$PACKAGER}
OUTPUT=${OUTPUT:-/tmp}
PKG=$TMP/pkg-$PRGNAM
PREFIX=${PREFIX:-/usr}
# cleaning # cleaning
rm -fr $PKG rm -fr $PKG
@ -18,7 +20,7 @@ rm -fr $PKG
# do we have the sources? # do we have the sources?
if [ ! -e $CWD/$PRGNAM-$VERSION.zip ] ; then if [ ! -e $CWD/$PRGNAM-$VERSION.zip ] ; then
( cd $CWD ( cd $CWD
wget -c http://github.com/downloads/clojure/clojure/$PRGNAM-$VERSION.zip wget -c --no-check-certificate http://github.com/downloads/clojure/clojure/$PRGNAM-$VERSION.zip
) )
fi fi