From 1060d9cf3b6efb737d0b37e3dd34512d298bcdc0 Mon Sep 17 00:00:00 2001 From: David Michael Date: Thu, 30 Nov 2017 16:12:44 -0500 Subject: [PATCH] build_torcx_store: Package /usr/share in the image --- build_torcx_store | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/build_torcx_store b/build_torcx_store index dc95c465f2..49ddb811a9 100755 --- a/build_torcx_store +++ b/build_torcx_store @@ -167,8 +167,13 @@ function torcx_package() { : # Set $? to 0 or the pipeline fails and -e quits. 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}" + 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" tar --force-local -C "${tmppkgroot}" -czf "${tmpfile}" .