7e17847377
An important note is that each OS script need to setup itself its own chroot environment (like creating /proc...).
15 lines
310 B
Bash
Executable File
15 lines
310 B
Bash
Executable File
#!/bin/sh
|
|
NAME=$1
|
|
|
|
if [ x$NAME = x ] ; then
|
|
echo "usage $0 <template_name>"
|
|
exit 1
|
|
fi
|
|
|
|
rpmbuild --target noarch \
|
|
--define "template_name $NAME" \
|
|
--define "DIST $DIST" \
|
|
--define "_topdir $PWD/rpmbuild" \
|
|
--define "_tmppath $PWD/rpmbuild/tmp" \
|
|
-bb templates.spec
|