Migrate tla related stuff to git
[zcdrip] / build.sh
index 046d2d5..9cb9d65 100755 (executable)
--- a/build.sh
+++ b/build.sh
@@ -1,9 +1,9 @@
 #!/bin/zsh
 
-## Copyright (C) 2006, 2007 Steve Youngs
+## Copyright (C) 2006 - 2011 Steve Youngs
 
-## Author:        Steve Youngs <steve@sxemacs.org>
-## Maintainer:    Steve Youngs <steve@sxemacs.org>
+## Author:        Steve Youngs <steve@steveyoungs.com>
+## Maintainer:    Steve Youngs <steve@steveyoungs.com>
 ## Created:       <2006-08-16>
 
 ## This file is part of zcdrip
@@ -49,7 +49,8 @@ all ()
 {
     clean
     sub=@VERSION@
-    rep=$(tla logs --full|tail -n1)
+    tver=v0.7
+    rep=$(git describe 2>/dev/null||echo ${tver})
     zmodload -i zsh/mapfile
     gcc -Wall -o zdiscid zdiscid.c
     mapfile[zcdrip]=${mapfile[zcdrip.in]/$sub/$rep}