diff options
author | John Stebbins <[email protected]> | 2015-08-25 09:48:14 -0700 |
---|---|---|
committer | John Stebbins <[email protected]> | 2015-08-25 14:17:11 -0700 |
commit | 4889bc95883dd2cb0eb679d381d15385b930bcfa (patch) | |
tree | 7a20ea87161e790b84b7f1cd4b0d10010201f995 /pkg/module.rules | |
parent | d4d9555eca3048d281d510bd51267ce67142acd6 (diff) |
build: use git version info instead of svn
Migrate from svn to git. Since our build system automatically generates
version info from the svn repo, this needs to change when we move the
repo to git.
Diffstat (limited to 'pkg/module.rules')
-rw-r--r-- | pkg/module.rules | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/pkg/module.rules b/pkg/module.rules index 9c0457e3b..5ec109fd3 100644 --- a/pkg/module.rules +++ b/pkg/module.rules @@ -17,8 +17,9 @@ $(PKG.src.tar.bz2): | $(STAGE.out.src/) $(TAR.exe) cjf $@ -C $(STAGE.out.src/) $(PKG.basename) $(STAGE.out.src/): - svn export -r$(HB.repo.rev) $(HB.repo.url) $@/$(PKG.basename) - svn info $(HB.repo.url)@$(HB.repo.rev) > $@/$(PKG.basename)/version.txt + $(MKDIR.exe) -p $@ + $(GIT.exe) -C $(SRC/) archive --format=tar --prefix=$(PKG.basename)/ $(HB.repo.shorthash) | $(TAR.exe) -xC $@ + $(SRC/)scripts/repo-info.sh $(SRC/) $(GIT.exe) > $@/$(PKG.basename)/version.txt $(PKG.src-contrib.tar.bz2): $(TAR.exe) cjf $@ -C $(CONTRIB.download/) \ |