date: 2006/07/24 19:23:57; author: mlhuang; state: Exp; lines: +4 -1
- define cvstag for tagged builds
# Mark Huang <mlhuang@cs.princeton.edu>
# Copyright (C) 2003-2006 The Trustees of Princeton University
#
-# $Id: Rules.mk,v 1.22 2006/03/27 17:28:25 mlhuang Exp $
+# $Id: Rules.mk,v 1.24 2006/07/24 19:23:57 mlhuang Exp $
#
# Base rpmbuild in the current directory
ifeq ($(TAG),HEAD)
# Define date for untagged builds
echo "%define date $(shell date +%Y.%m.%d)" >> $@
+else
+ # Define cvstag for tagged builds
+ echo "%define cvstag $(TAG)" >> $@
endif
cvs -d $(CVSROOT) checkout -r $(TAG) -p $(SPEC) >> $@