From e3dfe6b7e7712e3a25a057d763ee5fe50a71c713 Mon Sep 17 00:00:00 2001 From: Han-Wen Nienhuys Date: Fri, 26 Mar 2004 00:25:58 +0000 Subject: [PATCH] (Group): add vim scriptlets. --- ChangeLog | 2 ++ config.make.in | 4 +++- make/lilypond.redhat.spec.in | 18 +++++++++++++++++- 3 files changed, 22 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 937bccb020..9e7ab823ce 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,7 @@ 2004-03-26 Han-Wen Nienhuys + * make/lilypond.redhat.spec.in (Group): add vim scriptlets. + * Documentation/user/introduction.itely (Introduction): new node. 2004-03-25 Han-Wen Nienhuys diff --git a/config.make.in b/config.make.in index 9a0f9027ff..1724a5fad5 100644 --- a/config.make.in +++ b/config.make.in @@ -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) diff --git a/make/lilypond.redhat.spec.in b/make/lilypond.redhat.spec.in index bb3fc363b9..049cba2402 100644 --- a/make/lilypond.redhat.spec.in +++ b/make/lilypond.redhat.spec.in @@ -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 -- 2.39.5