]> git.donarmstrong.com Git - lilypond.git/blob - buildscripts/build-profile.sh
b7ac93b6136407dd1dd31369bc5c4b17b59a7231
[lilypond.git] / buildscripts / build-profile.sh
1 #!/bin/sh
2
3 if test "$1" == "--fresh"; then
4   fresh=yes
5 fi
6
7 if test ! -f config-prof.make; then
8   fresh=yes
9 fi
10
11 if test "$fresh" = "yes";
12 then
13   ./configure --enable-config=prof --enable-optimising \
14    &&   perl -i~ -pe 's/-pipe /-pg -pipe /g' config-prof.make \
15    &&   perl -i~ -pe 's/ -ldl / -pg -ldl /g' config-prof.make
16 fi
17
18 make conf=prof -j2
19
20 rm -rf out-prof
21 mkdir out-prof
22 cd out-prof
23
24 echo 'foo = \new Staff \new Voice \repeat unfold 50 \relative { c4 d8[ d16( e]~ e16[ e e) f] g8  }
25 \new ChoirStaff << 
26   \foo \foo \foo \foo 
27   \foo \foo \foo \foo 
28
29 >>' > long-score.ly
30
31
32 ./bin/lilypond -ddump-profile -I ../input/ -I  ../input/mutopia/J.S.Bach/ \
33      -I ../input/mutopia/W.A.Mozart/
34      wtk-fugue2 mozart-hrn-3  long-score
35
36 gprof ./bin/lilypond