]> git.donarmstrong.com Git - lilypond.git/commitdiff
lilypond-1.0.2
authorfred <fred>
Sun, 24 Mar 2002 20:13:37 +0000 (20:13 +0000)
committerfred <fred>
Sun, 24 Mar 2002 20:13:37 +0000 (20:13 +0000)
24 files changed:
VERSION
lily/VERSION
make/STATE-VECTOR
mutopia/J.S.Bach/Solo-Cello-Suites/allemande-cello.ly
mutopia/J.S.Bach/Solo-Cello-Suites/allemande-urtext.ly
mutopia/J.S.Bach/Solo-Cello-Suites/allemande-viola.ly [new file with mode: 0644]
mutopia/J.S.Bach/Solo-Cello-Suites/courante-cello.ly
mutopia/J.S.Bach/Solo-Cello-Suites/courante-urtext.ly
mutopia/J.S.Bach/Solo-Cello-Suites/courante-viola.ly [new file with mode: 0644]
mutopia/J.S.Bach/Solo-Cello-Suites/gigue-cello.ly
mutopia/J.S.Bach/Solo-Cello-Suites/gigue-urtext.ly
mutopia/J.S.Bach/Solo-Cello-Suites/gigue-viola.ly [new file with mode: 0644]
mutopia/J.S.Bach/Solo-Cello-Suites/menuetto-cello.ly
mutopia/J.S.Bach/Solo-Cello-Suites/menuetto-urtext.ly
mutopia/J.S.Bach/Solo-Cello-Suites/menuetto-viola.ly [new file with mode: 0644]
mutopia/J.S.Bach/Solo-Cello-Suites/prelude-cello.ly
mutopia/J.S.Bach/Solo-Cello-Suites/prelude-urtext.ly
mutopia/J.S.Bach/Solo-Cello-Suites/prelude-viola.ly [new file with mode: 0644]
mutopia/J.S.Bach/Solo-Cello-Suites/sarabande-cello.ly
mutopia/J.S.Bach/Solo-Cello-Suites/sarabande-urtext.ly
mutopia/J.S.Bach/Solo-Cello-Suites/sarabande-viola.ly [new file with mode: 0644]
mutopia/J.S.Bach/Solo-Cello-Suites/scsii-viola.ly [new file with mode: 0644]
scripts/ly2dvi.sh
stepmake/make/STATE-VECTOR

diff --git a/VERSION b/VERSION
index 522667c82e68199bfcaa0644c48fa49306db242e..36dc14b269df05f925364fb7c21d9b8365225924 100644 (file)
--- a/VERSION
+++ b/VERSION
@@ -1,7 +1,7 @@
 PACKAGE_NAME=LilyPond
 MAJOR_VERSION=1
 MINOR_VERSION=0
-PATCH_LEVEL=1
+PATCH_LEVEL=2
 MY_PATCH_LEVEL=
 
 # use the above to send patches, always empty for released version:
index 522667c82e68199bfcaa0644c48fa49306db242e..36dc14b269df05f925364fb7c21d9b8365225924 100644 (file)
@@ -1,7 +1,7 @@
 PACKAGE_NAME=LilyPond
 MAJOR_VERSION=1
 MINOR_VERSION=0
-PATCH_LEVEL=1
+PATCH_LEVEL=2
 MY_PATCH_LEVEL=
 
 # use the above to send patches, always empty for released version:
index f6bbf4b1e313c4c5da20301e77acf69bfb248774..0ed7c75c4ea5c98a9cb74e4b39be90f55f9c6f35 100644 (file)
@@ -58,3 +58,7 @@
 1.0.0.hwn1
 1.0.0.hwn2
 1.0.1
+1.0.1.jbr1
+1.0.1.jcn2
+1.0.1.jbr2
+1.0.2
index 114480452cdf6804ef0923095259d92d3e2a22e1..c1f7e46dcae5187405a439e030bb1b93cae80cb9 100644 (file)
@@ -2,7 +2,7 @@
 filename =      "allemande-cello.ly";
 title =         "Solo Cello Suites";
 subtitle = "Suite II";
