mirror of https://github.com/wolfSSL/wolfMQTT.git
Remove pre-commit hooks
parent
cc4c3a634c
commit
b990e816a0
|
|
@ -5,14 +5,6 @@
|
|||
|
||||
set -e
|
||||
|
||||
# Git hooks should come before autoreconf.
|
||||
if test -d .git; then
|
||||
if ! test -d .git/hooks; then
|
||||
mkdir .git/hooks
|
||||
fi
|
||||
ln -s -f ../../pre-commit.sh .git/hooks/pre-commit
|
||||
fi
|
||||
|
||||
# if get an error about libtool not setup
|
||||
# " error: Libtool library used but 'LIBTOOL' is undefined
|
||||
# The usual way to define 'LIBTOOL' is to add 'LT_INIT' "
|
||||
|
|
|
|||
|
|
@ -1,36 +0,0 @@
|
|||
#!/bin/sh
|
||||
#
|
||||
#
|
||||
# Our "pre-commit" hook.
|
||||
|
||||
# save current config
|
||||
echo "\n\nSaving current config\n\n"
|
||||
cp config.status tmp.status
|
||||
#cp wolfmqtt/options.h tmp.options.h
|
||||
|
||||
# stash modified files not part of this commit, don't test them
|
||||
echo "\n\nStashing any modified files not part of commit\n\n"
|
||||
git stash -q --keep-index
|
||||
|
||||
# do the commit tests
|
||||
echo "\n\nRunning commit tests...\n\n"
|
||||
./commit-tests.sh
|
||||
RESULT=$?
|
||||
|
||||
# restore modified files not part of this commit
|
||||
echo "\n\nPopping any stashed modified files not part of commit\n"
|
||||
git stash pop -q
|
||||
|
||||
# restore current config
|
||||
echo "\nRestoring current config\n"
|
||||
mv tmp.status config.status
|
||||
# don't show output in case error from above
|
||||
./config.status >/dev/null 2>&1
|
||||
#mv tmp.options.h wolfmqtt/options.h
|
||||
make clean >/dev/null 2>&1
|
||||
make -j 8 >/dev/null 2>&1
|
||||
|
||||
[ $RESULT -ne 0 ] && echo "\nOops, your commit failed\n" && exit 1
|
||||
|
||||
echo "\nCommit tests passed!\n"
|
||||
exit 0
|
||||
Loading…
Reference in New Issue