[26531] trunk/base/portmgr/GuideRegen.sh
source_changes at macosforge.org
source_changes at macosforge.org
Wed Jun 27 14:37:58 PDT 2007
Revision: 26531
http://trac.macosforge.org/projects/macports/changeset/26531
Author: jmpp at macports.org
Date: 2007-06-27 14:37:57 -0700 (Wed, 27 Jun 2007)
Log Message:
-----------
Remove unnecessary magic (copied from IndexRegen.sh) from this far simpler script (it can be added later on if we happen to need it --maybe commit functionality can be added going forward--).
Modified Paths:
--------------
trunk/base/portmgr/GuideRegen.sh
Modified: trunk/base/portmgr/GuideRegen.sh
===================================================================
--- trunk/base/portmgr/GuideRegen.sh 2007-06-27 21:28:29 UTC (rev 26530)
+++ trunk/base/portmgr/GuideRegen.sh 2007-06-27 21:37:57 UTC (rev 26531)
@@ -27,18 +27,15 @@
SRCTREE=${ROOT}/source
# Where MP will install its world. This gets created.
PREFIX=/opt/local
-# Where MP installs darwinports1.0. This gets created.
# Path.
PATH=${PREFIX}/bin:/bin:/usr/bin:/usr/sbin:/opt/local/bin
# Log for the e-mail in case of failure.
FAILURE_LOG=${ROOT}/guide_failure.log
-# Commit message.
-COMMIT_MSG=${ROOT}/commit.msg
# The date.
DATE=$(date +'%A %Y-%m-%d at %H:%M:%S')
-# Function to spam people in charge if something goes wrong during indexing.
+# Function to spam people in charge if something goes wrong during guide regen.
bail () {
mail -s "Guide regen Failure on ${DATE}" $SPAM_LOVERS < $FAILURE_LOG
cleanup; exit 1
@@ -46,15 +43,14 @@
# Cleanup fuction for runtime files.
cleanup () {
- rm -f $COMMIT_MSG $FAILURE_LOG
- rm -f $LOCKFILE
+ rm -f $FAILURE_LOG $LOCKFILE
}
if [ ! -e $LOCKFILE ]; then
touch $LOCKFILE
else
- echo "Guide regen lockfile found, is another index regen running?"
+ echo "Guide regen lockfile found, is another job running?"
exit 1
fi
@@ -89,4 +85,4 @@
|| { echo "make failed." >> $FAILURE_LOG ; bail ; }
# At this point the guide was regen'd successfuly, so we cleanup before we exit.
-cleanup
+cleanup && exit 0
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20070627/a20fb835/attachment.html
More information about the macports-changes
mailing list