aboutsummaryrefslogtreecommitdiff
path: root/contrib
diff options
context:
space:
mode:
authorclick <click@gonnamakeyou.com>2011-04-28 18:53:23 +0200
committerclick <click@gonnamakeyou.com>2011-04-28 18:53:23 +0200
commit6a431f745c9d2906de34530e24c85933fe587d65 (patch)
treef8ba0ffe37095db8c58702e08708965a314ef579 /contrib
parent2d752b974a40a5dc28908413d21533fb9839a156 (diff)
Core: get rid of the revision-id once and for all - it's not useful in a DVCS at all
Diffstat (limited to 'contrib')
-rwxr-xr-xcontrib/git/rev_id.cmd29
-rwxr-xr-xcontrib/git/rev_id.sh20
2 files changed, 0 insertions, 49 deletions
diff --git a/contrib/git/rev_id.cmd b/contrib/git/rev_id.cmd
deleted file mode 100755
index 745e85ae59d..00000000000
--- a/contrib/git/rev_id.cmd
+++ /dev/null
@@ -1,29 +0,0 @@
-@echo off &setlocal EnableDelayedExpansion
-set usage=Usage: %0 ^<-id ^| -hash^>
-set errormsg=Error: No valid revision information found
-
-set cmres=false
-if "%1"=="-id" set cmres=true
-if "%1"=="-hash" set cmres=true
-if not "!cmres!"=="true" (
- echo !usage!
- exit /B 1
-)
-
-for /F "tokens=2,3 delims=-" %%a IN ('"git describe --match=init --abbrev=12"') do (
- set res=false
- if %%c=="" set res=true
- if %%d=="" set res=true
- if "!res!"=="true" (
- echo !errormsg!
- exit /B 1
- )
-
- if "%1"=="-id" (
- echo %%a
- ) else if "%1"=="-hash" (
- set str=%%b
- set str=!str:~1!
- echo !str!
- )
-)
diff --git a/contrib/git/rev_id.sh b/contrib/git/rev_id.sh
deleted file mode 100755
index 0d3d8d5da85..00000000000
--- a/contrib/git/rev_id.sh
+++ /dev/null
@@ -1,20 +0,0 @@
-#/bin/bash
-command=$(git describe --match init --abbrev=12)
-IFS="-"
-cmdarray=($command)
-
-if [ "$1" != "-id" ] && [ "$1" != "-hash" ]; then
- echo "Usage: $0 <-id | -hash>"
- exit
-fi
-
-if [ "${cmdarray[1]}" == "" ] || [ "${cmdarray[2]}" == "" ]; then
- echo "Error: No valid revision information found"
- exit 1
-fi
-
-if [ "$1" == "-id" ]; then
- echo ${cmdarray[1]}
-elif [ "$1" == "-hash" ]; then
- echo ${cmdarray[2]:1}
-fi