Last change
on this file since 11 was
11,
checked in by pooh, 21 years ago
|
* empty log message *
|
-
Property svn:eol-style set to
native
-
Property svn:keywords set to
Author Date Id Revision
|
File size:
543 bytes
|
Line | |
---|
1 | #!/bin/sh |
---|
2 | |
---|
3 | config_functions=1 |
---|
4 | |
---|
5 | if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then |
---|
6 | if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then |
---|
7 | ac_n= ac_c=' |
---|
8 | ' ac_t=' ' |
---|
9 | else |
---|
10 | ac_n=-n ac_c= ac_t= |
---|
11 | fi |
---|
12 | else |
---|
13 | ac_n= ac_c='\c' ac_t= |
---|
14 | fi |
---|
15 | |
---|
16 | echon () |
---|
17 | { |
---|
18 | echo $ac_n "$*"$ac_c |
---|
19 | } |
---|
20 | |
---|
21 | merge_lists () |
---|
22 | { |
---|
23 | res="$1" |
---|
24 | for arg1 in $2; do |
---|
25 | match=no |
---|
26 | for arg2 in $1; do |
---|
27 | if [ "$arg1" = "$arg2" ]; then |
---|
28 | match=yes |
---|
29 | fi |
---|
30 | done |
---|
31 | if [ "$match" = "no" ]; then res="$res $arg1"; fi |
---|
32 | done |
---|
33 | echo $res |
---|
34 | } |
---|
35 | |
---|
Note: See
TracBrowser
for help on using the repository browser.