1
mirror of https://invent.kde.org/network/falkon.git synced 2024-09-21 17:52:10 +02:00

Remove git_hooks

This commit is contained in:
David Rosca 2018-01-24 15:27:14 +01:00
parent 4292ecd465
commit 61c24615e6
6 changed files with 0 additions and 50 deletions

View File

@ -1,3 +0,0 @@
Git hooks that writes current git revision into git_revision file that is afterwards used to show revision in program in About dialog.
Install these hooks by running hooks-install.sh script (copy into .git/hooks/ directory)

View File

@ -1,9 +0,0 @@
#!/bin/bash
#
# Install hooks into .git/hooks directory
#
cp pre-commit ../.git/hooks/pre-commit
cp post-commit ../.git/hooks/post-commit
cp post-checkout ../.git/hooks/post-checkout
cp post-merge ../.git/hooks/post-merge

View File

@ -1,5 +0,0 @@
#!/bin/sh
#
# Writes git revision into git_revision file
#
git rev-parse HEAD > git_revision

View File

@ -1,5 +0,0 @@
#!/bin/sh
#
# Writes git revision into git_revision file
#
git rev-parse HEAD > git_revision

View File

@ -1,5 +0,0 @@
#!/bin/sh
#
# Writes git revision into git_revision file
#
git rev-parse HEAD > git_revision

View File

@ -1,23 +0,0 @@
#!/bin/sh
#
# Check if copyright statements include the current year
# http://damien.lespiau.name/blog/2013/01/13/a-git-pre-commit
#
files=`git diff --cached --name-only | grep '[.cpp|.h]$'`
year=`date +"%Y"`
for f in $files; do
head -10 $f | grep -i copyright 2>&1 1>/dev/null || continue
if ! grep -i -e "copyright.*$year" $f 2>&1 1>/dev/null; then
missing_copyright_files="$missing_copyright_files $f"
fi
done
if [ -n "$missing_copyright_files" ]; then
echo "$year is missing in the copyright notice of the following files:"
for f in $missing_copyright_files; do
echo " $f"
done
exit 1
fi