From 1a9bd13a39180062147289acbfd78807df5e19e2 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Fr=C3=A9d=C3=A9ric=20Marchal?= Date: Sun, 27 May 2012 07:42:50 +0200 Subject: [PATCH] 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. --- archive.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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" -- 2.47.2