-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathgenerate
More file actions
executable file
·24 lines (20 loc) · 777 Bytes
/
generate
File metadata and controls
executable file
·24 lines (20 loc) · 777 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/bin/bash
source config
for a in ${VARIANTS[*]} ; do
echo Templating $a
(sed -e "s/VARIANT/$a/g" -e "s/VERSION/$VERSION/" -e "s/RELEASE/$RELEASE/" < template.top > temp.spec)
(cat all.packages >> temp.spec)
if [ -e $a.packages ]; then
(cat $a.packages >> temp.spec)
fi
(sed -e "s/VARIANT/$a/g" -e "s/VERSION/$VERSION/" -e "s/RELEASE/$RELEASE/" < template.bottom >> temp.spec )
(cat changelog >> temp.spec )
mkdir -p fgci-meta-$a-$VERSION
cp configure fgci-meta-$a-$VERSION/
mv -f temp.spec fgci-meta-$a-$VERSION/$a.spec
tar zcf fgci-meta-$a-$VERSION.tar.gz fgci-meta-$a-$VERSION/
rm -rf fgci-meta-$a-$VERSION
rpmbuild --quiet -ta fgci-meta-$a-$VERSION.tar.gz
done
echo End result:
echo ~/rpmbuild/RPMS/noarch/fgci-meta-*-$VERSION-$RELEASE.*.noarch.rpm