From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: james Newsgroups: gmane.lisp.guile.user Subject: Re: Scripting for installing a module Date: Sun, 3 Jul 2022 08:37:16 +0100 Message-ID: <20220703073716.afzy7e4srw6hbg54@arch-surface> References: <20220701171539.uuwwdnvtkvsfetc4@jamescrake-meraniarch> <7c8a83de-85d3-60b3-eb0d-98e54ba27316@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="30461"; mail-complaints-to="usenet@ciao.gmane.io" Cc: guile-user@gnu.org To: Matt Wette Original-X-From: guile-user-bounces+guile-user=m.gmane-mx.org@gnu.org Sun Jul 03 09:37:45 2022 Return-path: Envelope-to: guile-user@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1o7uAr-0007j5-7q for guile-user@m.gmane-mx.org; Sun, 03 Jul 2022 09:37:45 +0200 Original-Received: from localhost ([::1]:47420 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1o7uAp-0004Dg-SI for guile-user@m.gmane-mx.org; Sun, 03 Jul 2022 03:37:43 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:47130) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o7uAV-0004DI-Jf for guile-user@gnu.org; Sun, 03 Jul 2022 03:37:23 -0400 Original-Received: from [178.62.35.155] (port=36630 helo=jamescm.co.uk) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o7uAQ-0004vc-TC for guile-user@gnu.org; Sun, 03 Jul 2022 03:37:20 -0400 Original-Received: from localhost (host-78-149-194-133.as13285.net [78.149.194.133]) by jamescm.co.uk (Postfix) with ESMTPSA id D48D460F14; Sun, 3 Jul 2022 07:37:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=jamescm.co.uk; s=mail; t=1656833836; bh=8bu01hHfrWocoI4cgBZ1HEW4FJ4QopQp4vXxy7zcEAc=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Mb+Po1jKM7DCXmjuoN7GwtEX57SN9hlkASZqbZHrc7H5YvcWX+cYxUjEEY+8EvWEs R+mA6t+ZB8otLL487ZcCiXG1+ga87rAsRZWVSz01rI48pon71cnMZsGcQ0dDv0hkVA wqiBqftvLNYv+zaS7zIF20dJM7O+Q1xMX4N3+84xq/RZ0LlCsWkF58+lcLdZcTlPyu uGPKdX/kWRmAM9JxrV7qxEezOuHVV1p6vGCTp7TvM1aid0sv10J+6mLPWIyW4hwpYG z9LG3SXzk3i8H5NEYwOhjrlLmjao+sAc+TZPJoaiIOwPoyhFMQ69WEi1mOU612HFwF /TC1vv8tXTuIQ== Content-Disposition: inline In-Reply-To: <7c8a83de-85d3-60b3-eb0d-98e54ba27316@gmail.com> X-Host-Lookup-Failed: Reverse DNS lookup failed for 178.62.35.155 (failed) Received-SPF: pass client-ip=178.62.35.155; envelope-from=james@jamescm.co.uk; helo=jamescm.co.uk X-Spam_score_int: -8 X-Spam_score: -0.9 X-Spam_bar: / X-Spam_report: (-0.9 / 5.0 requ) BAYES_00=-1.9, DKIM_INVALID=0.1, DKIM_SIGNED=0.1, RDNS_NONE=0.793, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1.29 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-mx.org@gnu.org Original-Sender: "guile-user" Xref: news.gmane.io gmane.lisp.guile.user:18387 Archived-At: On 22/07/02 02:09pm, Matt Wette wrote: > Another option is some variant of > >     $ sudo cp xyz/file.scm `guile -c '(display > (%global-site-dir))'`/xyz/file.scm > > On 7/1/22 10:15 AM, James Crake-Merani wrote: > > guile -c '(display (%global-site-dir))'Hello, > > > > I was just wondering what approach people tend to take when writing a script which installs a module onto the load-path. I understand this path might be different on different machines so how do you make sure the module is installed in the right path? Would you use something like a Makefile? > > > > Thanks. > > > > Hi, Something like that would probably work as well. I might give it a go. Thanks for your response.