2010-04-05 22:25:37 +00:00
|
|
|
#!/bin/sh
|
|
|
|
NAME=$1
|
|
|
|
|
|
|
|
if [ x$NAME = x ] ; then
|
|
|
|
echo "usage $0 <template_name>"
|
2011-11-06 13:01:58 +00:00
|
|
|
exit 1
|
2010-04-05 22:25:37 +00:00
|
|
|
fi
|
|
|
|
|
2011-09-27 15:44:39 +00:00
|
|
|
SIGN_OPT=--sign
|
|
|
|
[ "$NO_SIGN" = "1" ] && SIGN_OPT=
|
|
|
|
|
2011-11-09 15:28:37 +00:00
|
|
|
rpmbuild $SIGN_OPT --target noarch \
|
|
|
|
--define "template_name $NAME" \
|
|
|
|
--define "_topdir $PWD/rpmbuild" \
|
2011-11-09 15:43:21 +00:00
|
|
|
--define "_tmppath $PWD/rpmbuild/tmp" \
|
2011-11-09 15:28:37 +00:00
|
|
|
-bb templates.spec
|