Skip to content

Commit eac25f0

Browse files
committed
Try to make update-and-sync more robust
also move sync to util/
1 parent 3570802 commit eac25f0

File tree

4 files changed

+6
-2
lines changed

4 files changed

+6
-2
lines changed

htmlify.p6

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -362,6 +362,7 @@ sub find-definitions (:$pod, :$origin, :$min-level = -1) {
362362
}
363363

364364
my int $new-i = $i;
365+
note @definitions.perl;
365366
for @definitions -> [$sk, $name] {
366367
my $subkinds = $sk.lc;
367368
my %attr;

sync renamed to util/sync

File renamed without changes.

util/sync-build-log

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
#!/bin/sh
2+
rsync -az --delete html/build-log/ doc.perl6.org@www.p6c.org:/var/www/doc.perl6.org/build-log/

util/update-and-sync

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ else
1919
LOGFILE="$LOGDIR/build-$DATE.log";
2020
echo "Writing logs to $LOGFILE";
2121
exec >$LOGFILE 2>&1
22-
./htmlify.p6
23-
./sync
22+
# if the htmilfy fails, sync the build log, but not the whole thing
23+
./htmlify.p6 || ./util/sync-build-log && false
24+
./util/sync
2425
fi

0 commit comments

Comments
 (0)