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.
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