diff options
author | Jan Lehnardt <jan@apache.org> | 2017-03-22 11:50:10 +0100 |
---|---|---|
committer | Jan Lehnardt <jan@apache.org> | 2017-04-01 19:41:36 +0200 |
commit | f4c6113808d1809469df9c8be9d2f83ef399f064 (patch) | |
tree | 33b09f34f874f51c687400ee76d98befd0dd0069 /build-aux | |
parent | bb187a22a098f156082cd7b66a492bff7f49baa2 (diff) | |
download | couchdb-f4c6113808d1809469df9c8be9d2f83ef399f064.tar.gz |
feat: monorepo fixes
Diffstat (limited to 'build-aux')
-rwxr-xr-x | build-aux/couchdb-build-release.sh | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/build-aux/couchdb-build-release.sh b/build-aux/couchdb-build-release.sh index 4cea72a7c..4482b713c 100755 --- a/build-aux/couchdb-build-release.sh +++ b/build-aux/couchdb-build-release.sh @@ -18,14 +18,15 @@ CURRENT_BRANCH=`git rev-parse --abbrev-ref HEAD` # copy sources over git archive $CURRENT_BRANCH | tar -xC $RELDIR/ -f - -mkdir $RELDIR/src cd src/ for repo in *; do cd $repo - mkdir ../../$RELDIR/src/$repo - git_ish=`git rev-parse --short HEAD` - git archive $git_ish | tar --exclude '*do_not_compile.erl' -xC ../../$RELDIR/src/$repo/ -f - + if [ -d ".git" ]; then + mkdir -p ../../$RELDIR/src/$repo + git_ish=`git rev-parse --short HEAD` + git archive $git_ish | tar --exclude '*do_not_compile.erl' -xC ../../$RELDIR/src/$repo/ -f - + fi set +e grep -rl '{vsn, git}' ../../$RELDIR/src/$repo/ | xargs sed -ie "s/{vsn, git}/{vsn, \"`git describe --always --tags`\"}/" 2> /dev/null set -e |