Skip to content

Commit

Permalink
Merge pull request #8081 from JuliaLang/sf/bettermanneredtarballs
Browse files Browse the repository at this point in the history
Make `source-dist` tarball contain a top-level directory
  • Loading branch information
ivarne committed Aug 23, 2014
2 parents ca8be19 + 176f785 commit 333e18c
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -347,12 +347,12 @@ source-dist: git-submodules
git submodule --quiet foreach 'git ls-files | sed "s&^&$$path/&"' >> source-dist.tmp

# Remove unwanted files
sed '/\.git/d' source-dist.tmp > source-dist.tmp1
sed '/\.travis/d' source-dist.tmp1 > source-dist.tmp
sed -e '/\.git/d' -e '/\.travis/d' source-dist.tmp > source-dist.tmp1

# Create tarball
tar -cz -T source-dist.tmp --no-recursion -f julia-$(JULIA_VERSION)_$(JULIA_COMMIT).tar.gz
rm -f source-dist.tmp source-dist.tmp1
# Prefix everything with the current directory name (usually "julia"), then create tarball
DIRNAME=$$(basename $$(pwd)); \
sed -e "s_.*_$$DIRNAME/&_" source-dist.tmp1 > source-dist.tmp; \
cd ../ && tar -cz -T $$DIRNAME/source-dist.tmp --no-recursion -f $$DIRNAME/julia-$(JULIA_VERSION)_$(JULIA_COMMIT).tar.gz

clean: | $(CLEAN_TARGETS)
@$(MAKE) -C base clean
Expand Down

0 comments on commit 333e18c

Please sign in to comment.