refactor + overrideable variables
This commit is contained in:
parent
747297381d
commit
d7dcee975b
1 changed files with 12 additions and 10 deletions
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue