Browse Source

add '-c' option (again) to updatemakes.sh

Steffen Jaeckel 8 years ago
parent
commit
9babf374ee
1 changed files with 7 additions and 0 deletions
  1. 7 0
      updatemakes.sh

+ 7 - 0
updatemakes.sh

@@ -2,4 +2,11 @@
 
 ./helper.pl --update-makefiles || exit 1
 
+makefiles=(makefile makefile.icc makefile.shared makefile.unix makefile.mingw makefile.msvc)
+vcproj=(libtomcrypt_VS2008.vcproj libtomcrypt_VS2005.vcproj)
+
+if [ $# -eq 1 ] && [ "$1" == "-c" ]; then
+  git add ${makefiles[@]} ${vcproj[@]} && git commit -m 'Update makefiles'
+fi
+
 exit 0