OpenPKG CVS Repository http://cvs.openpkg.org/ ____________________________________________________________________________
Server: cvs.openpkg.org Name: Thomas Lotterer Root: /v/openpkg/cvs Email: [EMAIL PROTECTED] Module: openpkg-tools Date: 04-Aug-2005 16:34:15 Branch: HEAD Handle: 2005080415341500 Modified files: openpkg-tools/cmd dev.sh Log: only update release headers having format suitable for automatic modification Summary: Revision Changes Path 1.44 +3 -1 openpkg-tools/cmd/dev.sh ____________________________________________________________________________ patch -p0 <<'@@ .' Index: openpkg-tools/cmd/dev.sh ============================================================================ $ cvs diff -u -r1.43 -r1.44 dev.sh --- openpkg-tools/cmd/dev.sh 2 Aug 2005 18:31:32 -0000 1.43 +++ openpkg-tools/cmd/dev.sh 4 Aug 2005 14:34:15 -0000 1.44 @@ -2069,7 +2069,9 @@ continue fi - if [ $force -eq 0 -a ".${OPENPKG_REPO}" = "[EMAIL PROTECTED]:/v/openpkg/cvs" ]; then + echo "++ checking release header having format suitable for automatic modification" + ${EGREP} '^Release: *((([0-9]\.)?[0-9]{8})|[0-9]+\.[0-9]+\.[0-9])$' <${OPENPKG_WORK}/$S/${name}/${name}.spec >/dev/null + if [ $? -eq 0 -a $force -eq 0 -a ".${OPENPKG_REPO}" = "[EMAIL PROTECTED]:/v/openpkg/cvs" ]; then echo "++ checking whether release header was already modified" (builtin cd ${OPENPKG_WORK}/$S/${name} && command cvs 2>&1 diff -u0 ${name}.spec) \ | ${EGREP} '^[+-]Release: +' | wc -l | ${EGREP} '^ *2 *' >/dev/null @@ . ______________________________________________________________________ The OpenPKG Project www.openpkg.org CVS Repository Commit List openpkg-cvs@openpkg.org