]> git.donarmstrong.com Git - lilypond.git/commitdiff
Silences "Not a dir" messages in make website
authorPhil Holmes <mail@philholmes.net>
Fri, 27 May 2011 13:33:07 +0000 (14:33 +0100)
committerGraham Percival <graham@percival-music.ca>
Fri, 27 May 2011 13:46:09 +0000 (14:46 +0100)
Also gets rid of the double slash in the non-translated directory
names.

make/website.make
scripts/build/extract_texi_filenames.py

index 55e2331633765bdbf3b2694eda40b069e7c469c6..62ca4b803d71f74d40d5a68c1db593c7428f1903 100644 (file)
@@ -84,6 +84,11 @@ website-version:
 
 website-xrefs: website-version
        for l in '' $(WEB_LANGS); do \
+               len="$${#l}" ; \
+               r="$$l"; \
+               if [ "$$len" -gt "0" ] ; then \
+                       r="$$r"/; \
+               fi ; \
                $(EXTRACT_TEXI_FILENAMES) \
                        -I $(top-src-dir)/Documentation \
                        -I $(top-src-dir)/Documentation/"$$l" \
@@ -99,7 +104,7 @@ website-xrefs: website-version
                                $(EXTRACT_TEXI_FILENAMES) \
                                -I $(top-src-dir)/Documentation \
                                -I $(top-src-dir)/Documentation/"$$l" \
-                               -I $(top-src-dir)/Documentation/"$$l"/"$$d" \
+                               -I $(top-src-dir)/Documentation/"$$r""$$d" \
                                --known-missing-files=$(top-src-dir)/scripts/build/website-known-missing-files.txt \
                          $(quiet-flag) \
                                -I $(OUT) -o $(OUT) "$$n" ; \
index 33a31b7af5caad05e0836d387e0313fd0d17e99a..7dd41eeadec97e851683faaeb97b872a830291fd 100644 (file)
@@ -66,6 +66,7 @@ include_path = ['.',]
 master_map_file = ''
 known_missing_files = []
 known_missing_files_file = ''
+docs_without_directories = ['changes', 'music-glossary']
 suppress_output = False
 initial_map = {}
 for opt in options_list:
@@ -77,7 +78,12 @@ for opt in options_list:
         if os.path.isdir (a):
             include_path.append (a)
         else:
-            print 'NOT A DIR from: ', os.getcwd (), a
+            path_list = a.split('/')
+            file_name = path_list[len(path_list)-1]
+            if not (file_name in docs_without_directories):
+                print a, 'is not a directory.'
+                print 'Please consider adding it to the list of '
+                print 'known missing files in extract_texi_filename.py.'
     elif o == '-o' or o == '--output':
         outdir = a
     elif o == '-s' or o == '--split':