Changeset 924 in MondoRescue for branches/stable/tools
- Timestamp:
- Nov 13, 2006, 9:57:05 AM (19 years ago)
- Location:
- branches/stable/tools
- Files:
-
- 11 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/stable/tools/build2pkg
r888 r924 37 37 c="mindi-kernel mondo-doc mindi mindi-busybox mondo" 38 38 else 39 c= $139 c="$*" 40 40 fi 41 41 fi … … 79 79 rm -rf $p-${PVER} 80 80 81 # set LANGUAGE to check for correct log messages 82 export LANGUAGE=C 81 83 rpmbuild -ba $p.spec 2>&1 | tee $log 82 84 if [ $? != 0 ]; then -
branches/stable/tools/build2qemu
r888 r924 21 21 export TOOLHOME=${PWD}/$dname 22 22 fi 23 24 23 25 24 . $TOOLHOME/common-env … … 89 88 ssh -p $sp root@localhost "date $rdate" 90 89 ssh -p $sp bruno@localhost "cd / ; rm -rf ~bruno/mondo ~bruno/RPMS/BUILD/* ~bruno/RPMS/tmp/* /tmp/* ; tar xfz ~bruno/mkmondo.tar.gz ; $MONDOTMP/mkmondo " | tee $MONDOTMP/mkvm.log 91 #ssh -p $sp bruno@localhost "cd / ; tar xfz ~bruno/mkmondo.tar.gz ; $MONDOTMP/mkmondo ; rm -f $MONDOTMP" | tee $MONDOTMP/mkvm.log92 90 if [ $vmp -eq 1 ]; then 93 91 ssh -p $sp root@localhost "halt -p" -
branches/stable/tools/file2ftp
r825 r924 11 11 prem=`echo $dname |cut -c1` 12 12 if [ ${prem} == "/" ]; then 13 13 export TOOLHOME=$dname 14 14 else 15 15 export TOOLHOME=${PWD}/$dname … … 37 37 c="mindi-kernel mondo-doc mindi mindi-busybox mondo" 38 38 else 39 c= $139 c="$*" 40 40 fi 41 41 fi -
branches/stable/tools/mkchangelog.pl
r781 r924 25 25 my $ver2 = ""; 26 26 my $date = ""; 27 my $tag = ""; 27 28 28 29 # For date handling … … 58 59 } 59 60 } 61 $tmp="$TOOLHOME/../$pkg/TAG" 62 if (-f "$tmp") { 63 open(TAG,"$tmp") || die "Unable to open $tmp"; 64 $tag = <TAG>; 65 chomp($tag); 66 } else { 67 die "Unable to find a TAG file for $pkg\n"; 68 } 60 69 #print "Using $chglog as input ChangeLog file for $pkg\n"; 61 70 … … 90 99 if ($ver !~ /-/) { 91 100 if ($first eq 1) { 92 $ver2 = "$ver-$ ENV{TAG}"."$ENV{suf}";101 $ver2 = "$ver-$tag"."$ENV{suf}"; 93 102 $first=0; 94 103 } else { -
branches/stable/tools/mknewtag
r825 r924 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 -
branches/stable/tools/mknewversion
r825 r924 16 16 fi 17 17 18 . $TOOLHOME/common-env19 . $TOOLHOME/distro-env20 21 18 # We need to get $VER 22 19 if [ "$1" = "" ]; then 23 LAST=`cat ${TOPDIR}/LAST` 20 echo "Syntax: mknewversion version" 21 exit -1 24 22 else 25 LAST=$123 VER=$1 26 24 shift 27 25 fi 28 VER=`echo $LAST | cut -d- -f1` 29 MAJVER=`echo $VER | cut -d. -f1-2` 30 MINDIMAJVER=`echo $VER | cut -d. -f1` 31 MINDIMINVER=`echo $VER | cut -d. -f2` 32 ((MINDIMAJVER=$MINDIMAJVER-1)) 33 MINVER=`echo $VER | cut -d. -f3` 34 TAG=1 35 ((MINVER=$MINVER+1)) 36 VER=${MAJVER}.${MINVER} 37 echo "Changing Version $LAST to ${VER}-${TAG}" 26 38 27 grep -q stable $TOOLHOME/../mondo/VERSION 39 28 if [ $? -ne 0 ]; then … … 41 30 exit -1 42 31 fi 32 43 33 nb=`svn diff $TOOLHOME/.. | wc -l` 44 34 if [ $nb -gt 0 ]; then 45 35 echo "You'll have to check in before changing version" 46 else 47 svn copy $SVN_M/branches/stable $SVN_M/branches/${VER} 48 cd $TOOLHOME/../.. 49 svn co $SVN_M/branches/${VER} ${VER} 50 cd ${VER} 51 echo "$TAG" > tools/TAG 52 for p in mindi mondo mondo-doc mindi-kernel mindi-busybox; do 53 v=${VER} 54 if [ $p == "mindi" ]; then 55 v=${MINDIMAJVER}.${MINDIMINVER}.${MINVER} 56 fi 57 echo "$v" > $p/VERSION 58 if [ -f $p/ChangeLog ]; then 59 grep -q "${v}-${TAG}" $p/ChangeLog 60 if [ $? -ne 0 ]; then 61 echo "You'll have to document in ${p}'s ChangeLog for ${v}-${TAG} related modifications" 62 exit -1 63 fi 64 fi 65 done 66 svn ci -m "Creation of ${VER}-$TAG" 67 svn up 36 exit -1 68 37 fi 38 39 svn copy $SVN_M/branches/stable $SVN_M/branches/${VER} 40 cd $TOOLHOME/../.. 41 svn co $SVN_M/branches/${VER} ${VER} 42 cd ${VER} 43 44 for p in mindi mondo mondo-doc mindi-kernel mindi-busybox; do 45 # Reset TAG - This maybe an issue for mindi-busybox only 46 echo "1" > $p/TAG 47 v=$VER 48 echo $p | grep -q mindi 49 if [ $? -eq 0 ]; then 50 echo "Please give new $p version for this $VER mondo version ? " 51 read v 52 fi 53 echo "$v" > $p/VERSION 54 done 55 svn ci -m "Creation of mondo ${VER}-$TAG" 56 svn up -
branches/stable/tools/pkg2fc
r878 r924 36 36 c="mindi-kernel mondo-doc mindi mindi-busybox mondo" 37 37 else 38 c= $138 c="$*" 39 39 fi 40 40 fi … … 51 51 src=${TOPDIR}/${VER}-$TAG/$p-[1-9st]*.tar.gz 52 52 pv=`basename $src .tar.gz` 53 spkg="$spkg ${TOPBUILDDIR}/SRPMS/$pv-${TAG}${suf}.src.rpm" 54 ppkg="$ppkg $pv-${TAG}${suf}.src.rpm" 53 tag=`echo $pv | sed "s/-\([0-9]*.*\)/\2/"` 54 spkg="$spkg ${TOPBUILDDIR}/SRPMS/$pv-${tag}${suf}.src.rpm" 55 ppkg="$ppkg $pv-${tag}${suf}.src.rpm" 55 56 done 56 57 … … 62 63 s=\`rpm -qlp \$p | egrep '\.spec'\` 63 64 # Use dist for fc 64 perl -pi -e "s/define Release:[ \t]+ [0-9]+..*/define Release: $TAG%{?dist}/" rpm/SPECS/\$s65 perl -pi -e "s/define Release:[ \t]+([0-9]+)..*/define Release: $1%{?dist}/" rpm/SPECS/\$s 65 66 perl -pi -e 's/ Bruno Cornec <bruno@mondorescue.org>..*/ Bruno Cornec <bruno@mondorescue.org> %{version}-%{release}/' rpm/SPECS/\$s 66 67 rm -rf rpm/BUILD/* -
branches/stable/tools/pkg2ftp
r825 r924 37 37 c="mindi-kernel mondo-doc mindi mindi-busybox mondo" 38 38 else 39 c= $139 c="$*" 40 40 fi 41 41 fi … … 52 52 src=${TOPDIR}/${VER}-$TAG/$p-[1-9st]*.tar.gz 53 53 pv=`basename $src .tar.gz` 54 tag=`echo $pv | sed "s/-\([0-9]*.*\)/\2/"` 54 55 if [ _"$dtype" = _"rpm" ]; then 55 56 if [ _"$p" = _"mondo-doc" ]; then … … 58 59 ar=$ARCH 59 60 fi 60 pkg="$pkg ${TOPBUILDDIR}/RPMS/${ar}/$pv-${ TAG}${suf}.${ar}.rpm"61 spkg="$spkg ${TOPBUILDDIR}/SRPMS/$pv-${ TAG}${suf}.src.rpm"61 pkg="$pkg ${TOPBUILDDIR}/RPMS/${ar}/$pv-${tag}${suf}.${ar}.rpm" 62 spkg="$spkg ${TOPBUILDDIR}/SRPMS/$pv-${tag}${suf}.src.rpm" 62 63 elif [ _"$dtype" = "_deb" ]; then 63 64 pkg="$pkg ${TOPBUILDDIR}/$p_*.deb" -
branches/stable/tools/pkg2mdv
r922 r924 36 36 c="mindi-kernel mondo-doc mindi mindi-busybox mondo" 37 37 else 38 c= $138 c="$*" 39 39 fi 40 40 fi … … 62 62 cp -a $spec SPECS 63 63 # Use mkrel for mdv 64 perl -pi -e "s/^Release:[ \t]+..*/Release: %mkrel $ TAG/" SPECS/$p.spec64 perl -pi -e "s/^Release:[ \t]+..*/Release: %mkrel $tag/" SPECS/$p.spec 65 65 perl -pi -e 's/^Version:[ \t]+([0-9])\.([0-9]+)\.([0-9]+)/Version: $1.$2$3/' SPECS/$p.spec 66 66 perl -pi -e 's/mindi >= ..*,/mindi/' SPECS/$p.spec -
branches/stable/tools/svn-env
r872 r924 6 6 # 7 7 8 export VER=`cat ${TOOLHOME}/../mondo/VERSION`9 10 8 # To be safe for SVN commands 11 9 export REVISION=`(cd $TOOLHOME/.. ; svnversion .)` 12 export TAG=`cat ${TOOLHOME}/TAG` -
branches/stable/tools/svn2build
r882 r924 19 19 . ./svn-env 20 20 21 VER=`cat ${TOOLHOME}/../mondo/VERSION` 22 TAG=`cat ${TOOLHOME}/../mondo/TAG` 21 23 DEST=${TOPDIR}/${VER}-$TAG 22 24 mkdir -p $DEST … … 28 30 c="mindi-kernel mondo-doc mindi mindi-busybox mondo" 29 31 else 30 c= $132 c="$*" 31 33 fi 32 34 fi … … 37 39 for p in $c; do 38 40 v=`cat ${TOOLHOME}/../$p/VERSION` 39 echo "Management of $p $v-$TAG (rev $REVISION)" 41 tag=`cat ${TOOLHOME}/../$p/TAG` 42 echo "Management of $p $v-$tag (rev $REVISION)" 40 43 dest="$DEST/$p-$v" 41 44 rm -fr $dest … … 53 56 ddd=`LANG=C ; date '+%Y-%m-%d'` 54 57 cat > $MONDOTMP/mondorescue.mc << EOF 55 define(\`TTT', ${ TAG})dnl56 define(\`RRR', ${ TAG}${suf})dnl58 define(\`TTT', ${tag})dnl 59 define(\`RRR', ${tag}${suf})dnl 57 60 define(\`VVV', ${v})dnl 58 61 define(\`DDD', ${ddd})dnl
Note:
See TracChangeset
for help on using the changeset viewer.