Fix xpi packaging, so version is taken from Makefile.in and make clean removes temporaries. Bug 285418, r=aaronr

This commit is contained in:
allan%beaufour.dk 2005-03-15 09:12:57 +00:00
Родитель ba1b99dc65
Коммит 1738cfb5b2
3 изменённых файлов: 9 добавлений и 3 удалений

Просмотреть файл

@ -1 +1,4 @@
Makefile
xforms.js
xforms.template
stage

Просмотреть файл

@ -58,6 +58,9 @@ PACKAGE_FILE = packages-unix
endif
endif
GARBAGE += xforms.js xforms.template
GARBAGE_DIRS += stage
PACKAGE_VERSION = 0.1
xpi:

Просмотреть файл

@ -1,4 +1,4 @@
var err = initInstall("Mozilla XForms", "XForms", "0.1");
var err = initInstall("Mozilla XForms", "XForms", "$Version$");
logComment("initInstall: " + err);
var fProgram = getFolder("Program");
@ -7,9 +7,9 @@ var srComponents = $SpaceRequired$:components;
if (verifyDiskSpace(fProgram, srChrome + srComponents))
{
err = addDirectory("", "0.1", "components", fProgram, "components", true);
err = addDirectory("", "$Version$", "components", fProgram, "components", true);
logComment("addDirectory components: " + err);
err = addDirectory("", "0.1", "chrome", fProgram, "chrome", true);
err = addDirectory("", "$Version$", "chrome", fProgram, "chrome", true);
logComment("addDirectory chrome: " + err);
registerChrome(PACKAGE | DELAYED_CHROME, getFolder("Chrome", "xforms.jar"),