diff options
author | XhmikosR <xhmikosr@users.sourceforge.net> | 2013-10-20 18:47:36 +0400 |
---|---|---|
committer | XhmikosR <xhmikosr@users.sourceforge.net> | 2013-10-27 12:03:15 +0400 |
commit | 7e09ecda3df444f2ee887d0d7122bc6c9daa2757 (patch) | |
tree | 95eedda5ceb42909f88dbff7dcbed80f82e5f61e /contrib | |
parent | e737da0962f9ca675b4161a4602d11a6810307be (diff) |
Minor cosmetic changes.
Diffstat (limited to 'contrib')
-rw-r--r-- | contrib/hash2rev.sh | 3 | ||||
-rw-r--r-- | contrib/rev2hash.sh | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/contrib/hash2rev.sh b/contrib/hash2rev.sh index b49a11e13..37ea9ff00 100644 --- a/contrib/hash2rev.sh +++ b/contrib/hash2rev.sh @@ -16,13 +16,14 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. + [[ -n "$1" ]] || exit 1 # This is the last svn changeset, the number and hash can be automatically # calculated, but it is slow to do that. So it is better to have it hardcoded. svnrev=5597 svnhash="f669833b77e6515dc5f0a682c5bf665f9a81b2ec" -#If the git command isn't available or we are not inside a git repo exit the script +# If the git command isn't available or we are not inside a git repo exit the script git rev-parse --git-dir > /dev/null 2>&1 || exit 1 # If the input hash is after the switch to git diff --git a/contrib/rev2hash.sh b/contrib/rev2hash.sh index e937beee9..5f845dd74 100644 --- a/contrib/rev2hash.sh +++ b/contrib/rev2hash.sh @@ -16,6 +16,7 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. + OPTIND=1 fullhash=0 hashlength=7 @@ -58,7 +59,7 @@ rev="$1" svnrev=5597 svnhash="f669833b77e6515dc5f0a682c5bf665f9a81b2ec" -#If the git command isn't available or we are not inside a git repo exit the script +# If the git command isn't available or we are not inside a git repo exit the script git rev-parse --git-dir > /dev/null 2>&1 || exit 1 # If this revision is after the switch to git |