Skip to content

Commit

Permalink
Make the 'make_src_targz.sh' script work correctly with tar 1.29
Browse files Browse the repository at this point in the history
Debian stretch comes with tar 1.29, which silently broke this script by making '--excludes' positional. See http://lists.gnu.org/archive/html/bug-tar/2016-05/msg00012.html.

The fix works both with tar 1.29 and earlier versions.
  • Loading branch information
dghart committed Aug 20, 2017
1 parent 3460a64 commit 8eea5c9
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions make_src_targz.sh
Original file line number Diff line number Diff line change
Expand Up @@ -37,14 +37,14 @@ echo "Creating tarballs"
cd ${tmpdir}

# First for Linux
GZIP="-9" tar cvzf ${curdir}/${codelite_ver}-gtk.src.tar.gz ${codelite_ver}/* --exclude *.exe --exclude *.dll --exclude *.dylib
tar cv --xz -f ${curdir}/${codelite_ver}-gtk.src.tar.xz ${codelite_ver}/* --exclude *.exe --exclude *.dll --exclude *.dylib
GZIP="-9" tar cvzf ${curdir}/${codelite_ver}-gtk.src.tar.gz --exclude='*.exe' --exclude='*.dll' --exclude='*.dylib' ${codelite_ver}/*
tar cv --xz -f ${curdir}/${codelite_ver}-gtk.src.tar.xz --exclude='*.exe' --exclude='*.dll' --exclude='*.dylib' ${codelite_ver}/*

# then for MSWin
#tar cv --lzma -f ${curdir}/${codelite_ver}-win.src.tar.7z ${codelite_ver}/* --exclude *.so --exclude *.dylib
#tar cv --lzma -f ${curdir}/${codelite_ver}-win.src.tar.7z --exclude='*.so' --exclude='*.dylib' ${codelite_ver}/*

# and OS/X
#GZIP="-9" tar cvzf ${curdir}/${codelite_ver}-mac.src.tar.gz ${codelite_ver}/* --exclude *.exe --exclude *.dll --exclude *.so
#GZIP="-9" tar cvzf ${curdir}/${codelite_ver}-mac.src.tar.gz --exclude='*.exe' --exclude='*.dll' --exclude=*.so ${codelite_ver}/*

# Clean up
rm -rf ${codelite_ver}

0 comments on commit 8eea5c9

Please sign in to comment.