17 lines
338 B
Bash
Executable File
17 lines
338 B
Bash
Executable File
#!/bin/sh
|
|
NAME=$1
|
|
|
|
if [ x$NAME = x ] ; then
|
|
echo "usage $0 <template_name>"
|
|
exit 1
|
|
fi
|
|
|
|
SIGN_OPT=--sign
|
|
[ "$NO_SIGN" = "1" ] && SIGN_OPT=
|
|
|
|
rpmbuild $SIGN_OPT --target noarch \
|
|
--define "template_name $NAME" \
|
|
--define "_topdir $PWD/rpmbuild" \
|
|
--define "_tmppath $PWD/rpmbuild/tmp" \
|
|
-bb templates.spec
|