libtomcrypt/updatemakes.sh

27 lines
548 B
Bash
Raw Normal View History

2006-01-26 18:11:56 +00:00
#!/bin/bash
2017-03-01 15:00:13 +00:00
makefiles=(makefile makefile.icc makefile.shared makefile.unix makefile.mingw)
2006-01-26 18:11:56 +00:00
2017-03-01 15:00:13 +00:00
function update_makefile() {
2017-03-01 16:52:05 +00:00
perl filter.pl $1 tmplist
sed -e 's/ *$//' < tmp.delme > $1
rm -f tmp.delme
2017-03-01 15:00:13 +00:00
}
2006-01-26 18:11:56 +00:00
2017-03-01 15:00:13 +00:00
bash genlist.sh > tmplist
2006-12-16 18:10:04 +00:00
2017-03-01 15:00:13 +00:00
for i in "${makefiles[@]}"
do
update_makefile "$i"
done
2013-06-14 20:26:15 +00:00
2006-01-26 18:11:56 +00:00
perl filter.pl makefile.msvc tmplist
2013-09-03 12:25:50 +00:00
sed -e 's/\.o /.obj /g' -e 's/ *$//' < tmp.delme > makefile.msvc
rm -f tmp.delme
2006-01-26 18:11:56 +00:00
rm -f tmplist
2017-03-01 15:00:13 +00:00
if [ $# -eq 1 ] && [ "$1" == "-c" ]; then
git add ${makefiles[@]} makefile.msvc && git commit -m 'Update makefiles'
fi