parent
713726a5a9
commit
48c942c4a6
@ -1,6 +1,8 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
NAME=$1
|
NAME=$1
|
||||||
|
|
||||||
|
set -e
|
||||||
|
|
||||||
if [ x$NAME = x ] ; then
|
if [ x$NAME = x ] ; then
|
||||||
echo "usage $0 <template_name>"
|
echo "usage $0 <template_name>"
|
||||||
exit 1
|
exit 1
|
||||||
@ -15,6 +17,7 @@ if [ -d qubeized_images/$NAME/untrusted_appmenus ]; then
|
|||||||
for f in whitelisted-appmenus.list vm-whitelisted-appmenus.list netvm-whitelisted-appmenus.list; do
|
for f in whitelisted-appmenus.list vm-whitelisted-appmenus.list netvm-whitelisted-appmenus.list; do
|
||||||
grep '^[a-zA-Z0-9.()_-]\+.desktop$' $srcdir/$f > appmenus/$f
|
grep '^[a-zA-Z0-9.()_-]\+.desktop$' $srcdir/$f > appmenus/$f
|
||||||
done
|
done
|
||||||
|
trap "rm -rf appmenus-$$ appmenus" EXIT
|
||||||
fi
|
fi
|
||||||
|
|
||||||
rpmbuild --target noarch \
|
rpmbuild --target noarch \
|
||||||
@ -23,7 +26,3 @@ rpmbuild --target noarch \
|
|||||||
--define "_topdir $PWD/rpmbuild" \
|
--define "_topdir $PWD/rpmbuild" \
|
||||||
--define "_tmppath $PWD/rpmbuild/tmp" \
|
--define "_tmppath $PWD/rpmbuild/tmp" \
|
||||||
-bb templates.spec
|
-bb templates.spec
|
||||||
|
|
||||||
if [ -d appmenus-$$ ]; then
|
|
||||||
rm -rf appmenus-$$ appmenus
|
|
||||||
fi
|
|
||||||
|
Loading…
Reference in New Issue
Block a user