From b0a3b333cbd4cee46618d55a84852428144a2f4d Mon Sep 17 00:00:00 2001 From: "mcafee%netscape.com" Date: Tue, 17 Jul 2001 00:52:49 +0000 Subject: [PATCH] Sample post-mozilla.pl file, for doing post-mozilla (external) builds git-svn-id: svn://10.0.0.236/trunk@99364 18797224-902f-48f8-a5cc-f745e15eee43 --- .../tools/tinderbox/post-mozilla-sample.pl | 43 +++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100755 mozilla/tools/tinderbox/post-mozilla-sample.pl diff --git a/mozilla/tools/tinderbox/post-mozilla-sample.pl b/mozilla/tools/tinderbox/post-mozilla-sample.pl new file mode 100755 index 00000000000..9afab7f28dc --- /dev/null +++ b/mozilla/tools/tinderbox/post-mozilla-sample.pl @@ -0,0 +1,43 @@ +#!/usr/bin/perl +# + +# +# This script gets called after a full mozilla build & test. +# Use this to build and test an embedded or commercial branding of Mozilla. +# +# ./build-seamonkey-utils.pl will call PostMozilla::main() after +# a successful build and testing of mozilla. This package can report +# status via the $TinderUtils::build_status variable. Yeah this is a hack, +# but it works for now. Feel free to improve this mechanism to properly +# return values & stuff. -mcafee +# + +use strict; + +package PostMozilla; + + +sub main { + TinderUtils::print_log "Post-Mozilla build goes here.\n"; + + # + # Build script goes here. + # + + # Report some kind of status to parent script. + # + # if ($status != 0) { + # $TinderUtils::build_status = 'busted'; + # } elsif (not TinderUtils::BinaryExists("/u/mcafee/gnome/galeon/src/galeon-bin")) { + # TinderUtils::print_log "Error: binary not found: /u/mcafee/gnome/galeon/src/galeon-bin\n"; + # $TinderUtils::build_status = 'busted'; + # } else { + # $TinderUtils::build_status = 'success'; + # } + + # Report a fake success, for example's sake. + $TinderUtils::build_status = 'success'; +} + +# Need to end with a true value, (since we're using "require"). +1;