IDEMPIERE-1900 iDempiere Debian Installer / make the file name standard

This commit is contained in:
Carlos Ruiz 2014-10-31 18:43:30 -05:00
parent 0a148188f9
commit 904d13c764
1 changed files with 4 additions and 3 deletions

View File

@ -1,12 +1,13 @@
VERSION=dev
TIMESTAMP=`date +%Y%m%d`
TMP=/tmp TMP=/tmp
cd `dirname $0`/../../.. cd `dirname $0`/../../..
IDEMPIERE_HOME=`pwd` IDEMPIERE_HOME=`pwd`
RWD=$IDEMPIERE_HOME/idempiere-server/utils/unix RWD=$IDEMPIERE_HOME/idempiere-server/utils/unix
PACKAGE=`ls -d $IDEMPIERE_HOME` PACKAGE=`ls -d $IDEMPIERE_HOME`
PACKAGE=`basename $PACKAGE` PACKAGE=`basename $PACKAGE`
PACKFILE=$IDEMPIERE_HOME/../${PACKAGE}_${VERSION}_${TIMESTAMP}.deb # VERSION=dev
# TIMESTAMP=`date +%Y%m%d`
# PACKFILE=$IDEMPIERE_HOME/../${PACKAGE}_${VERSION}_${TIMESTAMP}.deb
PACKFILE=$IDEMPIERE_HOME/../${PACKAGE}.deb
find $RWD/../.. -name "*.sh" -exec chmod +x {} \; find $RWD/../.. -name "*.sh" -exec chmod +x {} \;
chmod +x $RWD/DebianInstaller/etc/init.d/idempiere chmod +x $RWD/DebianInstaller/etc/init.d/idempiere
rm -f $TMP/debian-binary $TMP/control.tar.gz $TMP/data.tar.gz $TMP/control.tar $TMP/data.tar $PACKFILE rm -f $TMP/debian-binary $TMP/control.tar.gz $TMP/data.tar.gz $TMP/control.tar $TMP/data.tar $PACKFILE