diff options
author | P. J. McDermott <pj@pehjota.net> | 2015-09-06 13:18:07 (EDT) |
---|---|---|
committer | P. J. McDermott <pj@pehjota.net> | 2015-09-06 13:18:07 (EDT) |
commit | 412c283480bffac744a3d929fe723644c812732e (patch) | |
tree | 489054acc8e3b5ab04aa848ba1b3910b990f4fc2 | |
parent | 76cd3da56e5039a5522ec3299aa5f1d0fb661f63 (diff) |
source.mk: Use upstream's "export" makefile target
This generates ChangeLog and sets SVNVERSION in Makefile.
-rw-r--r-- | source.mk | 11 |
1 files changed, 7 insertions, 4 deletions
@@ -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) |