1
mirror of https://invent.kde.org/network/falkon.git synced 2024-09-21 17:52:10 +02:00
falkonOfficial/scripts/getrevision.sh
nowrep 4fc30fca05 Edited getrevision.sh script and added one git hook
- git hook to automatically update revision number after
  commiting changes
2012-01-28 13:05:16 +01:00

12 lines
279 B
Bash

#!/bin/bash
#git show-ref refs/heads/master | cut -d " " -f 1 | cut -c 1-10
cd ..
if [ -e "/usr/bin/git" ] && [ -e ".git" ]; then
git show-ref refs/heads/master | cut -d " " -f 1 | cut -c 1-10;
elif [ -e "git_revision" ]; then
cat git_revision | cut -c 1-10;
fi
exit;