summaryrefslogtreecommitdiff
path: root/fedora/Makefile
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>2004-09-23 00:59:04 +0000
committerRoland McGrath <roland@gnu.org>2004-09-23 00:59:04 +0000
commit237910315c39b9b674045872c9b4e99c1369d911 (patch)
treeccd775d963f816b3153805a9d88acbd6998ec920 /fedora/Makefile
parenta0d24ebc124a3ca47b257109fce14fc81a0cf363 (diff)
More update tweaks.
Diffstat (limited to 'fedora/Makefile')
-rw-r--r--fedora/Makefile21
1 files changed, 6 insertions, 15 deletions
diff --git a/fedora/Makefile b/fedora/Makefile
index c5b90f348c..cd2d19bea8 100644
--- a/fedora/Makefile
+++ b/fedora/Makefile
@@ -16,32 +16,23 @@ on-branch = $(filter-out HEAD,$(glibc-base))
snapshot-date := $($(glibc-branch)-sync-date)
snapshot-name := $(shell date -u -d '$(snapshot-date)' $(snapshot-name-fmt))
-ifeq ($(glibc-base),HEAD)
-tar-name := glibc
-select-snapshot = -D '$(snapshot-date)'
-snapshot-id = $(glibc-base):$(snapshot-date)
-else
-tar-name := glibc-$(subst _,.,$(patsubst glibc-%-branch,%,$(glibc-base)))
+tar-name := glibc-$(subst _,.,$(patsubst glibc-%-branch,%,\
+ $(filter-out HEAD,$(glibc-base))))
select-snapshot = -r '$($(glibc-branch)-sync-tag)'
snapshot-id = $($(glibc-branch)-sync-tag)
-endif
update:
now=`date -u $(snapshot-date-fmt)`; \
name=`date -u -d "$$now" $(snapshot-name-fmt)`; \
- $(if $(on-branch),\
- old="$(tag-prefix)$(tar-name)-$$name; \
- new="$(tag-prefix)$(tar-name)$(snapshot-name)"; \
- cvs -Q rtag -r $(glibc-base) $$new libc; \
- , old="$(glibc-base):$(snapshot-date)"; \
- new="$(glibc-base):$$now"; \
- ) \
+ old="$(tag-prefix)$(tar-name)-$(snapshot-name)"; \
+ new="$(tag-prefix)$(tar-name)-$$name"; \
+ cvs -Q rtag $(if $(on-branch),-r $(glibc-base),-D "$$now") $$new libc;\
(echo '# This file is updated automatically by Makefile.'; \
echo 'glibc-branch := $(glibc-branch)'; \
echo 'glibc-base := $(glibc-base)'; \
echo "$(glibc-branch)-sync-date := $$now"; \
- $(if $(on-branch),echo "$(glibc-branch)-sync-tag := $$new";) \
+ echo "$(glibc-branch)-sync-tag := $$new"; \
) > branch.mk; \
cd ..; (set -x; cvs -q update -d -P -j"$$old" -j"$$new") \
2>&1 | tee fedora/update.log