Mailinglist Archive: zypp-commit (223 mails)

< Previous Next >
[zypp-commit] r10706 - /trunk/libzypp/mkChangelog
  • From: mlandres@xxxxxxxxxxxxxxxx
  • Date: Thu, 31 Jul 2008 10:26:44 -0000
  • Message-id: <20080731102644.E7D1B24AD8@xxxxxxxxxxxxxxxx>
Author: mlandres
Date: Thu Jul 31 12:26:44 2008
New Revision: 10706

URL: http://svn.opensuse.org/viewcvs/zypp?rev=10706&view=rev
Log:
mkChangelog: show current version and last changelog entry as summary

Modified:
trunk/libzypp/mkChangelog

Modified: trunk/libzypp/mkChangelog
URL:
http://svn.opensuse.org/viewcvs/zypp/trunk/libzypp/mkChangelog?rev=10706&r1=10705&r2=10706&view=diff
==============================================================================
--- trunk/libzypp/mkChangelog (original)
+++ trunk/libzypp/mkChangelog Thu Jul 31 12:26:44 2008
@@ -13,12 +13,13 @@
TDIR=$(dirname $0)
test -n "$TDIR" && cd $TDIR

-CHANGESFILE="package/libzypp.changes"
+CHANGESFILE=$(ls package/*.changes)
test -f "$CHANGESFILE" || errexit "No changes file '$CHANGESFILE'"

VERSIONFILE="VERSION.cmake"
test -f "$VERSIONFILE" || errexit "No version file '$VERSIONFILE'"

+## Version.cmake tags in getversion() are still zypp specific.

function usage() {
exec >&2
@@ -44,7 +45,7 @@
The line '#---delete-or-release---#...' shows the last version submitted
to autobuild ('# LAST RELEASED:; tag in $VERSIONFILE). And also the current
version, asuming you already updated the $VERSIONFILE according to your
changes.
-(The number in parenthesis is LIBZYPP_COMPATMINOR)
+(The number in parenthesis is _COMPATMINOR)


- Delete the line if you don't want to submit the package to autobuild.
@@ -111,11 +112,11 @@
| awk '/^Status against revision:/{print $4+1}'
}

-VERSIONNUMBER="$(getversion)"

test -r /etc/sysconfig/mail && source /etc/sysconfig/mail
EMAIL="${USER}@${FROM_HEADER:-$(hostname -f)}"

+GOTVERSION="$(getversion)"

TMPFILE=$(mktemp)
exec 3>&1-
@@ -125,7 +126,7 @@
echo ""
echo "- "
echo "- revision $(nextrevision)"
-echo "$(getversion)"
+echo "$GOTVERSION"
echo ""
cat $CHANGESFILE
exec >&3
@@ -138,6 +139,7 @@
test -n "$NEWREL" && echo "$NEWREL"
read -n 1 -p "(a)bort, (c)ontinue, (e)dit : " RES
echo
+ echo
case "$RES" in
[eE]*)
RES=e
@@ -153,8 +155,9 @@
echo "Store new $CHANGESFILE"
cp $TMPFILE $CHANGESFILE

- cat $CHANGESFILE \
- | awk '{print}/----------/{n=n+1; if ( n == 2 ) exit 0; }'
+ echo "$(sed 's/^.*#---delete-or-release---#.*RELEASE:/# CURRENT
RELEASE:/' <<<"$GOTVERSION")"
+ awk '{print}/^----------/{n=n+1; if ( n == 2 ) exit 0; }' $CHANGESFILE
+
;;
*)
echo "Leave $CHANGESFILE untouched"

--
To unsubscribe, e-mail: zypp-commit+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: zypp-commit+help@xxxxxxxxxxxx

< Previous Next >
This Thread
  • No further messages