aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xpublish.sh8
1 files changed, 5 insertions, 3 deletions
diff --git a/publish.sh b/publish.sh
index a6f23a1b..c829fca7 100755
--- a/publish.sh
+++ b/publish.sh
@@ -79,7 +79,7 @@ snapshot()
REMOTEDIR=/var/www/virtual/org.opensmtpd/archives/
TARBALL=`build_tarball ${1}`
- SNAPSHOT=opensmtpd-`date +%Y%m%d%H%M%S`
+ SNAPSHOT=opensmtpd-`date +%Y%m%d%H%M`
if test "${1}" = "portable"; then
SNAPSHOT=${SNAPSHOT}p1
fi
@@ -87,11 +87,13 @@ snapshot()
mv ${FILES}/${TARBALL} ${FILES}/${SNAPSHOT}.tar.gz
if test "${1}" = "master"; then
- LASTTAGS=`git tag |grep '^opensmtpd-[0-9]*' | grep -v '[0-9]p[0-9]$' | tail -2 | tr '\n' '@' | sed 's/@$//g'| sed 's/@/../g'`
+ LASTTAGS=`git tag |grep '^opensmtpd-[0-9][0-9][0-9]*' | grep -v '[0-9]p[0-9]$' | tail -2 | tr '\n' '@' | sed 's/@$//g'| sed 's/@/../g'`
else
- LASTTAGS=`git tag |grep '^opensmtpd-[0-9]*' | grep '[0-9]p[0-9]$' | tail -2 | tr '\n' '@' | sed 's/@$//g'| sed 's/@/../g'`
+ LASTTAGS=`git tag |grep '^opensmtpd-[0-9][0-9][0-9]*' | grep '[0-9]p[0-9]$' | tail -2 | tr '\n' '@' | sed 's/@$//g'| sed 's/@/../g'`
fi
+ echo git log $LASTTAGS
+
CHANGELOG=`git log $LASTTAGS`
if test "${CHANGELOG}" = ""; then
echo "Error: nothing new in this snapshot, I won't publish it !" >&2