Changeset 15631 for trunk/base
- Timestamp:
- Dec 29, 2005, 4:43:03 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/base/portmgr/IndexRegen.sh
r15338 r15631 6 6 # e-mail: jmpp@opendarwin.org 7 7 # Updated by Paul Guyot, <pguyot@kallisys.net> 8 # $Id: IndexRegen.sh,v 1. 1 2005/12/06 20:47:42jmpp Exp $8 # $Id: IndexRegen.sh,v 1.2 2005/12/29 16:43:03 jmpp Exp $ 9 9 #### 10 10 11 11 # Configuration 12 LOCKFILE=/tmp/.dp_index_regen.lock 12 13 # ROOT directory, where everything is. This must exist. 13 14 ROOT=/Users/pguyot/dp-portindex … … 47 48 # The date. 48 49 DATE=$(date +'%A %Y-%m-%d at %H:%M:%S') 50 51 if [ ! -e $LOCKFILE ]; then 52 touch $LOCKFILE 53 else 54 echo "Index Regen lockfile found, is another index regen running?" 55 exit 1 56 fi 49 57 50 58 # Create the SSH wrapper if it doesn't exist (comment this for -d /Volumes...) … … 141 149 fi 142 150 151 rm -f $LOCKFILE
Note: See TracChangeset
for help on using the changeset viewer.