qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] make-release: only leave tarball of wrap-file subprojects


From: Michael Tokarev
Subject: Re: [PATCH] make-release: only leave tarball of wrap-file subprojects
Date: Tue, 24 Dec 2024 22:43:47 +0300
User-agent: Mozilla Thunderbird

24.12.2024 22:41, Michael Tokarev wrote:
19.12.2024 13:27, Paolo Bonzini wrote:

-tar --exclude=.git -cJf ${destination}.tar.xz ${destination}
+
+exclude=(--exclude=.git)
+# include the tarballs in subprojects/packagecache but not their expansion
+for sp in $SUBPROJECTS; do
+    if grep -xqF "[wrap-file]" subprojects/$sp.wrap; then
+      exclude+=(--exclude=subprojects/"$(subproject_dir $sp)")
+    fi
+done
+tar "${exclude[@]}" -cJf ${destination}.tar.xz ${destination}
  rm -rf ${destination}

Actually there might be a better way here.  How about

 tar --exclude=.git $(sed -n 's|^/|subprojects/|' subprojects/.gitignore)

?

Thanks,

/mjt



reply via email to

[Prev in Thread] Current Thread [Next in Thread]