File tree Expand file tree Collapse file tree 3 files changed +30
-11
lines changed Expand file tree Collapse file tree 3 files changed +30
-11
lines changed Original file line number Diff line number Diff line change
1
+ #! /bin/sh
1
2
2
- if [ ! -f @TCL_CONFIG_SH@ ]; then
3
+ if [ ! -r @TCL_CONFIG_SH@ ]; then
3
4
echo " @TCL_CONFIG_SH@ not found"
4
5
echo " I need this file! Please make a symbolic link to this file"
5
6
echo " and start make again."
6
7
exit 1
7
8
fi
8
9
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.
9
15
cat @TCL_CONFIG_SH@ |
10
- egrep ' ^TCL_' |
11
- while read inp
16
+ egrep ' ^TCL_|^TK_' |
17
+ sed ' s/^\([^=]*\)=.*$/\1/' |
18
+ while read var
12
19
do
13
- eval eval echo $inp
20
+ eval echo " \" $var = \$ $var \" "
14
21
done > Makefile.tcldefs
15
22
16
23
exit 0
Original file line number Diff line number Diff line change
1
+ #! /bin/sh
1
2
2
- if [ ! -f @TK_CONFIG_SH@ ]; then
3
+ if [ ! -r @TK_CONFIG_SH@ ]; then
3
4
echo " @TK_CONFIG_SH@ not found"
4
5
echo " I need this file! Please make a symbolic link to this file"
5
6
echo " and start make again."
6
7
exit 1
7
8
fi
8
9
10
+ # Source the file to obtain the correctly expanded variable definitions
9
11
. @TK_CONFIG_SH@
10
12
13
+ # Read the file a second time as an easy way of getting the list of variable
14
+ # definitions to output.
11
15
cat @TK_CONFIG_SH@ |
12
- egrep ' ^TK_' |
13
- while read inp
16
+ egrep ' ^TCL_|^TK_' |
17
+ sed ' s/^\([^=]*\)=.*$/\1/' |
18
+ while read var
14
19
do
15
- eval eval echo $inp
20
+ eval echo " \" $var = \$ $var \" "
16
21
done > Makefile.tkdefs
17
22
18
23
exit 0
Original file line number Diff line number Diff line change
1
+ #! /bin/sh
1
2
2
- if [ ! -f @TCL_CONFIG_SH@ ]; then
3
+ if [ ! -r @TCL_CONFIG_SH@ ]; then
3
4
echo " @TCL_CONFIG_SH@ not found"
4
5
echo " I need this file! Please make a symbolic link to this file"
5
6
echo " and start make again."
6
7
exit 1
7
8
fi
8
9
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.
9
15
cat @TCL_CONFIG_SH@ |
10
16
egrep ' ^TCL_|^TK_' |
11
- while read inp
17
+ sed ' s/^\([^=]*\)=.*$/\1/' |
18
+ while read var
12
19
do
13
- eval eval echo $inp
20
+ eval echo " \" $var = \$ $var \" "
14
21
done > Makefile.tcldefs
15
22
16
23
exit 0
You can’t perform that action at this time.
0 commit comments