Re: source_path=${0%configure}
Ken Beesley <[email protected]>
| Newsgroups | gmane.editors.qemacs.devel |
|---|---|
| Message-ID | <[email protected]> |
RE: qemacs configure file problem
Je pense avoir trouvé la solution pour Solaris/SunOS
I think I've found the solution for Solaris/SunOS
# these two lines don't work for my SunOS/Solaris sh
#source_path=${0%configure}
#source_path=${source_path%/}
# substitute lines by Ken Beesley
source_path=`echo $0 | sed -e "s/configure$//"`
source_path=`echo $source_path | sed -e "s/\/$//"`
Ken
> From: [email protected]
> Subject: Qemacs-devel Digest, Vol 4, Issue 3
> To: [email protected]
> X-BeenThere: [email protected]
> X-Mailman-Version: 2.1b5
> List-Id: <qemacs-devel.nongnu.org>
> List-Help: <mailto:[email protected]?subject=help>
> List-Post: <mailto:[email protected]>
> List-Subscribe: <http://mail.nongnu.org/mailman/listinfo/qemacs-devel>,
<mailto:[email protected]?subject=subscribe>
> List-Archive: <http://mail.gnu.org/pipermail/qemacs-devel>
> List-Unsubscribe: <http://mail.nongnu.org/mailman/listinfo/qemacs-devel>,
<mailto:[email protected]?subject=unsubscribe>
> Date: Wed, 30 Apr 2003 07:02:01 -0400
> X-Virus-Scanned: by amavisd-new
>
> Send Qemacs-devel mailing list submissions to
> [email protected]
>
> To subscribe or unsubscribe via the World Wide Web, visit
> http://mail.nongnu.org/mailman/listinfo/qemacs-devel
> or, via email, send a message with subject or body 'help' to
> [email protected]
>
> You can reach the person managing the list at
> [email protected]
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of Qemacs-devel digest..."
>
>
> Today's Topics:
>
> 1. source_path=${0%configure} (Ken Beesley)
>
>
> ----------------------------------------------------------------------
>
> Date: Wed, 30 Apr 2003 12:42:19 +0200 (MEST)
> From: Ken Beesley <[email protected]>
> To: [email protected]
> Subject: [Qemacs-devel] source_path=${0%configure}
> Message-ID: <[email protected]>
> Content-Type: TEXT/plain; charset=ISO-8859-1
> MIME-Version: 1.0
> Content-Transfer-Encoding: QUOTED-PRINTABLE
> Precedence: list
> Reply-To: Ken Beesley <[email protected]>
> Message: 1
>
>
> Je viens de t=E9l=E9charger qemacs-0.3.1 sur mon system (SunOS).
> J'ai essay=E9
>
> =09./configure --help
> =09
> mais mon Bourne shell (sh) n'aime pas la ligne
>
> source_path=3D${0%configure}
>
> et r=E9pond
>
> ./configure: bad substitution
>
> et effectivement, je ne trouve pas de documentation sur
> l'usage de '%' dans une substitution.
>
> Quelle est mon probl=E8me?
>
> ***********
>
> I've just downloaded qemacs-0.3.1 to my SunOS system.
> I tried
>
> =09./configure --help
> =09
> but my Bourne shell (sh) choked on the line
>
> source_path=3D${0%configure}
>
> and returned the message
>
> ./configure: bad substitution
>
> I can't seem to find any documentation on the use of '%'
> in a substitution.
>
> What do I need to do?
>
> Thanks/Merci,
>
> Ken
>
>
> **********************************************************************
> Kenneth R. [email protected]=20
> Xerox Research Centre Europe Tel from France: 04 76 61 50 64 =09
> 6, chemin de Maupertuis=09=09Tel from Abroad: +33 4 76 61 50 64
> 38240 MEYLAN=09=09=09Fax from France: 04 76 61 50 99
> France=09=09=09=09Fax from Abroad: +33 4 76 61 50 99
>
> XRCE page: http://www.xrce.xerox.com
> Personal page: http://www.xrce.xerox.com/people/beesley/beesley.html
> **********************************************************************
>
>
>
> ------------------------------
>
> _______________________________________________
> Qemacs-devel mailing list
> [email protected]
> http://mail.nongnu.org/mailman/listinfo/qemacs-devel
>
>
> End of Qemacs-devel Digest, Vol 4, Issue 3
> ******************************************
**********************************************************************
Kenneth R. Beesley [email protected]
Xerox Research Centre Europe Tel from France: 04 76 61 50 64
6, chemin de Maupertuis Tel from Abroad: +33 4 76 61 50 64
38240 MEYLAN Fax from France: 04 76 61 50 99
France Fax from Abroad: +33 4 76 61 50 99
XRCE page: http://www.xrce.xerox.com
Personal page: http://www.xrce.xerox.com/people/beesley/beesley.html
**********************************************************************