Modifies debian.sh to change said parent directory accordingly

This commit is contained in:
Mendaxi 2015-12-09 23:49:05 -06:00
parent ebc690f1b6
commit 5067ab6fa8

View File

@ -7,6 +7,11 @@ RELEASE=1
ARCH_TYPE=all ARCH_TYPE=all
DIR=${APP}-${VERSION} DIR=${APP}-${VERSION}
# This will automatically detect where you are working from
# and will set the parent name directory variable accordingly
PWIDW=`pwd`
PARDIR=`basename ${PWIDW}`
if [ $ARCH_TYPE == "x86_64" ]; then if [ $ARCH_TYPE == "x86_64" ]; then
ARCH_TYPE="amd64" ARCH_TYPE="amd64"
fi fi
@ -30,7 +35,7 @@ make clean
make make
# Change the parent directory name to Debian format # Change the parent directory name to Debian format
mv ../${APP} ../${DIR} mv ../${PARDIR} ../${DIR}
# Create a source archive # Create a source archive
make sourcedeb make sourcedeb
@ -43,4 +48,4 @@ gpg -ba ../${APP}_${VERSION}-1_${ARCH_TYPE}.deb
gpg -ba ../${APP}_${VERSION}.orig.tar.gz gpg -ba ../${APP}_${VERSION}.orig.tar.gz
# Restore the parent directory name # Restore the parent directory name
mv ../${DIR} ../${APP} mv ../${DIR} ../${PARDIR}