]> git.donarmstrong.com Git - lilypond.git/blobdiff - Documentation/SConscript
Clean up buildscripts
[lilypond.git] / Documentation / SConscript
index d2aad2c257e4ad7f9321e7c83d790e11c8560130..5813e917118c1da50f2c059e8761aa916616500e 100644 (file)
@@ -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)