aboutsummaryrefslogtreecommitdiffstats
path: root/page
diff options
context:
space:
mode:
authorBjörn Gustavsson <[email protected]>2009-12-08 07:50:25 +0100
committerBjörn Gustavsson <[email protected]>2009-12-08 07:50:25 +0100
commit80879e6482c3dfe6840153d91addd3fb7369bffc (patch)
treed33cdd0d9102969c1cbe64510d3a088a203abaa3 /page
parentd61cc6e240328b8f1d9e1e13117d580d6baa7a48 (diff)
downloadotp-80879e6482c3dfe6840153d91addd3fb7369bffc.tar.gz
otp-80879e6482c3dfe6840153d91addd3fb7369bffc.tar.bz2
otp-80879e6482c3dfe6840153d91addd3fb7369bffc.zip
By default, push the modified page
Use -n to suppressing the push.
Diffstat (limited to 'page')
-rwxr-xr-xpage6
1 files changed, 6 insertions, 0 deletions
diff --git a/page b/page
index 94d9586297..7b375f2b59 100755
--- a/page
+++ b/page
@@ -5,6 +5,9 @@ use File::Spec;
-d '.git' or die "$0: Not a Git repository";
+my $no_push = 0;
+$no_push = @ARGV && $ARGV[0] eq '-n';
+
my $root = dirname($0);
my $application = "$root/application";
my $last = `(cd $root; git ls-files "whats" | tail -1)`;
@@ -92,3 +95,6 @@ print "</html>\n";
close STDOUT;
system qq(cd GH-PAGES; git commit --amend -m "Update index.html" index.html >/dev/null);
+
+system qq(cd GH-PAGES; git push erlang +gh-pages)
+ unless $no_push;