aboutsummaryrefslogtreecommitdiff
path: root/mkport.sh
diff options
context:
space:
mode:
Diffstat (limited to 'mkport.sh')
-rwxr-xr-xmkport.sh14
1 files changed, 4 insertions, 10 deletions
diff --git a/mkport.sh b/mkport.sh
index 6b481e2a..28c10d8a 100755
--- a/mkport.sh
+++ b/mkport.sh
@@ -64,16 +64,9 @@ fi
ghtag=`git log -n 1 . | grep '^commit ' | awk '{print $2}'`
# Get the version
-if [ -e "version" ] ; then
- verTag=$(cat version)
-else
- verTag=`git describe --always`
-fi
-if [ "z${verTag}" != "z" ] ; then
- verTag="${VERSION}.${verTag}"
-else
- verTag="${VERSION}"
-fi
+verTag="${VERSION}"
+dateTag=$(date '+%Y%m%d%H%M')
+
# Cleanup old distfiles
rm ${distdir}/${dfile}-* 2>/dev/null
@@ -90,6 +83,7 @@ do
# Set the version numbers
sed -i '' "s|%%CHGVERSION%%|${verTag}|g" ${portsdir}/${port}/Makefile
+ sed -i '' "s|%%CHGREVISION%%|${dateTag}|g" ${portsdir}/${port}/Makefile
sed -i '' "s|%%GHTAG%%|${ghtag}|g" ${portsdir}/${port}/Makefile
# Create the makesums / distinfo file
bgstack15