[PC-BSD Commits] r3442 - pbibuild/pbibuilder/scripts
svn at pcbsd.org
svn at pcbsd.org
Thu Feb 12 11:56:25 PST 2009
Author: kris
Date: 2009-02-12 11:56:25 -0800 (Thu, 12 Feb 2009)
New Revision: 3442
Modified:
pbibuild/pbibuilder/scripts/functions.sh
Log:
Fixed a bug detecting PORTREVISION= in some Makefiles
Modified: pbibuild/pbibuilder/scripts/functions.sh
===================================================================
--- pbibuild/pbibuilder/scripts/functions.sh 2009-02-12 19:53:04 UTC (rev 3441)
+++ pbibuild/pbibuilder/scripts/functions.sh 2009-02-12 19:56:25 UTC (rev 3442)
@@ -42,6 +42,10 @@
then
PORTREV=""
PORTREV="`grep ^PORTREVISION= ${PDESTDIR}/${PBIPORT}/Makefile | cut -f 2`"
+ if [ -z "$PORTREV" -o "${PORTREV}" = " " ]
+ then
+ PORTREV="`grep ^PORTREVISION= ${PDESTDIR}/${PBIPORT}/Makefile | cut -f 3`"
+ fi
PORTVER="${PORTVER}_${PORTREV}" ; export PORTVER
fi
More information about the Commits
mailing list