summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarsten Dominik <carsten.dominik@gmail.com>2008-04-15 14:20:26 +0200
committerCarsten Dominik <carsten.dominik@gmail.com>2008-04-15 14:20:26 +0200
commitad673b4c6af95cde84502db54bdf5aa03a5b357b (patch)
tree3d9cd827e7c418c45a0ac54ca5d1f5b5566daf8e
parentd58985eec41bbebd7e227c09710fa287949e1a1b (diff)
downloadorg-mode-ad673b4c6af95cde84502db54bdf5aa03a5b357b.tar.gz
Modify web version only when explicitly requested.
The set_version.pl program sets the version number in all relevant files. From now on, it will need an option -a to also affect the webpage files.
-rwxr-xr-xUTILITIES/set-version.pl15
1 files changed, 11 insertions, 4 deletions
diff --git a/UTILITIES/set-version.pl b/UTILITIES/set-version.pl
index dab8661..e343aad 100755
--- a/UTILITIES/set-version.pl
+++ b/UTILITIES/set-version.pl
@@ -1,5 +1,10 @@
#!/usr/bin/perl
$version = $ARGV[0];
+if ($version eq "--all" or $version eq "-a") {
+ $all = 1;
+ $version = $ARGV[1]
+}
+
die "No version given" unless $version=~/\S/;
$date = `date "+%B %Y"`; chomp $date;
$year = `date "+%Y"` ; chomp $year;
@@ -26,7 +31,9 @@ $cmd = qq{s/^(The version of this release is:)\\s+(\\S+)[ \t]*\$/\$1 $version/;}
$c1 = "perl -pi -e '$cmd' README_DIST";
system($c1);
-print STDERR "ORGWEBPAGE/index.org\n";
-$cmd = qq{s/^(\\* Current Version )\\(\\S+?\\)/\$1($version)/;s/^(The current version is)\\s+(\\S+)\\. /\$1 $version. /;s/org-.*?\\.(zip|tar\\.gz)/org-$version.\$1/g};
-$c1 = "perl -pi -e '$cmd' ORGWEBPAGE/index.org";
-system($c1);
+if ($all) {
+ print STDERR "ORGWEBPAGE/index.org\n";
+ $cmd = qq{s/^(\\* Current Version )\\(\\S+?\\)/\$1($version)/;s/^(The current version is)\\s+(\\S+)\\. /\$1 $version. /;s/org-.*?\\.(zip|tar\\.gz)/org-$version.\$1/g};
+ $c1 = "perl -pi -e '$cmd' ORGWEBPAGE/index.org";
+ system($c1);
+}