Created
October 29, 2010 18:14
-
-
Save miketaylr/654044 to your computer and use it in GitHub Desktop.
Handy script for developing Opera extensions
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# zip up all the files in the current directory | |
if [ $1 ]; then | |
echo "Creating $1.oex" | |
zip -r $1.zip . | |
# rename the .zip file to an .oex file | |
mv $1.zip $1.oex | |
# open the .oex in Opera | |
open $1.oex | |
else | |
echo "Please give your extension a name" | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Jam it in your path, or make a bash alias. It will zip up everything in your directory and give it a name, then open up the Install Extension prompt in Opera.
Usage: /development/folder> package name-of-extension