Skip to content

Commit

Permalink
Try to make update-and-sync more robust
Browse files Browse the repository at this point in the history
also move sync to util/
  • Loading branch information
moritz committed Feb 3, 2015
1 parent 3570802 commit eac25f0
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 2 deletions.
1 change: 1 addition & 0 deletions htmlify.p6
Original file line number Diff line number Diff line change
Expand Up @@ -362,6 +362,7 @@ sub find-definitions (:$pod, :$origin, :$min-level = -1) {
}

my int $new-i = $i;
note @definitions.perl;
for @definitions -> [$sk, $name] {
my $subkinds = $sk.lc;
my %attr;
Expand Down
File renamed without changes.
2 changes: 2 additions & 0 deletions util/sync-build-log
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#!/bin/sh
rsync -az --delete html/build-log/ doc.perl6.org@www.p6c.org:/var/www/doc.perl6.org/build-log/
5 changes: 3 additions & 2 deletions util/update-and-sync
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ else
LOGFILE="$LOGDIR/build-$DATE.log";
echo "Writing logs to $LOGFILE";
exec >$LOGFILE 2>&1
./htmlify.p6
./sync
# if the htmilfy fails, sync the build log, but not the whole thing
./htmlify.p6 || ./util/sync-build-log && false
./util/sync
fi

0 comments on commit eac25f0

Please sign in to comment.