Add a simple script to update the site
authoraroben@apple.com <aroben@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 1 Dec 2007 06:48:33 +0000 (06:48 +0000)
committeraroben@apple.com <aroben@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 1 Dec 2007 06:48:33 +0000 (06:48 +0000)
        * update.pl: Added.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@28277 268f45cc-cd09-0410-ab3c-d52691b4dbfc

PlanetWebKit/ChangeLog
PlanetWebKit/update.pl [new file with mode: 0755]

index e64f3a8..78676fd 100644 (file)
@@ -1,5 +1,11 @@
 2007-11-30  Adam Roben  <aroben@apple.com>
 
+        Add a simple script to update the site
+
+        * update.pl: Added.
+
+2007-11-30  Adam Roben  <aroben@apple.com>
+
         Include all WebKit posts from Trolltech Labs
 
         * config.ini:
diff --git a/PlanetWebKit/update.pl b/PlanetWebKit/update.pl
new file mode 100755 (executable)
index 0000000..e0724ac
--- /dev/null
@@ -0,0 +1,14 @@
+#!/usr/bin/perl -w
+
+use strict;
+use FindBin;
+use Getopt::Long;
+
+my $python;
+GetOptions("python=s" => \$python);
+
+my @command = qw(./planet/planet.py config.ini);
+unshift @command, $python if defined($python);
+
+chdir $FindBin::Bin;
+exec @command;