diff options
Diffstat (limited to 'src/third_party/wiredtiger/dist/s_release')
-rwxr-xr-x | src/third_party/wiredtiger/dist/s_release | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/src/third_party/wiredtiger/dist/s_release b/src/third_party/wiredtiger/dist/s_release index f6d541dae40..b4dfb273c97 100755 --- a/src/third_party/wiredtiger/dist/s_release +++ b/src/third_party/wiredtiger/dist/s_release @@ -16,16 +16,12 @@ PKG="wiredtiger-$pkgver" DEST="$RELEASE_DIR/$PKG" rm -rf $DEST ; mkdir -p $DEST -EXCLUSIONS=`sed -e '/^#/d' -e 's/^/--exclude /' < s_release.list` -if [ -d ../.hg ] ; then - echo "Running 'hg archive' to copy the tree" - (cd .. && hg archive $EXCLUSIONS $DEST) -elif [ -d ../.git ] ; then +if [ -d ../.git ] ; then echo "Running 'git archive' to copy the tree" - (cd .. && git archive HEAD) | (cd $DEST && tar xf - $EXCLUSIONS) + (cd .. && git archive HEAD) | (cd $DEST && tar xf -) else - echo "$0 must be run in a Git or Mercurial tree" + echo "$0 must be run in a Git tree" exit 1 fi |