|
@@ -16,34 +16,6 @@ if [ -n "$WSL_DISTRO_NAME" ]; then
|
|
|
fi
|
|
|
fi
|
|
|
|
|
|
-# Git hooks should come before autoreconf.
|
|
|
-if [ -d .git ]; then
|
|
|
- if [ ! -d .git/hooks ]; then
|
|
|
- mkdir .git/hooks || exit $?
|
|
|
- fi
|
|
|
-
|
|
|
- if [ -n "$no_links" ]; then
|
|
|
- echo "Linux ln does not work on shared Windows file system in WSL."
|
|
|
- if [ ! -e .git/hooks/pre-commit ]; then
|
|
|
- echo "The pre-commit.sh file will not be copied to .git/hooks/pre-commit"
|
|
|
- # shell scripts do not work on Windows; TODO create equivalent batch file
|
|
|
- # cp ./pre-commit.sh .git/hooks/pre-commit || exit $?
|
|
|
- fi
|
|
|
- if [ ! -e .git/hooks/pre-push ]; then
|
|
|
- echo "The pre-push.sh file will not be copied to .git/hooks/pre-commit"
|
|
|
- # shell scripts do not work on Windows; TODO create equivalent batch file
|
|
|
- # cp ./pre-push.sh .git/hooks/pre-push || exit $?
|
|
|
- fi
|
|
|
- else
|
|
|
- if [ ! -e .git/hooks/pre-commit ]; then
|
|
|
- ln -s ../../pre-commit.sh .git/hooks/pre-commit || exit $?
|
|
|
- fi
|
|
|
- if [ ! -e .git/hooks/pre-push ]; then
|
|
|
- ln -s ../../pre-push.sh .git/hooks/pre-push || exit $?
|
|
|
- fi
|
|
|
- fi
|
|
|
-fi
|
|
|
-
|
|
|
# if and as needed, create empty dummy versions of various files, mostly
|
|
|
# associated with fips/self-test and asynccrypt:
|
|
|
|