Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit f4add18

Browse files
committed
Fix quoting problems in mkMakefile.tcldefs.sh.in and
mkMakefile.tkdefs.sh.in.
1 parent 1f14a9d commit f4add18

File tree

3 files changed

+30
-11
lines changed

3 files changed

+30
-11
lines changed
Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,23 @@
1+
#! /bin/sh
12

2-
if [ ! -f @TCL_CONFIG_SH@ ]; then
3+
if [ ! -r @TCL_CONFIG_SH@ ]; then
34
echo "@TCL_CONFIG_SH@ not found"
45
echo "I need this file! Please make a symbolic link to this file"
56
echo "and start make again."
67
exit 1
78
fi
89

10+
# Source the file to obtain the correctly expanded variable definitions
11+
. @TCL_CONFIG_SH@
12+
13+
# Read the file a second time as an easy way of getting the list of variable
14+
# definitions to output.
915
cat @TCL_CONFIG_SH@ |
10-
egrep '^TCL_' |
11-
while read inp
16+
egrep '^TCL_|^TK_' |
17+
sed 's/^\([^=]*\)=.*$/\1/' |
18+
while read var
1219
do
13-
eval eval echo $inp
20+
eval echo "\"$var = \$$var\""
1421
done >Makefile.tcldefs
1522

1623
exit 0
Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,23 @@
1+
#! /bin/sh
12

2-
if [ ! -f @TK_CONFIG_SH@ ]; then
3+
if [ ! -r @TK_CONFIG_SH@ ]; then
34
echo "@TK_CONFIG_SH@ not found"
45
echo "I need this file! Please make a symbolic link to this file"
56
echo "and start make again."
67
exit 1
78
fi
89

10+
# Source the file to obtain the correctly expanded variable definitions
911
. @TK_CONFIG_SH@
1012

13+
# Read the file a second time as an easy way of getting the list of variable
14+
# definitions to output.
1115
cat @TK_CONFIG_SH@ |
12-
egrep '^TK_' |
13-
while read inp
16+
egrep '^TCL_|^TK_' |
17+
sed 's/^\([^=]*\)=.*$/\1/' |
18+
while read var
1419
do
15-
eval eval echo $inp
20+
eval echo "\"$var = \$$var\""
1621
done >Makefile.tkdefs
1722

1823
exit 0

src/pl/tcl/mkMakefile.tcldefs.sh.in

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,23 @@
1+
#! /bin/sh
12

2-
if [ ! -f @TCL_CONFIG_SH@ ]; then
3+
if [ ! -r @TCL_CONFIG_SH@ ]; then
34
echo "@TCL_CONFIG_SH@ not found"
45
echo "I need this file! Please make a symbolic link to this file"
56
echo "and start make again."
67
exit 1
78
fi
89

10+
# Source the file to obtain the correctly expanded variable definitions
11+
. @TCL_CONFIG_SH@
12+
13+
# Read the file a second time as an easy way of getting the list of variable
14+
# definitions to output.
915
cat @TCL_CONFIG_SH@ |
1016
egrep '^TCL_|^TK_' |
11-
while read inp
17+
sed 's/^\([^=]*\)=.*$/\1/' |
18+
while read var
1219
do
13-
eval eval echo $inp
20+
eval echo "\"$var = \$$var\""
1421
done >Makefile.tcldefs
1522

1623
exit 0

0 commit comments

Comments
 (0)