summaryrefslogtreecommitdiffstats
path: root/pkg/module.rules
diff options
context:
space:
mode:
authorjstebbins <[email protected]>2014-01-27 23:14:59 +0000
committerjstebbins <[email protected]>2014-01-27 23:14:59 +0000
commitbb11d6a3e708a6208b09cdd79bf34e43b4c6d6ea (patch)
tree2927a75d2cee7d3aef0f9085822b95247c0fa825 /pkg/module.rules
parent3a5019a7ed8cc7eb68be713aabf1ad676d080fbf (diff)
build: add parsing of version info from version.txt file
This makes it possible to have proper version numbers in the build when the source tree does not come from svn (e.g. a tarball). Also, automatically adds version.txt to our source tar that is created with "make pkg.create". git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6005 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'pkg/module.rules')
-rw-r--r--pkg/module.rules4
1 files changed, 1 insertions, 3 deletions
diff --git a/pkg/module.rules b/pkg/module.rules
index da46620f1..9c0457e3b 100644
--- a/pkg/module.rules
+++ b/pkg/module.rules
@@ -18,9 +18,7 @@ $(PKG.src.tar.bz2): | $(STAGE.out.src/)
$(STAGE.out.src/):
svn export -r$(HB.repo.rev) $(HB.repo.url) $@/$(PKG.basename)
- sed 's/\(self.rev.*=.*\)0/\1$(HB.repo.rev)/' \
- $@/$(PKG.basename)/make/configure.py > $@/$(PKG.basename)/make/configure.py.tmp
- $(MV.exe) $@/$(PKG.basename)/make/configure.py.tmp $@/$(PKG.basename)/make/configure.py
+ svn info $(HB.repo.url)@$(HB.repo.rev) > $@/$(PKG.basename)/version.txt
$(PKG.src-contrib.tar.bz2):
$(TAR.exe) cjf $@ -C $(CONTRIB.download/) \