Author: jberry
Date: Sat May 28 14:23:33 2005
New Revision: 178890

URL: http://svn.apache.org/viewcvs?rev=178890&view=rev
Log:
Add comments to pretty-make

Modified:
    xerces/c/branches/jberry/3.0-unstable/config/pretty-make

Modified: xerces/c/branches/jberry/3.0-unstable/config/pretty-make
URL: 
http://svn.apache.org/viewcvs/xerces/c/branches/jberry/3.0-unstable/config/pretty-make?rev=178890&r1=178889&r2=178890&view=diff
==============================================================================
--- xerces/c/branches/jberry/3.0-unstable/config/pretty-make (original)
+++ xerces/c/branches/jberry/3.0-unstable/config/pretty-make Sat May 28 
14:23:33 2005
@@ -24,16 +24,28 @@
 # $Id$
 #
 
+# Grab the action (what we're doing)
 action=$1
 shift
 
+# Grab the original command
 cmd=$@
+
+# Try to find the name of the file we're building. This is fraught with
+# problems, and may not be reliable across all compilers. Given the
+# dependencies, this is usually the last argument, but sometimes there
+# is an extra dependency, it seems, which throws this off. So we look
+# for the last arg that doesn't start with -.
 while [ $# -gt 0 ]; do
        [ "${1##-*}" ] && target=$1
        shift
 done
 
+# Notify user of the action, and what it's operating one
 echo $action $target
 
+# Be verbose if requested
 [ ${VERBOSE} ] && echo $cmd
+
+# Execute the original command
 $cmd



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to