mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-07 13:24:12 +00:00
Bug 296390 'make xpi' fails. Remove old xpi makefile rules.
patch by mozilla@Weilbacher.org, r=mvl
This commit is contained in:
parent
eba47946d5
commit
6f244b972f
@ -51,85 +51,3 @@ endif
|
||||
endif
|
||||
|
||||
include $(topsrcdir)/config/rules.mk
|
||||
|
||||
macxpi::
|
||||
rm -f calendar_mac.xpi
|
||||
rm -rf linux/components
|
||||
rm -rf linux/resources
|
||||
|
||||
echo "Building Mac xpi..."
|
||||
cp -r resources ./linux
|
||||
./createBuildId.pl ./linux/resources/content/about.html
|
||||
cd linux
|
||||
mkdir -p ./linux/components
|
||||
cp libxpical/libxpical.dylib ./linux/components
|
||||
cp libxpical/_xpidlgen/calendar.xpt ./linux/components
|
||||
cp resources/content/calendarService.js ./linux/components
|
||||
cd linux; find components/ resources/ icons/ install.js \( -name CVS -o -name Makefile -o -name makefile.win -o -name Makefile.in -o -name test -o -name .cvsignore \) -prune -o -print | xargs zip calendar_mac.xpi
|
||||
mv ./linux/calendar_mac.xpi .
|
||||
echo "Done."
|
||||
|
||||
openvmsxpi::
|
||||
rm -f calendar_openvms.xpi
|
||||
rm -rf linux/components
|
||||
rm -rf linux/resources
|
||||
echo "Building OpenVMS xpi..."
|
||||
cp $(srcdir)/install.js ./linux
|
||||
cp -r $(srcdir)/resources ./linux
|
||||
cp -r $(srcdir)/linux/icons ./linux
|
||||
$(PERL) $(srcdir)/createBuildId.pl ./linux/resources/content/about.html
|
||||
mkdir -p ./linux/components
|
||||
cp libxpical/libxpical.so ./linux/components
|
||||
cp libxpical/_xpidlgen/calendar.xpt ./linux/components
|
||||
cp $(srcdir)/resources/content/calendarService.js ./linux/components
|
||||
cd linux; \
|
||||
find components/ resources/ icons/ install.js \( \
|
||||
-name CVS -o -name Makefile -o -name makefile.win -o \
|
||||
-name Makefile.in -o -name test -o -name .cvsignore \
|
||||
\) -prune -o -print | zip -u -D -@ calendar_openvms.xpi
|
||||
mv ./linux/calendar_openvms.xpi .
|
||||
echo "Done."
|
||||
|
||||
ifeq ($(OS_ARCH),WINNT)
|
||||
calplatform=windows
|
||||
else
|
||||
ifeq ($(OS_ARCH),OS2)
|
||||
calplatform=os2
|
||||
else
|
||||
calplatform=linux
|
||||
endif
|
||||
endif
|
||||
|
||||
xpi::
|
||||
rm -f calendar.xpi
|
||||
rm -rf xpi
|
||||
|
||||
echo "Building xpi..."
|
||||
|
||||
cp $(srcdir)/resources/content/about.html $(srcdir)/resources/content/about.html.bkup
|
||||
$(PERL) $(srcdir)/createBuildId.pl $(srcdir)/resources/content/about.html
|
||||
make
|
||||
make -C resources/locale
|
||||
cp $(srcdir)/resources/content/about.html.bkup $(srcdir)/resources/content/about.html
|
||||
rm -f $(srcdir)/resources/content/about.html.bkup
|
||||
mkdir -p ./xpi/components
|
||||
mkdir -p ./xpi/chrome
|
||||
mkdir -p ./xpi/other_stuff
|
||||
cp $(DEPTH)/dist/bin/chrome/calendar.jar ./xpi/chrome
|
||||
cp libxpical/$(LIB_PREFIX)xpical$(DLL_SUFFIX) ./xpi/components
|
||||
cp libxpical/_xpidlgen/calendar.xpt ./xpi/components
|
||||
cp $(srcdir)/resources/content/calendarService.js ./xpi/components
|
||||
cp $(DEPTH)/dist/bin/chrome/calendar-*.jar ./xpi/chrome
|
||||
|
||||
#TODO: correct next-line for when icons are supported by Extension Manager
|
||||
cp -r $(srcdir)/$(calplatform)/icons ./xpi/other_stuff
|
||||
if [ $(calplatform) = "linux" ]; then \
|
||||
mkdir -p xpi/other_stuff/bin/init.d; \
|
||||
cp $(topsrcdir)/xpfe/bootstrap/init.d/???calendar* xpi/other_stuff/bin/init.d; \
|
||||
fi
|
||||
cp $(srcdir)/install.js ./xpi
|
||||
cp $(srcdir)/install.rdf ./xpi
|
||||
cd xpi; find other_stuff chrome components install.js install.rdf \
|
||||
\( -name CVS -o -name en-US \) -prune -o -print | xargs zip calendar.xpi
|
||||
|
||||
echo "Done."
|
||||
|
Loading…
Reference in New Issue
Block a user