]> git.donarmstrong.com Git - lilypond.git/blob - buildscripts/build-profile.sh
nitpicks
[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
21 depth=../..
22 resultdir=out/profile-results
23
24 rm -rf $resultdir
25 mkdir $resultdir
26 cd $resultdir
27
28
29 echo 'foo = \new Staff \new Voice \repeat unfold 50 \relative { c4 d8[ d16( e]~ e16[ e e) f] g8  }
30 \new ChoirStaff << 
31   \foo \foo \foo \foo 
32   \foo \foo \foo \foo 
33
34 >>' > long-score.ly
35
36
37 ../bin/lilypond -ddump-profile -I $depth/input/ -I  $depth/input/mutopia/J.S.Bach/ \
38      -I $depth/input/mutopia/W.A.Mozart/ \
39      wtk-fugue2 mozart-hrn-3  long-score
40
41 gprof ../bin/lilypond