-piece = "Allemande";
+%piece = "Allemande";
 % opus =        "BWV 1008";
 opus =  "";
 composer =      "Johann Sebastian Bach (1685-1750)";
@@ -45,5 +45,6 @@ allemande_cello_staff = \type Staff <
        \$allemande_cello_staff
        \include "scs-paper.ly";
        \midi{ \tempo 4 = 45; }
+       \header{ piece = "Allemande"; }
 }
 
index 0b9c0fb9bb9d98a5df616c379334ef909337255f..5d80bab7143fba5c386ebfce340e2139f38b31ff 100644 (file)
@@ -1,10 +1,10 @@
 % allemande-urtext.ly
-% belongs together with -cello.ly and -alto.ly
+% belongs together with -cello.ly and -viola.ly
 % (who is going to make a -violin.ly?)
 
 %{
 Well, there are still some scripts in this "urtext".
-But merging melodic and scripts doen't work too well yet (see alto_scripts).
+But merging melodic and scripts doen't work too well yet (see viola_scripts).
 %}
 
 n = { \slurnormal }
diff --git a/mutopia/J.S.Bach/Solo-Cello-Suites/allemande-viola.ly b/mutopia/J.S.Bach/Solo-Cello-Suites/allemande-viola.ly
new file mode 100644 (file)
index 0000000..cd01a3a
--- /dev/null
@@ -0,0 +1,50 @@
+\header{
+filename =      "allemande-viola.ly";
+title =         "Solo Cello Suites";
+subtitle = "Suite II";
+% piece = "Allemande";
+% opus =        "BWV 1008";
+opus =  "";
+composer =      "Johann Sebastian Bach (1685-1750)";
+enteredby =     "JCN";
+copyright =     "public domain";
+}
+
+%{
+ Tested Features:breaking algorithm, chords, multivoice, accents, 
+ dotted slurs
+%}
+
+\version "1.0.0";
+
+\include "allemande-urtext.ly";
+
+allemande_viola_global = \melodic{
+       \time 4/4;
+       \key f;
+       \partial 16;
+       \clef alto;
+       \skip 1*11;
+       s2. s8.
+       \bar ":|:";
+       \skip 1*11;
+       s2. s4 s8
+       \bar ":|";
+}
+
+allemande_viola_scripts = \melodic{
+}
+
+allemande_viola_staff = \type Staff <
+       \melodic \transpose c'' \$allemande
+       \$allemande_viola_global
+       \$allemande_viola_scripts
+>
+
+\score{
+       \$allemande_viola_staff
+       \include "scs-paper.ly";
+       \midi{ \tempo 4 = 45; }
+       \header{ piece = "Allemande"; }
+}
+
index 5909c0be7dab52533c6c954eb1a046206edc454d..da6812acd725b6930d6aa384fc68deca49787e70 100644 (file)
@@ -2,7 +2,7 @@
 filename =      "courante-cello.ly";
 title =         "Solo Cello Suites";
 subtitle = "Suite II";
-piece = "Courante";
+piece = "Courante";
 % opus =        "BWV 1008";
 opus =  "";
 composer =      "Johann Sebastian Bach (1685-1750)";
@@ -45,5 +45,6 @@ courante_cello_staff = \type Staff <
        \$courante_cello_staff
        \include "scs-paper.ly";
        \midi{ \tempo 4 = 55; }
+       \header{ piece = "Courante"; }
 }
 
index c04de2dac631e85881dc640be3fcf94354acc0e2..3d540b4378c9d821288a5bc06a876a97bb7386e7 100644 (file)
@@ -1,10 +1,10 @@
 % courante-urtext.ly
