Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitf4add18

Browse files
committed
Fix quoting problems in mkMakefile.tcldefs.sh.in and
mkMakefile.tkdefs.sh.in.
1 parent1f14a9d commitf4add18

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-
whileread inp
16+
egrep'^TCL_|^TK_'|
17+
sed's/^\([^=]*\)=.*$/\1/'|
18+
whileread var
1219
do
13-
evalevalecho$inp
20+
evalecho"\"$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-
whileread inp
16+
egrep'^TCL_|^TK_'|
17+
sed's/^\([^=]*\)=.*$/\1/'|
18+
whileread var
1419
do
15-
evalevalecho$inp
20+
evalecho"\"$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-
whileread inp
17+
sed's/^\([^=]*\)=.*$/\1/'|
18+
whileread var
1219
do
13-
evalevalecho$inp
20+
evalecho"\"$var =\$$var\""
1421
done>Makefile.tcldefs
1522

1623
exit 0

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp