summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorP. 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)
commit412c283480bffac744a3d929fe723644c812732e (patch)
tree489054acc8e3b5ab04aa848ba1b3910b990f4fc2
parent76cd3da56e5039a5522ec3299aa5f1d0fb661f63 (diff)
source.mk: Use upstream's "export" makefile target
This generates ChangeLog and sets SVNVERSION in Makefile.
-rw-r--r--source.mk11
1 files changed, 7 insertions, 4 deletions
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)