]> git.ipfire.org Git - thirdparty/sarg.git/commitdiff
Keep the excluded files out of the archive
authorFrédéric Marchal <fmarchal@users.sourceforge.net>
Sun, 27 May 2012 05:42:50 +0000 (07:42 +0200)
committerFrédéric Marchal <fmarchal@users.sourceforge.net>
Sun, 27 May 2012 05:42:50 +0000 (07:42 +0200)
The tar.gz archive created to release the sources included the ignored
files if they were located in a subdirectory.

archive.sh

index 1b98e87da458ca7335faaca87599bc0ef9a83f50..cba9486e4f2f23fdc11b28cfcd326a9575d8a72b 100755 (executable)
@@ -101,7 +101,7 @@ echo "
 .gitignore
 " > "$ExcludeList"
 
-tar cf "$ArchiveFile" -C "$Sources" --files-from="$SortList" --no-recursion --transform="s,^,sarg-$Version/," --owner root --group root --mode 644
+tar cf "$ArchiveFile" -C "$Sources" --files-from="$SortList" --exclude-from="$ExcludeList" --no-recursion --transform="s,^,sarg-$Version/," --owner root --group root --mode 644
 tar rf "$ArchiveFile" -C "$Sources" "configure" --exclude-from="$ExcludeList" --transform="s,^,sarg-$Version/," --owner root --group root --mode 755
 gzip -f "$ArchiveFile"
 CompressFile="$ArchiveFile.gz"