avoid "if test" breakage

This commit is contained in:
Дмитрий Левин 2002-10-03 14:10:20 +00:00
parent fc90a1ef42
commit c9b86b492c

View File

@ -88,14 +88,14 @@ fix()
>"$f_saved"
while ! cmp -s "$f_new" "$f_saved"; do
cat "$f_new" >"$f_saved"
subst 's,\(^\|[="'\'']\| \+\)-I/usr\(/local\)\?/include\($\|["'\'']\| \+\),\1\3,g' -- "$f_new"
subst '/if test /n;s,\(^\|[="'\'']\| \+\)-I/usr\(/local\)\?/include\($\|["'\'']\| \+\),\1\3,g' -- "$f_new"
done
if [ "$includedir" = /usr/include ]; then
>"$f_saved"
while ! cmp -s "$f_new" "$f_saved"; do
cat "$f_new" >"$f_saved"
subst 's,\(^\|[="'\'']\| \+\)-I\${includedir}\($\|["'\'']\| \+\),\1\3,g' -- "$f_new"
subst '/if test /n;s,\(^\|[="'\'']\| \+\)-I\${includedir}\($\|["'\'']\| \+\),\1\3,g' -- "$f_new"
done
fi
@ -103,7 +103,7 @@ fix()
>"$f_saved"
while ! cmp -s "$f_new" "$f_saved"; do
cat "$f_new" >"$f_saved"
subst 's,\(^\|[="'\'']\| \+\)-I\${exec_prefix}/include\($\|["'\'']\| \+\),\1\3,g' -- "$f_new"
subst '/if test /n;s,\(^\|[="'\'']\| \+\)-I\${exec_prefix}/include\($\|["'\'']\| \+\),\1\3,g' -- "$f_new"
done
fi
@ -111,7 +111,7 @@ fix()
>"$f_saved"
while ! cmp -s "$f_new" "$f_saved"; do
cat "$f_new" >"$f_saved"
subst 's,\(^\|[="'\'']\| \+\)-I\${prefix}/include\($\|["'\'']\| \+\),\1\3,g' -- "$f_new"
subst '/if test /n;s,\(^\|[="'\'']\| \+\)-I\${prefix}/include\($\|["'\'']\| \+\),\1\3,g' -- "$f_new"
done
fi
@ -128,14 +128,14 @@ fix()
>"$f_saved"
while ! cmp -s "$f_new" "$f_saved"; do
cat "$f_new" >"$f_saved"
subst 's@\(^\|[="'\'']\| \+\)\(-L\|-Wl,-rpath,\)/usr\(/local\)\?/lib\($\|["'\'']\| \+\)@\1\4@g' -- "$f_new"
subst '/if test /n;s@\(^\|[="'\'']\| \+\)\(-L\|-Wl,-rpath,\)/usr\(/local\)\?/lib\($\|["'\'']\| \+\)@\1\4@g' -- "$f_new"
done
if [ "$libdir" = /usr/lib ]; then
>"$f_saved"
while ! cmp -s "$f_new" "$f_saved"; do
cat "$f_new" >"$f_saved"
subst 's@\(^\|[="'\'']\| \+\)\(-L\|-Wl,-rpath,\)\${libdir}\($\|["'\'']\| \+\)@\1\3@g' -- "$f_new"
subst '/if test /n;s@\(^\|[="'\'']\| \+\)\(-L\|-Wl,-rpath,\)\${libdir}\($\|["'\'']\| \+\)@\1\3@g' -- "$f_new"
done
fi
@ -143,7 +143,7 @@ fix()
>"$f_saved"
while ! cmp -s "$f_new" "$f_saved"; do
cat "$f_new" >"$f_saved"
subst 's@\(^\|[="'\'']\| \+\)\(-L\|-Wl,-rpath,\)\${exec_prefix}/lib\($\|["'\'']\| \+\)@\1\3@g' -- "$f_new"
subst '/if test /n;s@\(^\|[="'\'']\| \+\)\(-L\|-Wl,-rpath,\)\${exec_prefix}/lib\($\|["'\'']\| \+\)@\1\3@g' -- "$f_new"
done
fi
@ -151,7 +151,7 @@ fix()
>"$f_saved"
while ! cmp -s "$f_new" "$f_saved"; do
cat "$f_new" >"$f_saved"
subst 's@\(^\|[="'\'']\| \+\)\(-L\|-Wl,-rpath,\)\${prefix}/lib\($\|["'\'']\| \+\)@\1\3@g' -- "$f_new"
subst '/if test /n;s@\(^\|[="'\'']\| \+\)\(-L\|-Wl,-rpath,\)\${prefix}/lib\($\|["'\'']\| \+\)@\1\3@g' -- "$f_new"
done
fi