From 9babf374ee0ca89c3acf27c89b26507068abde2d Mon Sep 17 00:00:00 2001 From: Steffen Jaeckel Date: Wed, 15 Mar 2017 22:21:53 +0100 Subject: [PATCH] add '-c' option (again) to updatemakes.sh --- updatemakes.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/updatemakes.sh b/updatemakes.sh index c5e6229..070bab3 100755 --- a/updatemakes.sh +++ b/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