-% belongs together with -cello.ly and -alto.ly
+% belongs together with -cello.ly and -viola.ly
 % (who is going to make a -violin.ly?)
 
 %{
 Well, there are still some scripts in this "urtext".
-But merging melodic and scripts doen't work too well yet (see alto_scripts).
+But merging melodic and scripts doen't work too well yet (see viola_scripts).
 %}
 
 n = { \slurnormal }
diff --git a/mutopia/J.S.Bach/Solo-Cello-Suites/courante-viola.ly b/mutopia/J.S.Bach/Solo-Cello-Suites/courante-viola.ly
new file mode 100644 (file)
index 0000000..a6097d0
--- /dev/null
@@ -0,0 +1,50 @@
+\header{
+filename =      "courante-viola.ly";
+title =         "Solo Cello Suites";
+subtitle = "Suite II";
+% piece = "Courante";
+% opus =        "BWV 1008";
+opus =  "";
+composer =      "Johann Sebastian Bach (1685-1750)";
+enteredby =     "JCN";
+copyright =     "public domain";
+}
+
+%{
+ Tested Features:breaking algorithm, chords, multivoice, accents, 
+ dotted slurs
+%}
+
+\version "1.0.0";
+
+\include "courante-urtext.ly";
+
+courante_viola_global = \melodic{
+       \time 3/4;
+       \key f;
+       \partial 16;
+       \clef alto;
+       \skip 2.*15;
+       s2 s8.
+       \bar ":|:";
+       \skip 2.*15;
+       s2 s8.
+       \bar ":|";
+}
+
+courante_viola_scripts = \melodic{
+}
+
+courante_viola_staff = \type Staff <
+       \melodic \transpose c' \$courante
+       \$courante_viola_global
+       \$courante_viola_scripts
+>
+
+\score{
+       \$courante_viola_staff
+       \include "scs-paper.ly";
+       \midi{ \tempo 4 = 55; }
+       \header{ piece = "Courante"; }
+}
+
index 70c72a36f6bd3e3129639c3c2ced23a83812bf90..8d08d1de8a9f1bfc0e3dc8a00deec33e40d7bf13 100644 (file)
@@ -2,7 +2,7 @@
 filename =      "gigue-cello.ly";
 title =         "Solo Cello Suites";
 subtitle = "Suite II";
-piece = "Pr\\'elude";          % duh
+% piece = "Gigue";
 % opus =        "BWV 1008";
 opus =  "";
 composer =      "Johann Sebastian Bach (1685-1750)";
@@ -45,5 +45,6 @@ gigue_cello_staff = \type Staff <
        \$gigue_cello_staff
        \include "scs-paper.ly";
        \midi{ \tempo 4 = 60; }
+       \header{ piece = "Gigue"; }
 }
 
index 100156c7d7bf31bcc0ce862ceb3ddcbeafcd039f..8f36fb38bd4d6087d5c06897af9ce2429025d4b5 100644 (file)
@@ -1,10 +1,10 @@
 % gigue-urtext.ly
-% belongs together with -cello.ly and -alto.ly
+% belongs together with -cello.ly and -viola.ly
 % (who is going to make a -violin.ly?)
 
 %{
 Well, there are still some scripts in this "urtext".
-But merging melodic and scripts doen't work too well yet (see alto_scripts).
+But merging melodic and scripts doen't work too well yet (see viola_scripts).
 %}
 
 n = { \slurnormal }
