pike.git/
src/
configure.in
Branch:
Tag:
Non-build tags
All tags
No tags
2005-01-10
2005-01-10 15:37:36 by Henrik Grubbström (Grubba) <grubba@grubba.org>
299f92b087c69d6650c716f7724a6d2a3b408bbf (
27
lines) (+
19
/-
8
)
[
Show
|
Annotate
]
Branch:
7.9
Potential fix for spaces in paths mounted via MinGW.
Rev: src/configure.in:1.872
1:
-
AC_REVISION("$Id: configure.in,v 1.
871
2005/01/
07
10:
40
:
42
grubba Exp $")
+
AC_REVISION("$Id: configure.in,v 1.
872
2005/01/
10
15
:
37
:
36
grubba Exp $")
AC_INIT(interpret.c) AC_CONFIG_HEADER(machine.h)
2200:
# MinGW system. cat <<\EOF #!/bin/sh
-
# Automatically generated by $Id: configure.in,v 1.
871
2005/01/
07
10:
40
:
42
grubba Exp $.
+
# Automatically generated by $Id: configure.in,v 1.
872
2005/01/
10
15
:
37
:
36
grubba Exp $.
# MinGW-version. Do NOT edit. posix_name="`cat`" posix_prefix="/"
2211:
esac case "$posix_name" in EOF
-
mount | sed -e 's/\(.*\) on \(.*\) type user.*/\2 \1/p' -ed | sort -r | \
+
# Split and recombine the lines.
+
# Sort the lines according to longest path first.
+
# Convert backslashes to forward slashes.
+
# Escape spaces, tabs and dollars.
+
# Note, dollars must be escaped both for sed, sh and sed.
+
# Split, and generate the case entries.
+
# Remove any duplicate sequences of slashes.
+
mount |
\
+
sed -e 's/\(.*\) on \(.*\) type user.*/\2
_split_
\1/p' -ed |
\
+
sort -r | \
sed -e 's/\\/\//g' | \
-
sed -e 's/\(.*\) \(.*\)/ \1|\1\/*)\
-
posix_prefix=
"\1"\
-
native_prefix=
"
\2\/
"
\
+
sed -e 's/\(
[ ]\)/\\\1/g' -e 's/\$/\\\\\\\$/g' | \
+
sed -e 's/\(
.*\)
\\
_split_\\
\(.*\)/ \1|\1\/*)\
+
posix_prefix=
\1\
+
native_prefix=\2\/\
\;\;/p' -ed | \ sed -e 's/\/\//\//g' cat <<\EOF
2228:
# Native POSIX system. cat <<\EOF #!/bin/sh
-
# Automatically generated by $Id: configure.in,v 1.
871
2005/01/
07
10:
40
:
42
grubba Exp $.
+
# Automatically generated by $Id: configure.in,v 1.
872
2005/01/
10
15
:
37
:
36
grubba Exp $.
# POSIX-version. Do NOT edit. cat EOF
2237:
# rntcl-style cat <<\EOF #!/bin/sh
-
# Automatically generated by $Id: configure.in,v 1.
871
2005/01/
07
10:
40
:
42
grubba Exp $.
+
# Automatically generated by $Id: configure.in,v 1.
872
2005/01/
10
15
:
37
:
36
grubba Exp $.
# RNTCL-version. Do NOT edit. sed -e "$PIKE_PATH_TRANSLATE" EOF