Author: sebor Date: Mon Sep 19 10:02:34 2005 New Revision: 290201 URL: http://svn.apache.org/viewcvs?rev=290201&view=rev Log: 2005-09-19 Martin Sebor STDCXX-26 * libc_decl.sh: On Solaris, used the POSIX basename in /usr/xpg4/bin/ rather than the one in /usr/bin to avoid interpreting the suffix in a special way. Modified: incubator/stdcxx/trunk/etc/config/src/libc_decl.sh Modified: incubator/stdcxx/trunk/etc/config/src/libc_decl.sh URL: http://svn.apache.org/viewcvs/incubator/stdcxx/trunk/etc/config/src/libc_decl.sh?rev=290201&r1=290200&r2=290201&view=diff ============================================================================== --- incubator/stdcxx/trunk/etc/config/src/libc_decl.sh (original) +++ incubator/stdcxx/trunk/etc/config/src/libc_decl.sh Mon Sep 19 10:02:34 2005 @@ -1,6 +1,6 @@ #!/bin/sh # -# $Id: //stdlib/dev/etc/stdlib/config/src/libc_decl.sh#38 $ +# $Id$ # ############################################################################## # @@ -20,6 +20,16 @@ output=/dev/tty logfile=/dev/tty +OSNAME=`uname -s` + +if [ $OSNAME = "SunOS" -a -x /usr/xpg4/bin/basename ]; then + # use the POSIX basename rather than the one in /usr/bin + # to avoid interpreting the suffix in a special way + basename=/usr/xpg4/bin/basename +else + basename=basename +fi + [ ! -d "$TMPDIR" ] && TMPDIR=/tmp # set the output file if specified, otherwise use the console @@ -66,7 +76,6 @@ capitalize='sed y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/' - ############################################################################## # determine whether each header exists and its full pathname @@ -74,7 +83,7 @@ for h in $hdrs ; do - hdr_base=`basename $h .h` + hdr_base=`${basename} $h \.h` hdr=$h if [ "$hdr_base" = "$h" ] ; then