Author: dylan
Date: 2005-01-09 00:26:17 -0500 (Sun, 09 Jan 2005)
New Revision: 574

Modified:
   trunk/dev-tools/vim-automod/Makefile
Log:
only show NOTICE if needed.


Modified: trunk/dev-tools/vim-automod/Makefile
===================================================================
--- trunk/dev-tools/vim-automod/Makefile        2005-01-09 05:23:24 UTC (rev 
573)
+++ trunk/dev-tools/vim-automod/Makefile        2005-01-09 05:26:17 UTC (rev 
574)
@@ -9,9 +9,11 @@
 
 
 install: $(SCRIPT_INSTALLED) $(TEMPLATE_INSTALLED)
-       @echo "====== NOTICE ======"
-       @echo "Please add the following line to ~/.vimrc:"
-       @echo "autocmd BufNewFile *.pm nested call PerlModuleNewFile()"
+       @if ! grep -q 'call PerlModuleNewFile' ~/.vimrc ; then \
+       echo "====== NOTICE ======"; \
+       echo "Please add the following line to ~/.vimrc:"; \
+       echo "autocmd BufNewFile *.pm nested call PerlModuleNewFile()"; \
+       fi
 
 $(TEMPLATE_INSTALLED): $(TEMPLATE)
        install -D $< $@


Reply via email to