Permalink
Browse files

better build script

  • Loading branch information...
1 parent c5f43ab commit 3db95c7f936c0b6eef9c3580f1c1d223090fb318 @erh committed Mar 24, 2010
Showing with 8 additions and 8 deletions.
  1. +8 −8 build.tcsh
View
@@ -1,12 +1,12 @@
#!/bin/tcsh
-foreach x ( ops mem )
+foreach out ( `ls src/body_*.py` )
+ echo $out
+ set x = `echo $out | grep -o "src.body_(.*).py"`
+ echo $x
+end
+
+foreach x ( ops mem btree )
set out = mongo_$x
- echo "#!"`which python` > $out
- echo "" >> $out
- echo "## GENERATED FILE - DO NOT EDIT" >> $out
- cat src/header.py >> $out
- cat src/body_$x.py >> $out
- cat src/footer.py >> $out
- chmod 755 $out
+
end

0 comments on commit 3db95c7

Please sign in to comment.