Changeset 652 in MondoRescue
- Timestamp:
- Jun 8, 2006, 2:15:09 PM (18 years ago)
- Location:
- trunk
- Files:
-
- 4 edited
- 4 copied
Legend:
- Unmodified
- Added
- Removed
-
trunk/tools/mkchangelog.pl
r649 r652 10 10 use strict; 11 11 use Date::Manip; 12 use File::Basename; 13 use English; 12 14 13 15 my $log = ""; … … 16 18 my $pkg2; 17 19 my $outfile = $ARGV[2]; 18 my $TOOLHOME = $ENV{TOOLHOME};19 20 my $chglog = ""; 20 21 my $ndate = ""; … … 30 31 (not (defined $pkg)) || ($pkg eq "") || 31 32 (not (defined $outfile)) || ($outfile eq "")); 33 34 my $TOOLHOME; 35 $tmp = dirname($PROGRAM_NAME); 36 if ($tmp =~ /^\//) { 37 $TOOLHOME = $tmp; 38 } 39 else { 40 $TOOLHOME = "$ENV{PWD}/$tmp"; 41 } 42 43 die "TOOLHOME doesn't exist" if (not (defined $TOOLHOME)); 32 44 33 45 if (-f "$TOOLHOME/../$pkg/ChangeLog") { … … 52 64 $tmp = <INPUT>; 53 65 $tmp = <INPUT>; 66 if ($dtype eq "announce") { 67 print OUTPUT $tmp; 68 } 54 69 $tmp = <INPUT>; 70 if ($dtype eq "announce") { 71 print OUTPUT $tmp; 72 } 55 73 56 74 # Handle each block separated by newline … … 59 77 chomp($date); 60 78 $date =~ s/\(([0-9-]+)\)/$1/; 61 print "**$date**\n";79 #print "**$date**\n"; 62 80 $ndate = UnixDate($date,"%a", "%b", "%d", "%Y"); 63 print "**$ndate**\n";81 #print "**$ndate**\n"; 64 82 if ($dtype eq "rpm") { 65 printf OUTPUT "* $ndate Bruno Cornec <bruno\@mondorescue.org> $ver\n"; 66 printf OUTPUT "- Updated to $ver\n"; 83 print OUTPUT "* $ndate Bruno Cornec <bruno\@mondorescue.org> $ver\n"; 84 print OUTPUT "- Updated to $ver\n"; 85 } 67 86 68 $tmp = <INPUT>; 69 while ($tmp !~ /^$/) { 70 printf OUTPUT $tmp; 71 $tmp = <INPUT>; 72 } 73 printf OUTPUT "\n"; 87 $tmp = <INPUT>; 88 while ($tmp !~ /^$/) { 89 print OUTPUT $tmp; 90 last if (eof(INPUT)); 91 $tmp = <INPUT>; 74 92 } 93 print OUTPUT "\n"; 94 last if (eof(INPUT)); 95 last if ($dtype eq "announce"); 75 96 } 76 97 close(OUTPUT); -
trunk/tools/mknewtag
r649 r652 8 8 # 9 9 10 umask 02211 10 dname=`dirname $0` 12 11 prem=`echo $dname |cut -c1` … … 39 38 else 40 39 for p in mindi mondo; do 41 grep -q "${VER}-${TAG}" $TOOLHOME/../$p/Changelog 40 v=`cat $TOOLHOME/../$p/VERSION` 41 grep -q "${v}-${TAG}" $TOOLHOME/../$p/ChangeLog 42 42 if [ $? -ne 0 ]; then 43 echo "You'll have to document in ${p}'s Change log for ${VER}-${TAG} related modifications"43 echo "You'll have to document in ${p}'s ChangeLog for ${v}-${TAG} related modifications" 44 44 exit -1 45 45 fi -
trunk/tools/svn2build
r649 r652 54 54 55 55 ddd=`LANG=C ; date '+%Y-%m-%d'` 56 cat > /tmp/mondorescue.mc << EOF56 cat > $TMP/mondorescue.mc << EOF 57 57 define(\`TTT', ${TAG})dnl 58 58 define(\`RRR', ${TAG}${suf})dnl … … 72 72 fi 73 73 echo "Using $inc customization to build SPEC file" 74 m4 /tmp/mondorescue.mc $inc $dest/distributions/rpm/$p.spec > $dest/distributions/${ddir}-$dver/$p.spec74 m4 $TMP/mondorescue.mc $inc $dest/distributions/rpm/$p.spec > $dest/distributions/${ddir}-$dver/$p.spec 75 75 76 $TOOLHOME/mkchangelog.pl $dtype $p $ dest/distributions/${ddir}-$dver/$p.spec76 $TOOLHOME/mkchangelog.pl $dtype $p $TMP/$p.spec 77 77 if [ $? -ne 0 ]; then 78 78 echo "Unable to create changelog for ${ddir}-$dver/$p.spec" 79 79 exit -1 80 80 fi 81 82 ddate=`LANG=C ; date "+%a %b %d %Y"` 83 cat > $dest/distributions/${ddir}-$dver/$p.changelog.new << EOF 84 * $ddate Bruno Cornec <bruno@mondorescue.org> VVV-RRR 85 - Updated to VVV-r${REVISION} 86 87 EOF 81 cat $TMP/$p.spec >> $dest/distributions/${ddir}-$dver/$p.spec 82 rm -f $TMP/$p.spec 88 83 elif [ "$dtype" = "ebuild" ]; then 89 m4 /tmp/mondorescue.mc $dest/distributions/$dfam/$p.ebuild > $dest/distributions/${ddir}-$dver/$p-$v-r$TAG.ebuild84 m4 $TMP/mondorescue.mc $dest/distributions/$dfam/$p.ebuild > $dest/distributions/${ddir}-$dver/$p-$v-r$TAG.ebuild 90 85 elif [ "$dtype" = "deb" ]; then 91 86 # To be developped 92 m4 /tmp/mondorescue.mc $dest/distributions/$dfam/$p > /dev/null87 m4 $TMP/mondorescue.mc $dest/distributions/$dfam/$p > /dev/null 93 88 else 94 89 echo "Unknown Build" … … 99 94 cd $dest 100 95 for f in mondorescue-howto.sgml *8; do 101 m4 /tmp/mondorescue.mc $f > ${f}.new96 m4 $TMP/mondorescue.mc $f > ${f}.new 102 97 mv ${f}.new $f 103 98 done … … 139 134 done 140 135 141 rm -f /tmp/mondorescue.mc136 rm -f $TMP/mondorescue.mc 142 137 143 138 echo "Version delivered :" -
trunk/website/index.shtml
r418 r652 32 32 <p>Original Author</p> 33 33 <p> 34 <a href="mailto:hugo_at_mondorescue.org">Hugo Rabson</a>: Creator of Mondo Rescue. The Mondo Rescue <a href="http://oldwww.mondorescue.org">original Web site</a> made by Hugo is also still available. Note that the paypal icon there is for rewarding Hugo's work, but has nothing to do with the current deve opment of Mondo Rescue.<br>34 <a href="mailto:hugo_at_mondorescue.org">Hugo Rabson</a>: Creator of Mondo Rescue. The Mondo Rescue <a href="http://oldwww.mondorescue.org">original Web site</a> made by Hugo is also still available. Note that the paypal icon there is for rewarding Hugo's work, but has nothing to do with the current development of Mondo Rescue.<br> 35 35 </p> 36 36
Note:
See TracChangeset
for help on using the changeset viewer.