Building an RPM from a Spec File
Use this command to build an RPM if you have a Spec File
rpmbuild -ba SPEC_FILE
Use this command to build an RPM if you have a Spec File
rpmbuild -ba SPEC_FILE
This shell script will create a build of a firefox extension in linux. This is created according to my details(eg, the guid has @binnyva.com in it) – but you can modify it and use it yourself.
app=1
folder=2
if [ $# -eq 0 ] ; then
echo "Useage: sh build.sh []"
elif [ # -eq 1 ] ; then
folder="1@binnyva.com/"
fi
rm app.xpi
cp -rfolder temp
cd temp
rm -rf .git
zip -r app.xpi .>/dev/null
mvapp.xpi ..
cd ..
rm -rf temp
echo "Built $app successfully"
The build.xml file to concatenate files using ant. This can be executed using the command ‘ant “ConcatAll”‘
<?xml version="1.0" encoding="UTF-8"?>
<project name = "MyProj" basedir = "." >
<target name = "ConcatAll" >
<concat destfile = "final.txt" fixlastline = "yes" >
<filelist dir = "."
files = "first_file.txt
second_file.txt
third_file.txt"/>
</concat>
</target>
</project>