upgraded and overrideable variables

This commit is contained in:
Gwenhael Le Moine 2011-08-04 13:04:10 +02:00
parent ae3a175a76
commit c45dd2c811

View file

@ -4,19 +4,19 @@ set -x
CWD=$(pwd) CWD=$(pwd)
PRGNAM=$(basename $CWD) PRGNAM=$(basename $CWD)
VERSION=5.1.1 VERSION=${VERSION:=5.1.2}
BUILD=1 BUILD=${BUILD:=1}
ARCH=$(uname -m) ARCH=${ARCH:=$(uname -m)}
LIBSUFFIX=$(echo $ARCH | grep -o 64) LIBSUFFIX=$(echo $ARCH | grep -o 64)
TAG=cyco TAG=${TAG:=cyco}
OUTPUT=/tmp OUTPUT=${OUTPUT:=/tmp}
TMP=/tmp/$TAG TMP=${TMP:=/tmp/$TAG}
PKG=$TMP/pkg-$PRGNAM PKG=$TMP/pkg-$PRGNAM
PREFIX=/usr PREFIX=${PREFIX:=/usr}
# Cleaning # Cleaning
rm -fr $TMP/$PRGNAM-$VERSION $PKG rm -fr $TMP/$PRGNAM-$VERSION $PKG