[Vimperator] [PATCH] Makefile will create missing chrom dir
Bart Trojanowski
bart at jukie.net
Wed Apr 25 08:16:27 PDT 2007
I just used make install on a new host and found out that it didn't have
the chrome directory. Might as well create it as part of make install.
This patches forces the make install to create the missing
.mozilla/firefox/*.default/extensions/vimperator at mozdev.org/chrome/
directory.
I have no idea how the chrome directory works. I have noticed that when
I install the XPI this is not the path it uses, but some UUID-like path
is created under extenssions.
Should make install find that UUID-like path or can it install in the
vimperator at mozdev.org path?
-Bart
--- 8< ---
Index: Makefile
===================================================================
RCS file: /cvs/vimperator/src/Makefile,v
retrieving revision 1.4
diff -u -r1.4 Makefile
--- Makefile 22 Apr 2007 23:21:38 -0000 1.4
+++ Makefile 25 Apr 2007 15:11:39 -0000
@@ -15,7 +15,7 @@
# find the vimperator chrome dir
FIREFOX_DEFAULT = $(wildcard ${HOME}/.mozilla/firefox/*.default)
-VIMPERATOR_CHROME = $(wildcard ${FIREFOX_DEFAULT}/extensions/vimperator at mozdev.org/chrome/)
+VIMPERATOR_CHROME = ${FIREFOX_DEFAULT}/extensions/vimperator at mozdev.org/chrome/
# specify V=1 on make line to see more verbose output
Q=$(if ${V},,@)
@@ -48,6 +48,8 @@
@echo "vimperator chrome ${VIMPERATOR_CHROME}"
needs_chrome_dir:
+ @echo "Checking chrome dir..."
+ -${Q}mkdir -p "${VIMPERATOR_CHROME}"
${Q}test -d "${VIMPERATOR_CHROME}"
xpi: ${RELEASE}
More information about the Vimperator
mailing list