diff libtomcrypt/updatemakes.sh @ 1511:5916af64acd4 fuzz

merge from main
author Matt Johnston <matt@ucc.asn.au>
date Sat, 17 Feb 2018 19:29:51 +0800
parents 6dba84798cd5
children
line wrap: on
line diff
--- a/libtomcrypt/updatemakes.sh	Tue Jan 23 23:27:40 2018 +0800
+++ b/libtomcrypt/updatemakes.sh	Sat Feb 17 19:29:51 2018 +0800
@@ -1,21 +1,12 @@
 #!/bin/bash
 
-bash genlist.sh > tmplist
+./helper.pl --update-makefiles || exit 1
 
-perl filter.pl makefile tmplist
-mv -f tmp.delme makefile
-
-perl filter.pl makefile.icc tmplist
-mv -f tmp.delme makefile.icc
+makefiles=(makefile makefile_include.mk makefile.shared makefile.unix makefile.mingw makefile.msvc)
+vcproj=(libtomcrypt_VS2008.vcproj)
 
-perl filter.pl makefile.shared tmplist
-mv -f tmp.delme makefile.shared
-
-perl filter.pl makefile.unix tmplist
-mv -f tmp.delme makefile.unix
+if [ $# -eq 1 ] && [ "$1" == "-c" ]; then
+  git add ${makefiles[@]} ${vcproj[@]} doc/Doxyfile && git commit -m 'Update makefiles'
+fi
 
-perl filter.pl makefile.msvc tmplist
-sed -e 's/\.o /.obj /g' < tmp.delme > makefile.msvc
-
-rm -f tmplist
-rm -f tmp.delme
+exit 0