From 65791ff26a866704ca605658fc197db519e0cf4c Mon Sep 17 00:00:00 2001 From: Manuel Barkhau Date: Sun, 4 Oct 2020 17:13:48 +0000 Subject: [PATCH] auto update of scripts/bootstrapit_update.sh --- scripts/bootstrapit_update.sh | 20 ++++++++++++++++---- 1 file changed, 16 insertions(+), 4 deletions(-) diff --git a/scripts/bootstrapit_update.sh b/scripts/bootstrapit_update.sh index 2a9247c..00d837a 100644 --- a/scripts/bootstrapit_update.sh +++ b/scripts/bootstrapit_update.sh @@ -75,6 +75,20 @@ if [[ -f "makefile.extra.make" && -f "makefile.config.make" ]]; then exit 1 fi +# One time update of makefile capitalization +if [[ -f "makefile" && -f "makefile.bootstrapit.make" ]]; then + printf "Change capitalization of makefile -> Makefile # because too many rustled jimmies\n\n" + printf " mv makefile Makefile\n" + printf " mv makefile.bootstrapit.make Makefile.bootstrapit.make\n" + sed -i 's/include makefile.bootstrapit.make/include Makefile.bootstrapit.make/g' makefile + git add makefile + git mv makefile Makefile; + git mv makefile.bootstrapit.make Makefile.bootstrapit.make; + + printf "Please commit the renamed files and run bootstrapit_update.sh again." + exit 1 +fi + # Argument parsing from # https://stackoverflow.com/a/14203146/62997 UPDATE_ALL=0 @@ -346,9 +360,7 @@ elif [[ -z "${IGNORE_IF_EXISTS[*]}" ]]; then "CHANGELOG.md" "README.md" "setup.py" - "makefile" "requirements/pypi.txt" - "requirements/development.txt" "requirements/conda.txt" "requirements/vendor.txt" "src/${MODULE_NAME}/__init__.py" @@ -398,8 +410,8 @@ copy_template MANIFEST.in; copy_template setup.py; copy_template setup.cfg; -copy_template makefile; -copy_template makefile.bootstrapit.make; +copy_template Makefile; +copy_template Makefile.bootstrapit.make; copy_template activate; copy_template docker_base.Dockerfile; copy_template Dockerfile;