# Mark Huang <mlhuang@cs.princeton.edu>
# Copyright (C) 2003-2005 The Trustees of Princeton University
#
-# $Id: plc.mk,v 1.8 2005/12/22 22:29:37 mlhuang Exp $
+# $Id: plc.mk,v 1.10 2006/03/10 21:44:07 mlhuang Exp $
#
#
install -D -m 644 groups/stock_fc2_groups.xml RPMS/yumgroups.xml
# Populate repository
mkdir -p $(ARCHIVE)/$(BASE)
- rsync --delete --links --perms --times --group --exclude "*-debuginfo-*.rpm" \
- RPMS $(ARCHIVE)/$(BASE)/
+ rsync --delete --links --perms --times --group \
+ $(sort $(subst -debuginfo,,$(wildcard RPMS/yumgroups.xml RPMS/*/*))) $(ARCHIVE)/$(BASE)/
yum-arch $(ARCHIVE)/$(BASE) >/dev/null
+ createrepo $(ARCHIVE)/$(BASE) >/dev/null
ifeq ($(TAG),HEAD)
ln -nsf $(ARCHIVE)/$(BASE) $(REPOS)
endif