- ssh $(SERVER) mkdir -p $(ARCHIVE)/$(BASE)/RPMS $(ARCHIVE)/$(BASE)/SRPMS
- rsync --delete --links --perms --times --group --compress --rsh=ssh \
- $(sort $(subst -debuginfo,,$(wildcard RPMS/yumgroups.xml RPMS/*/*.rpm))) $(SERVER):$(ARCHIVE)/$(BASE)/RPMS/
- ssh $(SERVER) yum-arch $(ARCHIVE)/$(BASE)/RPMS >/dev/null
- ssh $(SERVER) createrepo -g yumgroups.xml $(ARCHIVE)/$(BASE)/RPMS >/dev/null
- rsync --delete --links --perms --times --group --compress --rsh=ssh \
- $(wildcard SRPMS/*.rpm) $(SERVER):$(ARCHIVE)/$(BASE)/SRPMS/
- ssh $(SERVER) yum-arch $(ARCHIVE)/$(BASE)/SRPMS >/dev/null
- ssh $(SERVER) createrepo $(ARCHIVE)/$(BASE)/SRPMS >/dev/null
+ rsync \
+ --exclude '*-debuginfo-*' \
+ --recursive --links --perms --times --group --compress --rsh=ssh \
+ RPMS/ $(SERVERA):$(ARCHIVE)/$(BASE)
+ rsync \
+ --exclude '*-debuginfo-*' \
+ --recursive --links --perms --times --group --compress --rsh=ssh \
+ RPMS/ $(SERVERB):$(ARCHIVE)/$(BASE)