diff options
author | Björn Gustavsson <[email protected]> | 2009-12-08 07:50:25 +0100 |
---|---|---|
committer | Björn Gustavsson <[email protected]> | 2009-12-08 07:50:25 +0100 |
commit | 80879e6482c3dfe6840153d91addd3fb7369bffc (patch) | |
tree | d33cdd0d9102969c1cbe64510d3a088a203abaa3 | |
parent | d61cc6e240328b8f1d9e1e13117d580d6baa7a48 (diff) | |
download | otp-80879e6482c3dfe6840153d91addd3fb7369bffc.tar.gz otp-80879e6482c3dfe6840153d91addd3fb7369bffc.tar.bz2 otp-80879e6482c3dfe6840153d91addd3fb7369bffc.zip |
By default, push the modified page
Use -n to suppressing the push.
-rwxr-xr-x | page | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -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; |