Changeset 932 in MondoRescue for trunk/tools/mknewtag
- Timestamp:
- Nov 15, 2006, 12:40:15 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tools/mknewtag
r839 r932 16 16 fi 17 17 18 . $TOOLHOME/common-env 19 . $TOOLHOME/distro-env 18 if [ "$1" = "" ]; then 19 mods="mindi mondo mondo-doc mindi-busybox mindi-kernel" 20 else 21 mods="$*" 22 fi 20 23 21 # We need to get $VER and $TAG 22 if [ "$1" = "" ]; then 23 LAST=`cat ${TOPDIR}/LAST` 24 else 25 LAST=$1 26 shift 27 fi 28 VER=`echo $LAST | cut -d- -f1` 29 30 TAG=`echo $LAST | cut -d- -f2` 31 echo -n "Changing TAG of version $VER value from $TAG to " 32 ((TAG=$TAG+1)) 33 echo "$TAG" 34 nb=`svn diff $TOOLHOME/.. | wc -l` 24 cd $TOOLHOME/.. 25 nb=`svn diff | wc -l` 35 26 if [ $nb -gt 0 ]; then 36 27 echo "You'll have to check in before updating the TAG" 37 28 exit -1 38 29 else 39 for p in mindi mondo mindi-busybox mindi-kernel; do 40 v=`cat $TOOLHOME/../$p/VERSION` 41 grep -q "${v}" $TOOLHOME/../$p/ChangeLog 30 for p in $mods; do 31 grep -q "${v}" $p/ChangeLog 42 32 if [ $? -ne 0 ]; then 43 33 echo "You'll have to document in ${p}'s ChangeLog for ${v} related modifications" … … 45 35 fi 46 36 done 47 echo "$TAG" > $TOOLHOME/TAG 48 (cd $TOOLHOME/.. ; svn ci -m "Automatic update of TAG to $TAG" ; svn up) 37 for p in $mods; do 38 TAG=`cat $p/TAG` 39 v=`cat $p/VERSION` 40 echo -n "Changing TAG of $p-$v value from $TAG to " 41 ((TAG=$TAG+1)) 42 echo "$TAG" 43 echo "$TAG" > $p/TAG 44 done 45 svn ci -m "Automatic update of TAGs" ; svn up 49 46 fi
Note:
See TracChangeset
for help on using the changeset viewer.