-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathcode2ip.sh
executable file
·23 lines (20 loc) · 905 Bytes
/
code2ip.sh
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
set -e
# Include these files in full
for f in README.md features-current-and-future.md congame-doc/LICENSE Dockerfile* $(find congame-identity -type f -name '*.rkt') $(ls congame-web-migrations/*.sql) $(ls congame-identity-migrations/*.sql) $(ls -p ci/* | grep -v /);
do
echo "########## START OF FILE: ${f} ##########"
echo " "
cat ${f}
echo " "
echo "########## END OF FILE ${f} ##########"
done
# Include only the header of these files
for f in $(find congame-{core,doc,example-study,pjb-studies,price-lists,smtp-proxy,tests,web} -type f -name '*.rkt') $(find resources/{css,js} -type f -regex '.*\(.css\|.scss\|.js\)') $(ls -p data-tools/*.{sh,R,Rproj} | grep -v /);
do
echo "########## START OF FILE: ${f} (only first 30 lines included) ##########"
echo " "
cat ${f} | head -n 30
echo " "
echo "########## END OF FILE ${f} ##########"
done