projects
/
lilypond.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
db6e122
)
robustness: don't inspect symlinks. Fix: strip path of symlink dest.
author
Han-Wen Nienhuys
<hanwen@xs4all.nl>
Wed, 20 Dec 2006 13:38:39 +0000
(14:38 +0100)
committer
Han-Wen Nienhuys
<hanwen@xs4all.nl>
Wed, 20 Dec 2006 14:44:31 +0000
(15:44 +0100)
stepmake/bin/add-html-footer.py
patch
|
blob
|
history
diff --git
a/stepmake/bin/add-html-footer.py
b/stepmake/bin/add-html-footer.py
index 83c398ee9ed60f40ea6a1c84051a32131b410466..1fd33a83757d72784553973d9c6dd690bc4365e0 100644
(file)
--- a/
stepmake/bin/add-html-footer.py
+++ b/
stepmake/bin/add-html-footer.py
@@
-172,6
+172,9
@@
def remove_self_ref (s):
return s
def do_file (f):
+ if os.path.islink (f):
+ return
+
s = open (f).read()
s = re.sub ('%', '%%', s)
@@
-341,7
+344,7
@@
def i18n (file_name, page):
page = page + languages
if content_negotiation and language_menu:
- os.symlink (file_name, os.path.splitext (
file_name
)[0] + '.en.html')
+ os.symlink (file_name, os.path.splitext (
os.path.basename (file_name)
)[0] + '.en.html')
return page