build_torcx_store: Package /usr/share in the image

This commit is contained in:
David Michael 2017-11-30 16:12:44 -05:00
parent daea3434c8
commit 1060d9cf3b

View File

@ -167,8 +167,13 @@ function torcx_package() {
: # Set $? to 0 or the pipeline fails and -e quits. : # Set $? to 0 or the pipeline fails and -e quits.
done done
# Move anything we plan to package to its root # Move anything we plan to package to its root.
sudo mv "${tmproot}"/{.torcx,bin,lib} "${tmppkgroot}" sudo mv "${tmproot}"/{.torcx,bin,lib} "${tmppkgroot}"
if [ -e "${tmproot}/usr/share" ]
then
sudo mkdir "${tmppkgroot}/usr"
sudo mv "${tmproot}/usr/share" "${tmppkgroot}/usr/"
fi
tmpfile="${BUILD_DIR}/${name}:${version}.torcx.tgz" tmpfile="${BUILD_DIR}/${name}:${version}.torcx.tgz"
tar --force-local -C "${tmppkgroot}" -czf "${tmpfile}" . tar --force-local -C "${tmppkgroot}" -czf "${tmpfile}" .