Psst.. new poll here.
[email protected] web/email now available. Want one? Go here.
Cannot use outlook/hotmail/live here to register as they blocking our mail servers. #microsoftdeez
Obey the Epel!
Paste
Pasted by registered user webref ( 14 years ago )
VERSION := 0.1.4.3
7zip := /usr/bin/7za
DIR := /mnt/GIT_SOURCE/wpcite
default:
cd $(DIR)
echo "Building source tree"
$(7zip) a -tzip $(DIR)/wpcite_$(VERSION).src.7z $(DIR)/* -r -mx=9
echo "Building Firefox Chrome extension tree"
mkdir $(DIR)/build
mkdir $(DIR)/build/chrome
mkdir $(DIR)/build/defaults
mkdir $(DIR)/build/defaults/preferences
cd $(DIR)/chrome
echo "Building Subtree Chrome Jar file"
$(7zip) a -tzip $(DIR)/build/chrome/wpcite.jar $(DIR)/chrome/* -r -mx=0
cd $(DIR)
echo "Joining extension's root tree"
cp $(DIR)/install.* $(DIR)/build
cp $(DIR)/chrome.* $(DIR)/build
cp $(DIR)/license.txt $(DIR)/build
cp $(DIR)/update.rdf $(DIR)/build
cp $(DIR)/defaults/preferences/wpcitejs.js $(DIR)/build/defaults/preferences
cd $(DIR)/build
echo "Building final XPI file"
$(7zip) a -tzip $(DIR)/wpcite_$(VERSION).xpi $(DIR)/build/* -r -mx=9
echo "Setting file permissions for Mozdev.org"
chown nobody:nobody $(DIR)/wpcite_$(VERSION).xpi
chmod 666 $(DIR)/wpcite_$(VERSION).xpi
chown nobody:nobody $(DIR)/wpcite_$(VERSION).src.7z
chmod 777 $(DIR)/wpcite_$(VERSION).src.7z
echo "Done!!"
publish:
cd $(DIR)
git add .
git commit -m "Update Version $(VERSION)"
git push master
clean:
rm -rf $(DIR)/build
rm -rf $(DIR)/build/chromium
rm -f $(DIR)/wpcite_$(VERSION).src.7z
rm -f $(DIR)/wpcite_$(VERSION).xpi
Revise this Paste