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
|
|
|
|
|
2013-02-16 15:00:50 +00:00
|
|
|
|
2012-01-27 09:08:34 +00:00
|
|
|
rpmbuild --target noarch \
|
2011-11-09 15:28:37 +00:00
|
|
|
--define "template_name $NAME" \
|
2013-01-25 08:03:51 +00:00
|
|
|
--define "DIST $DIST" \
|
2011-11-09 15:28:37 +00:00
|
|
|
--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
|