Posts Tagged With: extension

A Shell Script to Create a Build of Firefox Extension

Tagged with: , , , , , , ,

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 -r $folder temp
cd temp
rm -rf .git

zip -r $app.xpi .>/dev/null
mv $app.xpi ..
cd ..
rm -rf temp
echo "Built $app successfully"

No Comments »

Install dependencies for HTML Validator

Tagged with: , , , , , , ,

Installing the dependencies for HTML Validator extension for Firefox on linux.


sudo yum install compat-libstdc++-296 compat-libstdc++-33 tidy
No Comments »

Remove Extension in Shell Scripting

Tagged with: , , , , , , ,

This command will list all the files a folder without their extensions. Comes handy when doing shell scripting


perl -e 'while(<*.*>){s/\..{3}$//i;print "File \"$_\"\n";}print "\n";'
No Comments »