Browse files

added a little script to download the source code and create an xpi file

  • Loading branch information...
1 parent 96a6063 commit ffb2e8d82c2f541010ebf8937750ea18b903bc27 @websurfer websurfer committed Sep 13, 2011
Showing with 20 additions and 1 deletion.
  1. +20 −1 README
View
21 README
@@ -34,4 +34,23 @@ The installation procedure is fairly simple, but still needs some explaining. T
4) Open the file in Firefox. This is pretty straight forward but probably needs a little explanation. Open Firefox, go to the File menu and click "Open file". Browse to the location where you created the "xpi" file.
-This should pretty much be all you need to do. If you have any trouble packaging the source, shoot me an email: cybormatt@gmail.com Please check out the forum to see the latest news and features: http://forum.imagehost-grabber.com/
+This should pretty much be all you need to do. If you have any trouble packaging the source, shoot me an email: cybormatt@gmail.com Please check out the forum to see the latest news and features: http://forum.imagehost-grabber.com/
+
+--------
+* Lazy way to download the source code and create an xpi file using the latest version of the "master" branch *
+Use the following script if you are using Linux:
+
+#!/bin/bash
+USER="cybormatt"
+TARGET_URL_1="https://github.com/"
+TARGET_URL_2="/ImageHost-Grabber/zipball/master"
+FILENAME="latest_ihg"
+
+wget $TARGET_URL_1$USER$TARGET_URL_2 -O $FILENAME.zip
+unzip -d $FILENAME $FILENAME.zip
+rm -f $FILENAME.xpi
+cd $FILENAME/$USER-ImageHost-Grabber-*
+zip -r ../../$FILENAME.xpi *
+cd ../../
+rm -f $FILENAME.zip
+rm -rf $FILENAME/

0 comments on commit ffb2e8d

Please sign in to comment.