Update of /cvsroot/audacity/htdocs
In directory 23jxhf1.ch3.sourceforge.com:/tmp/cvs-serv21763
Modified Files:
Makefile
Log Message:
Add some explanation to the rather make-foo commands for the .inc file
Index: Makefile
===================================================================
RCS file: /cvsroot/audacity/htdocs/Makefile,v
retrieving revision 1.23
retrieving revision 1.24
diff -u -d -r1.23 -r1.24
--- Makefile 20 Feb 2009 21:34:29 -0000 1.23
+++ Makefile 20 Feb 2009 21:40:27 -0000 1.24
@@ -35,6 +35,14 @@
| xargs $(XGETTEXT) $(XGETTEXT_ARGS) -o $@
# Update the include file with the dates of the .pot files.
+# (Note all the $ signs have to be doubled to get them past make's expansion.
+# This passes single $ signs to the shell, where some of them have to be
further
+# escaped with \ characters in order to get them into the .inc file.
+# The extraction of the dates relies on a shell that does command substitution
+# using bash's $() syntax, which runs the command within the (), so may not
+# work with all shells.)
+# The variables with a single $() are Makefile variables which get expanded
+# right at the beginning so their expanded values are used in the commands.
$(INC_FILE): $(POT_FILE) $(PROG_POT_FILE)
echo "<?php // This file is auto-generated by the Makefile. Don't edit
it because the changes will be lost" > $(INC_FILE)
echo "\$$web_year = $$(date +%Y);" >> $(INC_FILE)
------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
Audacity-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/audacity-cvs