From 297afd09b9e7b76e1806411ad737496d59a4bb5b Mon Sep 17 00:00:00 2001 From: Han-Wen Nienhuys Date: Fri, 5 Jan 2007 02:56:09 +0100 Subject: [PATCH] build-profile script --- buildscripts/build-profile.sh | 36 +++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100755 buildscripts/build-profile.sh diff --git a/buildscripts/build-profile.sh b/buildscripts/build-profile.sh new file mode 100755 index 0000000000..b7ac93b613 --- /dev/null +++ b/buildscripts/build-profile.sh @@ -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 -- 2.39.2