2003/04/10 01:50:08
authormegacz <megacz@xwt.org>
Fri, 30 Jan 2004 06:58:34 +0000 (06:58 +0000)
committermegacz <megacz@xwt.org>
Fri, 30 Jan 2004 06:58:34 +0000 (06:58 +0000)
darcs-hash:20040130065834-2ba56-950ba47fa0b4efbb6da257eba061a850f9a3682a.gz

Makefile

index 031983c..d02bc8c 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -222,6 +222,7 @@ PalmOS:
 
 current_build         := $(shell cat next.build)
 this_branch           := $(shell tail -c +2 CVS/Tag 2>/dev/null || echo HEAD)
+this_branch_flag      := $(shell test $this_branch = HEAD && echo || echo -r $this_branch)
 
 dist:
        # this will fail if we haven't checked-in since the comment is null; we want this.
@@ -238,7 +239,7 @@ dist:
                tail -n 200 .make-dist.out | \
                        mail -s "Unsigned binaries of $(current_build) are now available" cvs@xwt.org
         else
-               ssh xwt@xwt.org verbose=$(verbose) /home/xwt/dist $(this_branch) \
+               ssh xwt@xwt.org verbose=$(verbose) /home/xwt/dist $(this_branch_flag) \
                        | grep -v "make...:.\(Entering\|Leaving\).directory"
         endif