From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Paul Emsley Newsgroups: gmane.lisp.guile.user Subject: Re: Packaging a guile-enabled binary Date: 04 May 2004 13:07:34 +0100 Sender: guile-user-bounces+guile-user=m.gmane.org@gnu.org Message-ID: <1083672454.7480.41.camel@maybelline> References: <20040502202152.73706.qmail@web14304.mail.yahoo.com> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1083675310 26552 80.91.224.253 (4 May 2004 12:55:10 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 4 May 2004 12:55:10 +0000 (UTC) Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Tue May 04 14:54:46 2004 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1BKzRe-0002N3-00 for ; Tue, 04 May 2004 14:54:46 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.30) id 1BKzJU-0000Nb-Bd for guile-user@m.gmane.org; Tue, 04 May 2004 08:46:20 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.30) id 1BKyzR-0005cQ-MI for guile-user@gnu.org; Tue, 04 May 2004 08:25:37 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.30) id 1BKypG-0003r6-Ss for guile-user@gnu.org; Tue, 04 May 2004 08:15:37 -0400 Original-Received: from [62.253.162.44] (helo=mta04-svc.ntlworld.com) by monty-python.gnu.org with esmtp (Exim 4.30) id 1BKyjv-0003BD-NG for guile-user@gnu.org; Tue, 04 May 2004 08:09:35 -0400 Original-Received: from maybelline ([81.101.237.109]) by mta04-svc.ntlworld.com (InterMail vM.4.01.03.37 201-229-121-137-20020806) with ESMTP id <20040504120847.DEXM9743.mta04-svc.ntlworld.com@maybelline> for ; Tue, 4 May 2004 13:08:47 +0100 Original-To: guile-user@gnu.org In-Reply-To: <20040502202152.73706.qmail@web14304.mail.yahoo.com> X-Mailer: Ximian Evolution 1.0.5 (1.0.5-4) X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1.4 Precedence: list List-Id: General Guile related discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-user-bounces+guile-user=m.gmane.org@gnu.org Xref: main.gmane.org gmane.lisp.guile.user:3152 X-Report-Spam: http://spam.gmane.org/gmane.lisp.guile.user:3152 On Sun, 2004-05-02 at 21:21, Mike Gran wrote: > I'm putting together a little graphical program whose deliverable > consists of a standard Linux binary (compiled C code) and a single > Guile script. The binary is the main executable. The Guile script > contains some configuration information, like a dot file, and some > high-level functions that are called by the C code. The compiled > binary requires the script to run successfully. > > Where's the best place for the Guile script? Best, in this case, means > most foolproof for the the desktop user that is going to download the > program as a pre-compiled package. Dot file? In the library? Is > there a "right" way or a "standard"? Presuming you are using GNU Autotools: I'd use put them in $(pkgdatadir) or $(pkgdatadir)/scheme. $(pkgdatadir) will expand to something like /usr/local/share/my-prog. I'd give gcc the extra argument: -DPKGDATADIR='"$(pkgdatadir)"' so that you can use PKGDATADIR in your c code to (for example) stat the scheme file (PKGDATADIR is just the directory, of course). Paul. p.s. GNU's not Linux. _______________________________________________ Guile-user mailing list Guile-user@gnu.org http://mail.gnu.org/mailman/listinfo/guile-user