EGLIBC_SVN = svn://svn.eglibc.org EGLIBC_BRANCH = branches/eglibc-$(shell echo $(EGLIBC_VERSION) | sed -e 's/\([0-9]\+\)\.\([0-9]\+\).*/\1_\2/') #EGLIBC_BRANCH = trunk EGLIBC_REVISION = 9672 EGLIBC_CHECKOUT = eglibc-checkout EGLIBC_DIR = eglibc-$(EGLIBC_VERSION) DEB_ORIG = ../eglibc_$(EGLIBC_VERSION).orig.tar.gz DEB_ORIG_REVISION = $(shell cat .svn-revision 2> /dev/null) SVN_UPDATES_DIFF = debian/patches/svn-updates.diff get-orig-source: $(DEB_ORIG) $(DEB_ORIG): dh_testdir svn co $(EGLIBC_SVN)/$(EGLIBC_BRANCH)@$(EGLIBC_REVISION) $(EGLIBC_CHECKOUT) svn export $(EGLIBC_CHECKOUT)/libc $(EGLIBC_DIR) svn export $(EGLIBC_CHECKOUT)/linuxthreads/linuxthreads $(EGLIBC_DIR)/linuxthreads svn export $(EGLIBC_CHECKOUT)/linuxthreads/linuxthreads_db $(EGLIBC_DIR)/linuxthreads_db svn export $(EGLIBC_CHECKOUT)/ports $(EGLIBC_DIR)/ports svn status -v $(EGLIBC_CHECKOUT)/libc/ChangeLog | sed '1,1s/^ \+\([0-9]\+\).*/\1/g' > $(EGLIBC_DIR)/.svn-revision tar -zcf $(DEB_ORIG) $(EGLIBC_DIR) rm -rf $(EGLIBC_DIR) $(EGLIBC_CHECKOUT) update-from-upstream-svn: dh_testdir test -n "$(DEB_ORIG_REVISION)" echo "SVN update of $(EGLIBC_SVN)/$(EGLIBC_BRANCH) from revision $(DEB_ORIG_REVISION)" > $(SVN_UPDATES_DIFF) echo "" >> $(SVN_UPDATES_DIFF) svn diff -r$(DEB_ORIG_REVISION) $(EGLIBC_SVN)/$(EGLIBC_BRANCH)/libc | filterdiff --addoldprefix=a/ --addnewprefix=b/ >> $(SVN_UPDATES_DIFF) svn diff -r$(DEB_ORIG_REVISION) $(EGLIBC_SVN)/$(EGLIBC_BRANCH)/ports | filterdiff --addoldprefix=a/ports/ --addnewprefix=b/ports/ >> $(SVN_UPDATES_DIFF)