diff --git a/mutopia/J.S.Bach/Solo-Cello-Suites/gigue-viola.ly b/mutopia/J.S.Bach/Solo-Cello-Suites/gigue-viola.ly
new file mode 100644 (file)
index 0000000..3847685
--- /dev/null
@@ -0,0 +1,51 @@
+\header{
+filename =      "gigue-cello.ly";
+title =         "Solo Cello Suites";
+subtitle = "Suite II";
+% piece = "Gigue";
+% opus =        "BWV 1008";
+opus =  "";
+composer =      "Johann Sebastian Bach (1685-1750)";
+enteredby =     "JCN";
+copyright =     "public domain";
+}
+
+%{
+ Tested Features:breaking algorithm, chords, multivoice, accents, 
+ dotted slurs
+%}
+
+\version "1.0.0";
+
+\include "gigue-urtext.ly";
+
+gigue_cello_global = \melodic{
+       \time 3/8;
+       \key f;
+       \clef bass;
+       \partial 8;
+       \skip 4.*31;
+       s4
+       \bar ":|:";
+       \skip 4.*44;
+       s4
+       \bar ":|";
+}
+
+gigue_cello_scripts = \melodic{
+}
+
+gigue_cello_staff = \type Staff <
+       \melodic \transpose c' \$gigue
+       \$gigue_cello_global
+       \$gigue_cello_scripts
+>
+
+\score{
+       \$gigue_cello_staff
+       \include "scs-paper.ly";
+%broken
+       \midi{ \tempo 4 = 60; }
+       \header{ piece = "Gigue"; }
+}
+
index 5d5f9c4d0d4bf8619a9fbf4b60677fcdd5423289..461c6ffca8aefa1f78d73741a001ea79275af1c5 100644 (file)
@@ -2,7 +2,7 @@
 filename =      "menuetto-cello.ly";
 title =         "Solo Cello Suites";
 subtitle = "Suite II";
-piece = "Menuetto I";
+%piece = "Menuetto I";
 source =        "?";
 % opus =        "BWV 1008 no. 5";
 opus =  "";
@@ -63,6 +63,7 @@ menuetto_i_cello_staff = \type Staff <
        \$menuetto_i_cello_staff
        \include "scs-paper.ly";
        \midi{ \tempo 4 = 110; }
