X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=Documentation%2FSConscript;h=5813e917118c1da50f2c059e8761aa916616500e;hb=543171165412bc915d8ea1f308d070c74924b2f1;hp=d2aad2c257e4ad7f9321e7c83d790e11c8560130;hpb=b3cb8aa73b9cf802337d35b8280f89ba3c77e542;p=lilypond.git diff --git a/Documentation/SConscript b/Documentation/SConscript index d2aad2c257..5813e91711 100644 --- a/Documentation/SConscript +++ b/Documentation/SConscript @@ -1,49 +1,5 @@ # -*-python-*- -import glob -import os - -here = os.getcwd () -reldir = str (Dir ('.').srcnode ()) -os.chdir (reldir) -sources = glob.glob ('*.tely') + glob.glob ('user/*.tely') -os.chdir (here) - Import ('env') -e = env.Copy () -outdir = os.path.join (env['build'], reldir, env['out']) - -# Too late -e.Append (LILYPOND_BOOK_PATH = [os.path.join (env['srcdir'], reldir, 'user')]) -e['LILYPOND_BOOK_PATH'].append (os.path.join (env['srcdir'], reldir, 'user')) - - - -def verbose_opt (env, opt): - if env['verbose']: - return opt - return '' - -LILYPOND_BIN = env['LILYPOND_BIN'] -LILYPONDPREFIX = env['LILYPONDPREFIX'] - - -mfbuild = os.path.join (env['absbuild'], 'mf', env['out']) -e.Depends ('user/lilypond.texi', os.path.join (mfbuild, 'feta16list.ly')) -e.Depends ('user/lilypond.texi', os.path.join (mfbuild, 'parmesan16list.ly')) -e.Depends ('lilypond.texi', 'lilypond-internals.texi') - -e.Command ('lilypond-internals.texi', LILYPOND_BIN, - ('(cd $$(dirname $TARGET) && \ - LILYPONDPREFIX=%(LILYPONDPREFIX)s %(LILYPOND_BIN)s ' \ - + verbose_opt (env, ' --verbose') \ - + ' ' + os.path.join (env['srcdir'], 'ly/generate-documentation')\ - + ')') % vars ()) - -docs = e.Tely2pdf (sources) - -e.Alias ('doc', docs) +env.AT_COPY ('index.html.in') -#testing -all_sources = ['SConscript',] + sources -x = env.Tar (env['tarball'], all_sources)