]> git.donarmstrong.com Git - lilypond.git/commitdiff
(Group): add vim scriptlets.
authorHan-Wen Nienhuys <hanwen@xs4all.nl>
Fri, 26 Mar 2004 00:25:58 +0000 (00:25 +0000)
committerHan-Wen Nienhuys <hanwen@xs4all.nl>
Fri, 26 Mar 2004 00:25:58 +0000 (00:25 +0000)
ChangeLog
config.make.in
make/lilypond.redhat.spec.in

index 937bccb020986cb88520d250f28da9409c6adebc..9e7ab823ce11963edff23fee545e26923b91d0ba 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,7 @@
 2004-03-26  Han-Wen Nienhuys   <hanwen@xs4all.nl>
 
+       * make/lilypond.redhat.spec.in (Group): add vim scriptlets.
+
        * Documentation/user/introduction.itely (Introduction): new node.
 
 2004-03-25  Han-Wen Nienhuys   <hanwen@xs4all.nl>
index 9a0f9027ff1d86ebf15b5c315736b4cef1572caf..1724a5fad53a8bbfe9a7422bac295bc04f9c3f32 100644 (file)
@@ -37,7 +37,6 @@ stepmake = @stepmake@
 docdir = $(datadir)/doc/
 omfdir = $(datadir)/omf/
 elispdir = $(datadir)/emacs/site-lisp
-vimdir = $(datadir)/vim
 # forced instead of $(datadir)/vim
 
 # move out of config.make.in?
@@ -47,11 +46,14 @@ package_libdir = $(libdir)/$(package)
 package_docdir = $(docdir)/$(package)
 package_omfdir = $(omfdir)/$(package)
 
+
 local_package_datadir = $(lilypond_datadir)/$(TOPLEVEL_VERSION)
 local_package_libdir = $(lilypond_libdir)/$(TOPLEVEL_VERSION)
 local_package_docdir = $(lilypond_docdir)/$(TOPLEVEL_VERSION)
 local_package_omfdir = $(lilypond_omfdir)/$(TOPLEVEL_VERSION)
 
+vimdir = $(local_package_datadir)/vim
+
 lilypond_datadir = $(package_datadir)
 lilypond_libdir = $(package_libdir)
 lilypond_docdir = $(package_docdir)
index bb3fc363b90b786add2f62d61480d29e61e5a3ce..049cba2402df51fef497a530e999d67c660379e3 100644 (file)
@@ -97,9 +97,20 @@ rm `find /var/lib/texmf -name 'feta*pk' -or -name 'feta*tfm' -or -name 'parmesan
 /sbin/install-info %{_infodir}/lilypond/music-glossary.info.gz %{_infodir}/dir 
 %endif
 
+export PACKAGEDIR=%{_datadir}/lilypond/@TOPLEVEL_VERSION@
+if [ -d /usr/share/vim ]; then
+  VIMDIR=`find /usr/share/vim -name bugreport.vim`
+  VIMDIR=`dirname $VIMDIR`
+  for a in `cd $PACKAGEDIR/vim/ ; find -type d -name '*' ` ; do
+     mkdir -p  $VIMDIR/$a
+     ln -s $PACKAGEDIR/vim/$a/*.vim $VIMDIR/$a/
+  done
+fi
+
+
 # chkfontpath --add=%{_datadir}/lilypond/@TOPLEVEL_VERSION@/fonts/type1/
 
-echo 'Please logout first before using LilyPond.'
+echo 'Logout first before using LilyPond.'
 
 %preun
 if [ -f /usr/share/lilypond/%{version}/ls-R ]; then
@@ -107,6 +118,11 @@ if [ -f /usr/share/lilypond/%{version}/ls-R ]; then
 fi
 
 
+if [ -d /usr/share/vim ]; then
+       rm `find /usr/share/vim -name 'lilypond*.vim'`
+fi
+
+
 %if %{info}
     /sbin/install-info --delete %{_infodir}/lilypond/lilypond.info.gz %{_infodir}/dir 
     /sbin/install-info --delete %{_infodir}/lilypond/music-glossary.info.gz %{_infodir}/dir