diff options
Diffstat (limited to 'sh')
-rw-r--r-- | sh/Makefile.am | 2 | ||||
-rwxr-xr-x | sh/get.sh | 8 | ||||
-rwxr-xr-x | sh/get_version.sh | 22 | ||||
-rwxr-xr-x | sh/propset.sh | 18 |
4 files changed, 28 insertions, 22 deletions
diff --git a/sh/Makefile.am b/sh/Makefile.am new file mode 100644 index 0000000..e6e99e3 --- /dev/null +++ b/sh/Makefile.am @@ -0,0 +1,2 @@ +bin_SCRIPTS = \ + nc_serv.sh @@ -1,6 +1,6 @@ #!/bin/sh +# +# (c) 2006 Bertrand Jacquin <beber:setibzh.com> +# -# (c) 2005 Bertrand Jacquin <beber:setibzh.com> -# Under GPLv2 - -svn co http://guybrush.ath.cx/public/espik +cg-clone http://guybrush.ath.cx/git/public/e/espik.git diff --git a/sh/get_version.sh b/sh/get_version.sh new file mode 100755 index 0000000..b8a7d38 --- /dev/null +++ b/sh/get_version.sh @@ -0,0 +1,22 @@ +#!/bin/sh +# +# (c) 2006 Bertrand Jacquin <beber.mailing@gmail.com> +# + +if [ -d .git ]; then + head=$(git rev-parse --verify HEAD 2>/dev/null) + + if [ "`git name-rev --tags HEAD`" = "HEAD undefined" ]; then + version="g$(echo "${head}" | cut -c 1-8)" + fi + + if [ -n "$(git diff-files)" ]; then + version="${version}-dirty" + fi +else + version=$(date +%Y%m%d) +fi + +echo ${version} + +exit 0 diff --git a/sh/propset.sh b/sh/propset.sh deleted file mode 100755 index dc9dc8b..0000000 --- a/sh/propset.sh +++ /dev/null @@ -1,18 +0,0 @@ -#!/bin/sh - -# All parameters will be then ignore by svn st - -export LC_ALL=C - -while [ ! -z "$1" ] -do - echo $1 >> .svnignore - shift -done - -svn commit -m "ignore update" - -svn propset svn:ignore -F .svnignore . -svn up - -svn commit -m "propset update" |