guile-gtk-general
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

guile-gnome-platform wrong interpreter in scripts


From: Greg Troxel
Subject: guile-gnome-platform wrong interpreter in scripts
Date: Fri, 20 Apr 2007 20:46:56 -0400
User-agent: Gnus/5.110006 (No Gnus v0.6) Emacs/21.4 (berkeley-unix)

The (NetBSD) pkgsrc entry has started to fail to build, complaining
about gnome-vfs functions that I think might be gone in new GNOME.


I followed the instructions at:

  http://www.gnu.org/software/guile-gnome/dev/

But got

$ scripts/pull-packages guile-gnome-platform
bash: scripts/pull-packages: /bin/bash: bad interpreter: No such file or 
directory

The solution is to change to /bin/sh; POSIX doesn't say that bash is
there :-)  Seriously, /bin/bash is a Linuxism, and other systems don't
have it (even though bash is certainly on many NetBSD systems as
/usr/pkg/bin/bash, and I use it for my shell.)

I also looked for the use of == with test, but didn't find any of
those.  Here's a patch to make the scripts more portable:


=== modified file 'scripts/commit-from-changelog'
--- scripts/commit-from-changelog       2006-12-08 12:09:34 +0000
+++ scripts/commit-from-changelog       2007-04-21 00:44:42 +0000
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/bin/sh
 
 mod=$(basename $(cd . && pwd))
 log=`bzr diff ChangeLog | egrep '^\+' | tail -n +2 | cut -d+ -f2`

=== modified file 'scripts/get-packages'
--- scripts/get-packages        2006-08-13 17:19:20 +0000
+++ scripts/get-packages        2007-04-21 00:44:52 +0000
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/bin/sh
 
 root=`dirname $0`/..
 avail_packages=""

=== modified file 'scripts/maint/add-changelog-entry'
--- scripts/maint/add-changelog-entry   2006-12-15 14:30:59 +0000
+++ scripts/maint/add-changelog-entry   2007-04-21 00:45:34 +0000
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/bin/sh
 
 file=$1
 comment=$2

=== modified file 'scripts/maint/changelog-log-release'
--- scripts/maint/changelog-log-release 2006-12-15 14:30:59 +0000
+++ scripts/maint/changelog-log-release 2007-04-21 00:45:03 +0000
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/bin/sh
 
 dir=$1
 package=$2

=== modified file 'scripts/maint/commit-release'
--- scripts/maint/commit-release        2006-12-15 14:30:59 +0000
+++ scripts/maint/commit-release        2007-04-21 00:45:17 +0000
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/bin/sh
 
 set -e
 

=== modified file 'scripts/maint/make-release-note'
--- scripts/maint/make-release-note     2006-12-15 14:30:59 +0000
+++ scripts/maint/make-release-note     2007-04-21 00:45:20 +0000
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/bin/sh
 
 package=$1
 version=$2

=== modified file 'scripts/maint/prepare-news-entry'
--- scripts/maint/prepare-news-entry    2006-12-15 14:30:59 +0000
+++ scripts/maint/prepare-news-entry    2007-04-21 00:45:23 +0000
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/bin/sh
 
 set -e
 

=== modified file 'scripts/maint/prepare-release'
--- scripts/maint/prepare-release       2006-12-15 14:30:59 +0000
+++ scripts/maint/prepare-release       2007-04-21 00:45:25 +0000
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/bin/sh
 
 package=$1
 version=$2

=== modified file 'scripts/maint/upload-to-ftp.gnu.org'
--- scripts/maint/upload-to-ftp.gnu.org 2006-12-18 01:04:44 +0000
+++ scripts/maint/upload-to-ftp.gnu.org 2007-04-21 00:45:30 +0000
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/bin/sh
 
 set -e
 

=== modified file 'scripts/pull-packages'
--- scripts/pull-packages       2006-08-13 17:19:20 +0000
+++ scripts/pull-packages       2007-04-21 00:44:30 +0000
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/bin/sh
 
 root=`cd $(dirname $0)/.. && pwd`
 if test -n "$2"; then

=== modified file 'scripts/push-packages'
--- scripts/push-packages       2006-08-13 17:19:20 +0000
+++ scripts/push-packages       2007-04-21 00:45:34 +0000
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/bin/sh
 
 root=`cd $(dirname $0)/.. && pwd`
 if test -z "$1"; then





reply via email to

[Prev in Thread] Current Thread [Next in Thread]