Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100755 20 lines (15 sloc) 0.346 kb
32ed8a8 @lukaf * change from bash to sh
lukaf authored
1 #!/bin/sh
017ecad @erh mongo_btree
authored
2
3 for out in `ls src/body_*.py`
4 do
5 echo $out
6 x=${out#src/body_}
7 x=${x%.py}
8
9 out=mongo_$x
10
8d4a954 @schmichael Always use `/usr/bin/env python` in shebang line
schmichael authored
11 echo "#!/usr/bin/env python" > $out
017ecad @erh mongo_btree
authored
12 echo "" >> $out
13 echo "## GENERATED FILE - DO NOT EDIT" >> $out
14 cat src/header.py >> $out
15 cat src/body_$x.py >> $out
16 cat src/footer.py >> $out
17 chmod 755 $out
18
19 done
Something went wrong with that request. Please try again.