From 412c283480bffac744a3d929fe723644c812732e Mon Sep 17 00:00:00 2001 From: P. J. McDermott Date: Sun, 06 Sep 2015 13:18:07 -0400 Subject: source.mk: Use upstream's "export" makefile target This generates ChangeLog and sets SVNVERSION in Makefile. --- diff --git a/source.mk b/source.mk index 8abd03f..3b074df 100644 --- a/source.mk +++ b/source.mk @@ -1,13 +1,16 @@ upstream_svn_uri = svn://flashrom.org/flashrom/trunk upstream_svn_rev = $$(printf '%s\n' '$(OPK_SOURCE_VERSION_UPSTREAM)' | \ sed 's/^.*[~+]r\([0-9][0-9]*\).*$$/\1/') +upstream_releasename = $$(printf '%s\n' '$(OPK_SOURCE_VERSION_UPSTREAM)' | \ + sed 's/[~+]r/-r/') source_archive = ../$(OPK_SOURCE)-$(OPK_SOURCE_VERSION_UPSTREAM).orig.tar.bz2 $(source_archive): - svn export -r "$(upstream_svn_rev)" "$(upstream_svn_uri)" \ - '$(OPK_SOURCE)' - tar -cjf '$(@)' '$(OPK_SOURCE)' + svn co -r "$(upstream_svn_rev)" "$(upstream_svn_uri)" flashrom + (cd flashrom && make export) + (cd flashrom && tar -cjf '../$(@)' "flashrom-$(upstream_releasename)") rm -Rf src - mv '$(OPK_SOURCE)' src + mv "flashrom/flashrom-$(upstream_releasename)" src + rm -Rf flashrom source: $(source_archive) -- cgit v0.9.1