projects
/
git-tools-moved-to-github.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add Ubuntu Wily Werewolf
[git-tools-moved-to-github.git]
/
id-release
diff --git
a/id-release
b/id-release
index
8039946
..
22035f8
100755
(executable)
--- a/
id-release
+++ b/
id-release
@@
-16,16
+16,32
@@
usage () {
exit 1
}
exit 1
}
+branch_check () {
+ if ! git branch | egrep -q '^\* master$'; then
+ ( echo ">>> Warning: you are not running on the master branch <<<"
+ git branch; echo ) 1>&2
+ fi
+}
+
######################################################################
######################################################################
+branch_check
+
case $1 in
[0-9]* ) version=$1 ;;
* ) usage ;;
esac
case $1 in
[0-9]* ) version=$1 ;;
* ) usage ;;
esac
-echo "#!/bin/sh"
-echo "# See also https://twiki.indexdata.com/twiki/bin/view/ID/AdamsReleaseProcedure"
-echo "set -e"
-echo ""
+
+
+cat <<EOF
+#!/bin/sh
+#
+# See also https://twiki.indexdata.com/twiki/bin/view/ID/AdamsReleaseProcedure
+#
+
+set -e
+
+EOF
echo "# Did you updated the news log file?"
for file in Changes News NEWS
echo "# Did you updated the news log file?"
for file in Changes News NEWS
@@
-68,7
+84,8
@@
fi
if $perl; then
echo "# check perl version numbers"
if $perl; then
echo "# check perl version numbers"
- find . -name '*.pm' -print0 | xargs -0 egrep -H '\$VERSION.*=.*[0-9]' | egrep -v '^\./deb-src/'
+ find . -name '*.pm' -print0 | xargs -0 egrep -H '\$VERSION.*=.*[0-9]' |
+ egrep -v '^\./deb-src/' | perl -npe 's,^,# ,'
fi
# update debian version file
fi
# update debian version file