Changeset 694


Ignore:
Timestamp:
Mar 16, 2008, 6:43:53 AM (14 years ago)
Author:
price
Message:
Support a post-patch hook, for database updates.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • locker/update-system/bin/build-update

    r693 r694  
    9999copy(catfile($proposaldir, "update.diff"), catfile($outdir, "update.diff")) or die "Couldn't copy update.diff: $!";
    100100
     101if (-d catfile($proposaldir, "extra")) {
     102  system('/bin/cp', '-pr', catfile($proposaldir, "extra"), catfile($outdir, "extra"))
     103    and die "Couldn't copy extra: $!";
     104}
     105
    101106open (SCRIPT, ">", catfile($outdir, "update")) or die "Couldn't write update: $!";
    102107printf SCRIPT <<'EOF', catfile("/mit/scripts/deploy/", $old), catfile("/mit/scripts/deploy/", $new);
     
    136141xargs rm -f <"$patchdir/files.delete"
    137142tar -xzf "$patchdir/newfiles.tar.gz"
     143[ -e "$patchdir/extra/postpatch.sh" ] && . "$patchdir/extra/postpatch.sh"
    138144(
    139145    cat .scripts-version.old
Note: See TracChangeset for help on using the changeset viewer.