From 2fc722a30bc27c9a4da64c3d1f1034ee803f973d Mon Sep 17 00:00:00 2001 From: David Capello Date: Thu, 22 Mar 2012 19:03:58 -0300 Subject: [PATCH] Add new source distribution in dist.sh without 3rd party code. --- misc/dist.sh | 22 ++++++++++++++++++---- 1 file changed, 18 insertions(+), 4 deletions(-) diff --git a/misc/dist.sh b/misc/dist.sh index 8dc8deb91..8f39193a6 100644 --- a/misc/dist.sh +++ b/misc/dist.sh @@ -12,20 +12,34 @@ if [ ! -f dist.sh ]; then fi ###################################################################### -# Source Distribution (copy all files in the git repository) +# Full source distribution (with 3rd party code) if [ ! -f $distdir.zip ] ; then cd "$dir/.." mkdir "$dir/$distdir" - cp --parents $(git grep -l .) "$dir/$distdir" + cp --parents $(git ls-files) "$dir/$distdir" cd "$dir" - #tar vczf $distdir.tar.gz $distdir - #tar vcjf $distdir.tar.bz2 $distdir $zip $zip_recursive_flag $distdir.zip $distdir rm -fr $distdir fi +##################################################################### +# Minimal source distribution (without 3rd party code). +# Used to compile ASEPRITE with shared libraries. + +if [ ! -f $distdir.tar.xz ] ; then + cd "$dir/.." + mkdir "$dir/$distdir" + cp --parents $(git ls-files | grep -v -e ^third_party | grep -v -e ^src/allegro) "$dir/$distdir" + cp --parents $(git ls-files third_party/loadpng) "$dir/$distdir" + cp --parents third_party/CMakeLists.txt "$dir/$distdir" + cd "$dir" + + tar vcfJ $distdir.tar.xz $distdir + rm -fr $distdir +fi + ###################################################################### # Files for binary distributions