Update of /cvsroot/leaf/sourceforge/admin
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv10284

Modified Files:
        doc-build.sh 
Log Message:
Added lockfile code contributed by Charles Steinkuehler

Index: doc-build.sh
===================================================================
RCS file: /cvsroot/leaf/sourceforge/admin/doc-build.sh,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** doc-build.sh        19 Mar 2006 01:27:33 -0000      1.1
--- doc-build.sh        19 Mar 2006 04:03:10 -0000      1.2
***************
*** 4,7 ****
--- 4,8 ----
  # PURPOSE: Auto-build documentation.
  # HISTORY: 2006-03-16 mhnoyes Initial programming (Mike Noyes)
+ # HISTORY: 2006-03-18 mhnoyes Added lockfile code (Charles Steinkuehler)
  
  #----------------------------------------
***************
*** 15,18 ****
--- 16,20 ----
  DB_XSL="/home/groups/d/do/docbook/htdocs/release/xsl/current"
  DB_XSL_CUST="/tmp/persistent/leaf/doc/docbook"
+ LOCKFILE=leafcron.lock
  
  #----------------------------------------
***************
*** 44,51 ****
--- 46,65 ----
  }
  
+ create_lockfile () {
+ lockfile -r 0 $LOCKFILE
+ if [ "$?" -ne 0 ] ; then
+   echo "Couldn't get lockfile!"
+   exit 1
+ fi
+ 
+ echo "Got lock file: $LOCKFILE"
+ }
+ 
  #----------------------------------------
  # MAIN PROGRAM
  #----------------------------------------
  
+ create_lockfile
+ 
  echo ---
  umask 022
***************
*** 61,62 ****
--- 75,77 ----
  build_doc
  
+ rm -f $LOCKFILE
\ No newline at end of file



-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
leaf-cvs-commits mailing list
leaf-cvs-commits@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/leaf-cvs-commits

Reply via email to