From: Frédéric Marchal Date: Sun, 27 May 2012 05:42:50 +0000 (+0200) Subject: Keep the excluded files out of the archive X-Git-Tag: v2.3.3-pre1~4 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=1a9bd13a39180062147289acbfd78807df5e19e2;p=thirdparty%2Fsarg.git Keep the excluded files out of the archive The tar.gz archive created to release the sources included the ignored files if they were located in a subdirectory. --- diff --git a/archive.sh b/archive.sh index 1b98e87..cba9486 100755 --- a/archive.sh +++ b/archive.sh @@ -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"