[svn:parrot] r48036 - trunk/config/gen/makefiles

gerd at svn.parrot.org gerd at svn.parrot.org
Wed Jul 7 18:46:40 UTC 2010


Author: gerd
Date: Wed Jul  7 18:46:40 2010
New Revision: 48036
URL: https://trac.parrot.org/parrot/changeset/48036

Log:
add the possibility to specify something like this: make vim-install VIM_DIR=~/vim-inst-dir SKELETON=/skeleton_file_path

Modified:
   trunk/config/gen/makefiles/editor.in

Modified: trunk/config/gen/makefiles/editor.in
==============================================================================
--- trunk/config/gen/makefiles/editor.in	Wed Jul  7 18:23:43 2010	(r48035)
+++ trunk/config/gen/makefiles/editor.in	Wed Jul  7 18:46:40 2010	(r48036)
@@ -13,6 +13,9 @@
 MKPATH = @mkpath@
 RM_F   = @rm_f@
 
+SKEL_FILE_DIR = `$(PERL) -e 'print "$(SKELETON)" || "$(VIM_DIR)"'`
+LINE          = "au BufNewFile         *.pir 0r $(SKEL_FILE_DIR)/skeleton.pir"
+
 default: all
 
 all: pir.vim imc.kate skeleton.pir
@@ -49,7 +52,7 @@
 	$(CP) pmc.vim "$(VIM_SYN_DIR)"
 	$(MKPATH) "$(VIM_FT_DIR)"
 	$(CP) filetype_parrot.vim "$(VIM_FT_DIR)/parrot.vim"
-	echo "au BufNewFile         *.pir 0r $(VIM_DIR)/skeleton.pir" >> "$(VIM_FT_DIR)/parrot.vim"
+	echo "$(LINE)" >> "$(VIM_FT_DIR)/parrot.vim"
 	$(MKPATH) "$(VIM_IN_DIR)"
 	$(CP) indent_pir.vim "$(VIM_IN_DIR)/pir.vim"
 


More information about the parrot-commits mailing list