]> git.donarmstrong.com Git - lilypond.git/blobdiff - Documentation/user/SConscript
Updates. Add targets: tar, dist, release.
[lilypond.git] / Documentation / user / SConscript
index 2798c17df69b5c0b8a56ad59e2b9542bc005e464..d0c237277ec7c6f619f3c0e5b66910f225e60de8 100644 (file)
@@ -6,13 +6,8 @@ import re
 import sys
 
 Import ('env')
-here = os.getcwd ()
-reldir = str (Dir ('.').srcnode ())
-os.chdir (reldir)
-sources = glob.glob ('*.tely')
-pngs = glob.glob ('*.png')
-os.chdir (here)
-outdir = os.path.join (env['build'], reldir, env['out'])
+sources = env['src_glob'] (env, '*.tely')
+pngs = env['src_glob'] (env, '*.png')
 
 def verbose_opt (env, opt):
        if env['verbose']:
@@ -26,19 +21,8 @@ mfbuild = os.path.join (env['absbuild'], 'mf', env['out'])
 lilybuild = os.path.join (env['absbuild'], 'lily', env['out'])
 userbuild = os.path.join (env['absbuild'], 'Documentation/user', env['out'])
 
-# more of these? -- howto?
-env.Depends ('lilypond.texi', os.path.join (mfbuild, 'feta16list.ly'))
-env.Depends ('lilypond.texi', os.path.join (mfbuild, 'parmesan16list.ly'))
-# or these
-env.Depends ('doc', os.path.join (mfbuild, 'feta20.enc'))
-env.Depends ('doc', os.path.join (mfbuild, 'feta20.enc'))
-
 env.Depends ('lilypond.texi', LILYPOND_BIN)
 env.Depends ('lilypond.texi', 'lilypond-internals.texi')
-
-##env.Depends ('lilypond.texi', 'fonts')
-
-# simple:
 env.Depends ('doc', mfbuild)
 
 png_stems = map (lambda x: os.path.splitext (x)[0], pngs)
@@ -69,7 +53,9 @@ def file_subst (file_name, find, subst):
                h.write (t)
                h.close ()
 
-docdir = os.path.join (env['srcdir'], 'Documentation')
+##docdir = os.path.join (env['srcdir'], 'Documentation')
+docdir = Dir ('.').srcnode ().abspath + '/..'
+reldir = 'foe'
 out = env['out']
 srcdir = env['srcdir']
 verbose = verbose_opt (env, ' --verbose')