Return-Path: Delivered-To: apmail-incubator-stdcxx-commits-archive@www.apache.org Received: (qmail 64892 invoked from network); 19 Sep 2005 17:02:43 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 19 Sep 2005 17:02:43 -0000 Received: (qmail 57538 invoked by uid 500); 19 Sep 2005 17:02:43 -0000 Delivered-To: apmail-incubator-stdcxx-commits-archive@incubator.apache.org Received: (qmail 57507 invoked by uid 500); 19 Sep 2005 17:02:42 -0000 Mailing-List: contact stdcxx-commits-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: stdcxx-dev@incubator.apache.org Delivered-To: mailing list stdcxx-commits@incubator.apache.org Received: (qmail 57494 invoked by uid 500); 19 Sep 2005 17:02:42 -0000 Delivered-To: apmail-incubator-stdcxx-cvs@incubator.apache.org Received: (qmail 57491 invoked by uid 99); 19 Sep 2005 17:02:42 -0000 X-ASF-Spam-Status: No, hits=-9.8 required=10.0 tests=ALL_TRUSTED,NO_REAL_NAME X-Spam-Check-By: apache.org Received: from [209.237.227.194] (HELO minotaur.apache.org) (209.237.227.194) by apache.org (qpsmtpd/0.29) with SMTP; Mon, 19 Sep 2005 10:02:41 -0700 Received: (qmail 64885 invoked by uid 65534); 19 Sep 2005 17:02:39 -0000 Message-ID: <20050919170239.64884.qmail@minotaur.apache.org> Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r290201 - /incubator/stdcxx/trunk/etc/config/src/libc_decl.sh Date: Mon, 19 Sep 2005 17:02:39 -0000 To: stdcxx-cvs@incubator.apache.org From: sebor@apache.org X-Mailer: svnmailer-1.0.5 X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N 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