| 1 | #!/bin/bash |
| 2 | |
| 3 | EXEC=./make_amalgamation.bash |
| 4 | CPP=amalgamation.cpp |
| 5 | |
| 6 | rm -f $CPP |
| 7 | |
| 8 | echo "#!/bin/bash |
| 9 | echo Preparing \$1 |
| 10 | if [ \"x\" = \"x\$1\" ] ; then |
| 11 | exit |
| 12 | fi |
| 13 | |
| 14 | cat \$1 >> $CPP |
| 15 | " > $EXEC |
| 16 | |
| 17 | chmod u+x $EXEC |
| 18 | |
| 19 | for dir in . DataModel Hardware Hardware/Protocols Logger Network Storage Utils Server/CS2 Server/Web Server/Z21 ; do |
| 20 | find $dir -maxdepth 1 -type f -name "*.cpp" -exec $EXEC {} \; |
| 21 | done |
| 22 | |
| 23 | rm $EXEC |