File: amalgamation.bash

package info (click to toggle)
railcontrol 24%2Bdfsg1-8
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 4,636 kB
  • sloc: cpp: 40,819; javascript: 2,509; makefile: 144; php: 97; sh: 60
file content (23 lines) | stat: -rw-r--r-- 395 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/bin/bash

EXEC=./make_amalgamation.bash
CPP=amalgamation.cpp

rm -f $CPP

echo "#!/bin/bash
echo Preparing \$1
if [ \"x\" = \"x\$1\" ] ; then
	exit
fi

cat \$1 >> $CPP
" > $EXEC

chmod u+x $EXEC

for dir in . DataModel Hardware Hardware/Protocols Logger Network Storage Utils Server/CS2 Server/Web Server/Z21 ; do
	find $dir -maxdepth 1 -type f -name "*.cpp" -exec $EXEC {} \;
done

rm $EXEC