aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGilles Chehade <gilles@poolp.org>2012-11-15 22:32:04 +0100
committerGilles Chehade <gilles@poolp.org>2012-11-15 22:32:04 +0100
commit43319ae8edf382279720e4d256647c207caa2eb7 (patch)
treebdd83010b1899e4ad4e6a9de17c72bf10f63e5e8
parentfix merge master conflicts (diff)
parentyeah I know ... (diff)
downloadOpenSMTPD-43319ae8edf382279720e4d256647c207caa2eb7.tar.xz
OpenSMTPD-43319ae8edf382279720e4d256647c207caa2eb7.zip
Merge branch 'master' into portableopensmtpd-201211152324p1
-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