]> sipb.mit.edu Git - ikiwiki.git/blobdiff - IkiWiki/Plugin/rsync.pm
doc update, add --exclude ikiwiki.cgi to examples
[ikiwiki.git] / IkiWiki / Plugin / rsync.pm
index 9afbe948728507c5a72fbea480919c6c43ddd15c..f14989ff835ac929675666ee91cd3a5d68f8261b 100644 (file)
@@ -18,7 +18,7 @@ sub getsetup () {
                },
                rsync_command => {
                        type => "string",
-                       example => "rsync -qa --delete . user\@host:/path/to/docroot/",
+                       example => "rsync -qa --delete . user\@host:/path/to/docroot/ --exclude ikiwiki.cgi",
                        description => "command to run to sync updated pages",
                        safe => 0,
                        rebuild => 0,
@@ -30,10 +30,10 @@ sub postrefresh () {
                chdir($config{destdir}) || error("chdir: $!");
                system $config{rsync_command};
                if ($? == -1) {
-                       warn("failed to execute rsync_command: $!");
+                       warn(sprintf(gettext("failed to execute rsync_command: %s"), $!))."\n";
                }
                elsif ($? != 0) {
-                       warn(sprintf("rsync_command exited %d", $? >> 8));
+                       warn(sprintf(gettext("rsync_command exited %d"), $? >> 8))."\n";
                }
        }
 }