+       \header{ piece = "Menuetto I"; }
 }
 
 menuetto_ii_cello_global = \melodic{
@@ -84,13 +85,10 @@ menuetto_ii_cello_staff = \type Staff <
 %      \$menuetto_ii_cello_scripts
 >
 
-\header{
-piece = "Menuetto II";
-opus =  "";
-}
 \score{
        \$menuetto_ii_cello_staff
        \include "scs-paper.ly";
        \midi{ \tempo 4 = 130; }
+       \header{ piece = "Menuetto II"; }
 }
 
index 67e2f4412893fc04dcefb8edff2010c6ba8426b6..76c93f5fb792b27ba93b67b66572fe2cf4f9d418 100644 (file)
@@ -1,10 +1,10 @@
 % menuetto-urtext.ly
-% belongs together with -cello.ly and -alto.ly
+% belongs together with -cello.ly and -viola.ly
 % (who is going to make a -violin.ly?)
 
 %{
 Well, there are still some scripts in this "urtext".
-But merging melodic and scripts doen't work too well yet (see alto_scripts).
+But merging melodic and scripts doen't work too well yet (see viola_scripts).
 %}
 
 menuetto_i_a = \melodic \relative c {
diff --git a/mutopia/J.S.Bach/Solo-Cello-Suites/menuetto-viola.ly b/mutopia/J.S.Bach/Solo-Cello-Suites/menuetto-viola.ly
new file mode 100644 (file)
index 0000000..b2fee93
--- /dev/null
@@ -0,0 +1,93 @@
+\header{
+filename =      "menuetto-viola.ly";
+title =         "Solo Cello Suites";
+subtitle = "Suite II";
+% piece = "Menuetto I";
+description =   "Transcribed for Viola";
+source =        "?";
+% opus =        "BWV 1008 no. 5";
+opus =  "";
+composer =      "Johann Sebastian Bach (1685-1750)";
+enteredby =     "JCN";
+copyright =     "public domain";
+}
+
+%{
+ Tested Features:breaking algorithm, chords, multivoice, accents, 
+ dotted slurs
+%}
+
+\version "1.0.0";
+
+\include "menuetto-urtext.ly";
+
+menuetto_i_viola_global = \melodic{
+       \time 3/4;
+       \key f;
+       \clef alto;
+       \skip 2.*8;
+       \bar ":|:";
+       \clef violin;
+       \skip 2.*1;
+       \slurdotted
+       \skip 2.*3;
+       \clef alto;
+       \skip 2.*11;
+       s2._"Fine"
+       \bar ":|";
+}
+
+menuetto_i_viola_scripts = \melodic{
+       s2.
+       s8^"~"^1_2_4 s8*5
+       s2.*5
+       s4 s-\upbow s-\downbow
+       s2.-\upbow
+       s2.*5
+       s2 s4-\upbow
+       s4-\downbow s2
+       s2.*1
+       s2^0 s4
+       s2.*1
+       s4-\downbow s4-\upbow
+}
+
+menuetto_i_viola_staff = \type Staff <
+       \melodic \transpose c' \$menuetto_i
+       \$menuetto_i_viola_global
+%      \$menuetto_i_viola_scripts
+>
+
+\score{
+       \$menuetto_i_viola_staff
+       \include "scs-paper.ly";
+       \midi{ \tempo 4 = 110; }
+       \header{ piece = "Menuetto I"; }
+}
+
+menuetto_ii_viola_global = \melodic{
+       \time 3/4;
+       \key D;
+       \clef alto;
+       \skip 2.*8;
+       \bar ":|:";
+       \skip 2.*1;
+       \slurdotted
+       \skip 2.*14;
+       s2._"Menuetto I da Capo"
+       \bar ":|";
+}
+
+menuetto_ii_viola_staff = \type Staff <
+       \melodic \transpose c' \$menuetto_ii
+       \$menuetto_ii_viola_global
+%      \$menuetto_ii_viola_scripts
+>
+
+\score{
+       \$menuetto_ii_viola_staff
+       \include "scs-paper.ly";
+       \midi{ \tempo 4 = 130; }
+       \header{ piece = "Menuetto II"; }
+}
+
index d872e5ccb8bb449ec273926a6a888c1fb7ddc79b..fd071234ce202763aa4da609cb6c294d6cb2b1a6 100644 (file)
@@ -2,7 +2,7 @@
 filename =      "prelude-cello.ly";
 title =         "Solo Cello Suites";
 subtitle = "Suite II";
-piece = "Pr\\'elude";          % duh
+%piece = "Pr\\'elude";         % duh
 opus =  "BWV 1008";
 % opus =        "";
 composer =      "Johann Sebastian Bach (1685-1750)";
@@ -40,5 +40,6 @@ prelude_cello_staff = \type Staff <
        \$prelude_cello_staff
        \include "scs-paper.ly";
        \midi{ \tempo 4 = 40; }
+       \header{ piece = "Pr\\'elude"; }        
 }
 
index f93032b967f1ec3753147cf73ba6eed90b49b571..2c31ae382dc8f8e0904df33fd39feb88b1e488d4 100644 (file)
@@ -1,10 +1,10 @@
 % prelude-urtext.ly
-% belongs together with -cello.ly and -alto.ly
+% belongs together with -cello.ly and -viola.ly
 % who is going to make a -violin.ly? 
 
 %{
 Well, there are still some scripts in this "urtext".
-But merging melodic and scripts doen't work too well yet see alto_scripts .
+But merging melodic and scripts doen't work too well yet see viola_scripts .
 %}
 
 % urg, Thread is gone, try Voice
diff --git a/mutopia/J.S.Bach/Solo-Cello-Suites/prelude-viola.ly b/mutopia/J.S.Bach/Solo-Cello-Suites/prelude-viola.ly
new file mode 100644 (file)
index 0000000..dd8ff62
--- /dev/null
@@ -0,0 +1,45 @@
+\header{
+filename =      "prelude-viola.ly";
+title =         "Solo Cello Suites";
+subtitle = "Suite II";
+% piece = "Pr\\'elude";                % duh
+opus =  "BWV 1008";
+% opus =        "";
+composer =      "Johann Sebastian Bach (1685-1750)";
+enteredby =     "JCN";
+copyright =     "public domain";
+}
+
+%{
+ Tested Features:breaking algorithm, chords, multivoice, accents, 
+ dotted slurs
+%}
+
+\version "1.0.0";
+
+\include "prelude-urtext.ly";
+
+prelude_viola_global = \melodic{
+       \time 3/4;
+       \key f;
+       \clef alto;
+       \skip 2.*63;
+       \bar "|.";
+}
+
+prelude_viola_scripts = \melodic{
+}
+
+prelude_viola_staff = \type Staff <
+       \melodic \transpose c' \$prelude
+       \$prelude_viola_global
+       \$prelude_viola_scripts
+>
+
+\score{
+       \$prelude_viola_staff
+       \include "scs-paper.ly";
+       \midi{ \tempo 4 = 40; }
+       \header{ piece = "Pr\\'elude"; }
+}
+
index 4a8002713e64a9f88b148218cae86db2882516fe..db57bec6c8d2c33e9500a4961ec1b220f445e7cc 100644 (file)
@@ -2,7 +2,7 @@
 filename =      "sarabande-cello.ly";
 title =         "Solo Cello Suites";
 subtitle = "Suite II";
-piece = "Sarabande";
+piece = "Sarabande";
 % opus =        "BWV 1008";
 opus =  "";
 composer =      "Johann Sebastian Bach (1685-1750)";
@@ -42,5 +42,6 @@ sarabande_cello_staff = \type Staff <
        \$sarabande_cello_staff
        \include "scs-paper.ly";
        \midi{ \tempo 4 = 40; }
+       \header{ piece = "Sarabande"; }
 }
 
