mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-04-15 08:29:45 +00:00
Fix libedit build on solaris (add workaround to libedit/src/makelist to use /usr/xpg4/bin/tr which properly supports [:lower:] [:upper:])
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@8389 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
8bb2182db1
commit
91d2ca2920
@ -36,6 +36,14 @@
|
|||||||
# makelist.sh: Automatically generate header files...
|
# makelist.sh: Automatically generate header files...
|
||||||
|
|
||||||
AWK=awk
|
AWK=awk
|
||||||
|
TR=tr
|
||||||
|
|
||||||
|
# workaround for solaris
|
||||||
|
if [ -x /usr/xpg4/bin/tr ]
|
||||||
|
then
|
||||||
|
TR=/usr/xpg4/bin/tr
|
||||||
|
fi
|
||||||
|
|
||||||
USAGE="Usage: $0 -h|-e|-fc|-fh|-bc|-bh|-m <filenames>"
|
USAGE="Usage: $0 -h|-e|-fc|-fh|-bc|-bh|-m <filenames>"
|
||||||
|
|
||||||
if [ "x$1" = "x" ]
|
if [ "x$1" = "x" ]
|
||||||
@ -140,7 +148,7 @@ case $FLAG in
|
|||||||
#
|
#
|
||||||
-fh)
|
-fh)
|
||||||
cat $FILES | $AWK '/el_action_t/ { print $3 }' | \
|
cat $FILES | $AWK '/el_action_t/ { print $3 }' | \
|
||||||
sort | tr '[:lower:]' '[:upper:]' | $AWK '
|
sort | $TR '[:lower:]' '[:upper:]' | $AWK '
|
||||||
BEGIN {
|
BEGIN {
|
||||||
printf("/* Automatically generated file, do not edit */\n");
|
printf("/* Automatically generated file, do not edit */\n");
|
||||||
printf("#ifndef _h_fcns_c\n#define _h_fcns_c\n");
|
printf("#ifndef _h_fcns_c\n#define _h_fcns_c\n");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user