git://git.onelab.eu
/
plcapi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
17a90e3
)
throw an error if methods.py fails
author
Mark Huang
<mlhuang@cs.princeton.edu>
Thu, 4 Jan 2007 16:05:35 +0000
(16:05 +0000)
committer
Mark Huang
<mlhuang@cs.princeton.edu>
Thu, 4 Jan 2007 16:05:35 +0000
(16:05 +0000)
php/Makefile
patch
|
blob
|
history
diff --git
a/php/Makefile
b/php/Makefile
index
660b536
..
5498951
100644
(file)
--- a/
php/Makefile
+++ b/
php/Makefile
@@
-4,18
+4,20
@@
# Mark Huang <mlhuang@cs.princeton.edu>
# Copyright (C) 2006 The Trustees of Princeton University
#
# Mark Huang <mlhuang@cs.princeton.edu>
# Copyright (C) 2006 The Trustees of Princeton University
#
-# $Id: Makefile,v 1.
1 2006/10/25 20:32:44
mlhuang Exp $
+# $Id: Makefile,v 1.
2 2006/10/27 15:40:37
mlhuang Exp $
#
all: plc_api.php
methods.php: methods.py ../PLC/__init__.py ../PLC/Methods/__init__.py
#
all: plc_api.php
methods.php: methods.py ../PLC/__init__.py ../PLC/Methods/__init__.py
- PYTHONPATH=.. python $< | \
- sed -e "s/^/ /" > $@
+ PYTHONPATH=.. python $< > $@
+ # Indent all lines by a couple of spaces
+ sed -i -e "s/^/ /" $@
plc_api.php: header.php methods.php footer.php
plc_api.php: header.php methods.php footer.php
- sed -e "s/@DATE@/$$(date)/" header.php | \
- cat - methods.php footer.php > $@
+ # Set timestamp
+ sed -e "s/@DATE@/$$(date)/" header.php > $@
+ cat methods.php footer.php >> $@
clean:
rm -f plc_api.php methods.php
clean:
rm -f plc_api.php methods.php