index 00db06b77e333b0b60b9b10e0f051574f3551d1e..1a82029959d3d954d0b2f3fdc2e74b2039be60bf 100644 (file)
@@ -1,10 +1,10 @@
 % sarabande-urtext.ly
-% belongs together with -cello.ly and -alto.ly
+% belongs together with -cello.ly and -viola.ly
 % (who is going to make a -violin.ly?)
 
 %{
 Well, there are still some scripts in this "urtext".
-But merging melodic and scripts doen't work too well yet (see alto_scripts).
+But merging melodic and scripts doen't work too well yet (see viola_scripts).
 %}
 
 n = { \slurnormal }
diff --git a/mutopia/J.S.Bach/Solo-Cello-Suites/sarabande-viola.ly b/mutopia/J.S.Bach/Solo-Cello-Suites/sarabande-viola.ly
new file mode 100644 (file)
index 0000000..864fb0d
--- /dev/null
@@ -0,0 +1,47 @@
+\header{
+filename =      "sarabande-viola.ly";
+title =         "Solo Cello Suites";
+subtitle = "Suite II";
+% piece = "Sarabande";
+% opus =        "BWV 1008";
+opus =  "";
+composer =      "Johann Sebastian Bach (1685-1750)";
+enteredby =     "JCN";
+copyright =     "public domain";
+}
+
+%{
+ Tested Features:breaking algorithm, chords, multivoice, accents, 
+ dotted slurs
+%}
+
+\version "1.0.0";
+
+\include "sarabande-urtext.ly";
+
+sarabande_viola_global = \melodic{
+       \time 3/4;
+       \key f;
+       \clef alto;
+       \skip 2.*12;
+       \bar ":|:";
+       \skip 2.*16;
+       \bar ":|";
+}
+
+sarabande_viola_scripts = \melodic{
+}
+
+sarabande_viola_staff = \type Staff <
+       \melodic \transpose c' \$sarabande
+       \$sarabande_viola_global
+       \$sarabande_viola_scripts
+>
+
+\score{
+       \$sarabande_viola_staff
+       \include "scs-paper.ly";
+       \midi{ \tempo 4 = 40; }
+       \header{ piece = "Sarabande"; }
+}
+
diff --git a/mutopia/J.S.Bach/Solo-Cello-Suites/scsii-viola.ly b/mutopia/J.S.Bach/Solo-Cello-Suites/scsii-viola.ly
new file mode 100644 (file)
index 0000000..b6db279
--- /dev/null
@@ -0,0 +1,7 @@
+\header{
+instrument="Alto";
+}
+
+instrument="viola";
+\include "solo-cello-suite-ii.ly"
+
index 81838eb82b1e366cb8b814b35caeca790cfe1ed6..6213a48128ec44e5d8252d4fc8e6e1281dcb9f73 100644 (file)
@@ -5,12 +5,12 @@
 # Written by Jan Arne Fagertun <Jan.A.Fagertun@energy.sintef.no>
 #  Sat Nov 22 22:26:43 CET 1997
 #
