diff options
author | Carsten Dominik <carsten.dominik@gmail.com> | 2008-04-15 14:20:26 +0200 |
---|---|---|
committer | Carsten Dominik <carsten.dominik@gmail.com> | 2008-04-15 14:20:26 +0200 |
commit | ad673b4c6af95cde84502db54bdf5aa03a5b357b (patch) | |
tree | 3d9cd827e7c418c45a0ac54ca5d1f5b5566daf8e | |
parent | d58985eec41bbebd7e227c09710fa287949e1a1b (diff) | |
download | org-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-x | UTILITIES/set-version.pl | 15 |
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); +} |