]> git.donarmstrong.com Git - lilypond.git/commitdiff
build-profile script
authorHan-Wen Nienhuys <hanwen@xs4all.nl>
Fri, 5 Jan 2007 01:56:09 +0000 (02:56 +0100)
committerHan-Wen Nienhuys <hanwen@xs4all.nl>
Fri, 5 Jan 2007 01:56:09 +0000 (02:56 +0100)
buildscripts/build-profile.sh [new file with mode: 0755]

diff --git a/buildscripts/build-profile.sh b/buildscripts/build-profile.sh
new file mode 100755 (executable)
index 0000000..b7ac93b
--- /dev/null
@@ -0,0 +1,36 @@
+#!/bin/sh
+
+if test "$1" == "--fresh"; then
+  fresh=yes
+fi
+
+if test ! -f config-prof.make; then
+  fresh=yes
+fi
+
+if test "$fresh" = "yes";
+then
+  ./configure --enable-config=prof --enable-optimising \
+   &&   perl -i~ -pe 's/-pipe /-pg -pipe /g' config-prof.make \
+   &&   perl -i~ -pe 's/ -ldl / -pg -ldl /g' config-prof.make
+fi
+
+make conf=prof -j2
+
+rm -rf out-prof
+mkdir out-prof
+cd out-prof
+
+echo 'foo = \new Staff \new Voice \repeat unfold 50 \relative { c4 d8[ d16( e]~ e16[ e e) f] g8  }
+\new ChoirStaff << 
+  \foo \foo \foo \foo 
+  \foo \foo \foo \foo 
+
+>>' > long-score.ly
+
+
+./bin/lilypond -ddump-profile -I ../input/ -I  ../input/mutopia/J.S.Bach/ \
+     -I ../input/mutopia/W.A.Mozart/
+     wtk-fugue2 mozart-hrn-3  long-score
+
+gprof ./bin/lilypond