-# $Id: ly2dvi.sh,v 1.1 1998/08/10 21:21:03 fred Exp $
+# $Id: ly2dvi.sh,v 1.2 1998/08/14 11:16:34 fred Exp $
 #
 #  Original LaTeX file made by Mats Bengtsson, 17/8 1997
 #
 
-VERSION="0.12"
+VERSION="0.12.jcn1"
 NAME=ly2dvi.sh
 IDENTIFICATION="$NAME $VERSION" 
 NOW=`date`
@@ -21,9 +21,11 @@ echo "$IDENTIFICATION" 1>&2
 
 # NEWS
 
+# 0.12.jcn1
+#  - mudelaDefs really fixed (sorry, PC)
+
 # 0.12
 #  - -S/--sourcedir switch
-#
 
 #
 #0.11.jcn3
@@ -616,9 +618,6 @@ if [ "$SOURCEDIR" != "" ]; then
        export TEXINPUTS="$SOURCEDIR/tex:$TEXINPUTS:"
        export MFINPUTS="$SOURCEDIR/mf:$MFINPUTS:"
        export LILYPOND_EXECUTABLE="$SOURCEDIR/lily/out/lilypond"
-
-       set|grep MF
-       set|grep TEXIN
 fi
 
 #
@@ -638,20 +637,28 @@ regexp_quote(){
 #
 mudelaDefs(){
 # Include \def\mudela-definitions
+# The aim here is to pick up the definition for the 
+# current file, then any other file.
 #
+mudelatmp=$TMP/mudelaDefs$$
+# Use `cat' to prevent filenames being prepended
+# 
+cat "$File" $OF | fgrep "$MU_DEF" > $mudelatmp
 for L in $MU_DEF
 do
-  for F in "$File" "$OF"
-  do
-    LL=`sed -n 's/\\\\def\\\\'"$L"'{\([^}]*\)}.*$/\1/p' "$F"`
-    [ "$LL" ] && {
-         Echo "$1\\"$L'{'"$LL"'}%'                                >> $LatF
-         break
-    }
-  done
+    # This converts \def\mudelatitle{fred}
+    # to \mudelatitle{fred} or to
+    # \def\mudelatitle{fred}
+    # and stops after the first one found.
+    sed -n '/\\def\\'"$L"'{\([^}]*\)}.*$/{
+       s//'"`regexp_quote \"$1\"`"'\\'"$L"'{\1}%/p
+       q
+    }'  $mudelatmp  >> $LatF
 done
+rm -f $mudelatmp
 }
 #
+#
 startFile(){
 #
 # LaTeX file name
index 29637a2ebaa6cdfcecd3294e3cab11a5e4845507..845eee732c064a64a28a64ecece9a5d333849863 100644 (file)
@@ -16,3 +16,4 @@
 0.1.38
 0.1.39
 0.1.40
+0.1.41