wiki:docDevel

Version 4 (modified by rene, 10 years ago) (diff)

--

Developer Information

checkout

use git to retrieve a copy of the repository:

git clone git://absorb.it/v_identity

modification

Just change whatever you like, don't blame me if it stops working and report useful changes :) . After modification please change the version of the extension.

REV="hacked0.1"
cd trunk
sed '/vident\.version/s/\">/'$REV'\">/g' chrome/content/v_identity/_version.dtd > chrome/content/v_identity/_version.dtd_work
mv chrome/content/v_identity/_version.dtd_work chrome/content/v_identity/_version.dtd
sed '/em:version/s/<\/em/'$REV'<\/em/g' install.rdf >install.rdf_work
mv install.rdf_work install.rdf
cd ..

build new extension

At the end you can rebuild the extension and install it in Thunderbird/Seamonkey?.

cd trunk/chrome
zip -0 -r v_identity.jar *
zip -d v_identity.jar *.svn*
cd ..
zip ../virtual_identity_hacked0.1.xpi chrome.manifest install.rdf defaults/preferences/preferences.js chrome/v_identity.jar
rm chrome/v_identity.jar
cd ..

or do it the easy way, download generate_vI_snapshot and generate a snapshot:

$ generate_vI_snapshot
------- virtual identity generator .3 (add 'debug' for more info) -------
******* local changes detected        *******
------- generated virtual_identity-0.8.0pre1++-tb+sm.xpi
$