auto update of scripts/bootstrapit_update.sh

This commit is contained in:
Manuel Barkhau 2020-10-04 17:13:48 +00:00
parent 8439d4290a
commit 65791ff26a

View file

@ -75,6 +75,20 @@ if [[ -f "makefile.extra.make" && -f "makefile.config.make" ]]; then
exit 1 exit 1
fi 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 # Argument parsing from
# https://stackoverflow.com/a/14203146/62997 # https://stackoverflow.com/a/14203146/62997
UPDATE_ALL=0 UPDATE_ALL=0
@ -346,9 +360,7 @@ elif [[ -z "${IGNORE_IF_EXISTS[*]}" ]]; then
"CHANGELOG.md" "CHANGELOG.md"
"README.md" "README.md"
"setup.py" "setup.py"
"makefile"
"requirements/pypi.txt" "requirements/pypi.txt"
"requirements/development.txt"
"requirements/conda.txt" "requirements/conda.txt"
"requirements/vendor.txt" "requirements/vendor.txt"
"src/${MODULE_NAME}/__init__.py" "src/${MODULE_NAME}/__init__.py"
@ -398,8 +410,8 @@ copy_template MANIFEST.in;
copy_template setup.py; copy_template setup.py;
copy_template setup.cfg; copy_template setup.cfg;
copy_template makefile; copy_template Makefile;
copy_template makefile.bootstrapit.make; copy_template Makefile.bootstrapit.make;
copy_template activate; copy_template activate;
copy_template docker_base.Dockerfile; copy_template docker_base.Dockerfile;
copy_template Dockerfile; copy_template Dockerfile;