From b326041c2e35c0e451f92e294365775505b2d56b Mon Sep 17 00:00:00 2001 From: "Dmitry V. Levin" Date: Mon, 17 May 2004 15:23:20 +0000 Subject: [PATCH] handle symlinks in --with-gnome mode --- scripts/find-lang.in | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/scripts/find-lang.in b/scripts/find-lang.in index 4a3f3f8..768b898 100755 --- a/scripts/find-lang.in +++ b/scripts/find-lang.in @@ -157,23 +157,21 @@ s:^%lang(man.*) .*:: s:'"$TOPDIR"':: s:\(.*/gnome/help/'"$NAME"'\)$:%dir \1: s:\(.*/gnome/help/'"$NAME"'/\)\([^/_]\+\):%dir %lang(\2) \1\2: +s:\(.*/share/omf/'"$NAME"'\)$:%dir \1: s:^\([^%].*\):: s:%lang(C) :: ' |grep -v '^$' >> "$OUTFILE" ||: find "$TOPDIR" -type f |sed ' s:'"$TOPDIR"':: s:\(.*/gnome/help/'"$NAME"'/\)\([^/_]\+\):%lang(\2) \1\2: +s:\(.*/share/omf/'"$NAME"'/\)\([^/]*-\)\(.*\)\(\.omf\)$:%lang(\3) \1\2\3\4: s:^\([^%].*\):: s:%lang(C) :: ' |grep -v '^$' >> "$OUTFILE" ||: - find $TOPDIR -type d |sed ' + find "$TOPDIR" -type l |sed ' s:'"$TOPDIR"':: -s:\(.*/share/omf/'"$NAME"'\)$:%dir \1: -s:^\([^%].*\):: - ' |grep -v '^$' >> "$OUTFILE" ||: - find "$TOPDIR" -type f |sed ' -s:'"$TOPDIR"':: -s:\(.*/share/omf/'"$NAME"'/\)\([^/]*-\)\(.*\)\(\.omf\)$:%lang(\3) \1\2\3\4: +s:\(.*/gnome/help/'"$NAME"'/\)\([^/_]\+\):%lang(\2) %attr(-,root,root) \1\2: +s:\(.*/share/omf/'"$NAME"'/\)\([^/]*-\)\(.*\)\(\.omf\)$:%lang(\3) %attr(-,root,root) \1\2\3\4: s:^\([^%].*\):: s:%lang(C) :: ' |grep -v '^$' >> "$OUTFILE" ||: @@ -187,10 +185,16 @@ s:^\([^%].*\):: s:%lang(en) :: ' |grep -v '^$' >> "$OUTFILE" ||: - find "$TOPDIR" -type f -o -type l |sed ' + find "$TOPDIR" -type f |sed ' s:'"$TOPDIR"':: s:\(.*/share/doc/HTML/\)\([^/_]\+\)\(/'"$NAME"'/.*\):%lang(\2) \1\2\3: s:^\([^%].*\):: +s:%lang(en) :: + ' |grep -v '^$' >> "$OUTFILE" ||: + find "$TOPDIR" -type l |sed ' +s:'"$TOPDIR"':: +s:\(.*/share/doc/HTML/\)\([^/_]\+\)\(/'"$NAME"'/.*\):%lang(\2) %attr(-,root,root) \1\2\3: +s:^\([^%].*\):: s:%lang(en) :: ' |grep -v '^$' >> "$OUTFILE" ||: fi