guile-devel
[Top][All Lists]
Advanced

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

Re: pre-inst-guile


From: Rob Browning
Subject: Re: pre-inst-guile
Date: Tue, 05 Feb 2002 15:59:41 -0600
User-agent: Gnus/5.090006 (Oort Gnus v0.06) Emacs/21.1 (i386-debian-linux-gnu)

Thien-Thi Nguyen <address@hidden> writes:

>    From: Rob Browning <address@hidden>
>    Date: Sun, 13 Jan 2002 12:17:07 -0600
>
>    ugly, but effective.
>
> are these scripts publically available?

Not at the moment, but you're welcome to them.

Here's the current iteration of my guile-env and gwrap-env scripts (I
also have guppi-env, gnc-env, etc.  I'm feeling the need to re-work
all this though and to figure out some way to unify the building of
all my development stuff...).  For this to work right for development
of programs that depend on guile on a a Debian system at right now,
you must purge libguile-dev -- otherwise other foo-config scripts may
specify -I/usr/include or -L/usr/lib and give you the wrong guile
files.

  #!/bin/bash

  FLAVOR="$1"

  test -z "${FLAVOR}" && exit 1

  if ! test -x /home/rlb/opt/guile-${FLAVOR}/bin/guile
  then
    echo "guile flavor ${FLAVOR} does not exist"
    exit 1
  fi

  export LD_LIBRARY_PATH="/home/rlb/opt/guile-${FLAVOR}/lib:${LD_LIBRARY_PATH}"
  export PATH="/home/rlb/opt/guile-${FLAVOR}/bin:${PATH}"

  #echo PATH=${PATH}
  #echo LD_LIBRARY_PATH=${LD_LIBRARY_PATH}

  shift 1

  exec "$@"

The g-wrap script takes a guile flavor and a g-wrap flavor.  I waver
over how I think things should be invoked (i.e. should you have to
chain scripts, or should gwrap-env handle calling guile-env
internally, etc...)

  #!/bin/bash

  GWRAP_FLAVOR="$1"
  shift 1
  GUILE_FLAVOR="$1"
  shift 1

  test -z "${GWRAP_FLAVOR}" && exit 1
  test -z "${GUILE_FLAVOR}" && exit 1

  GWRAP_DIR="/home/rlb/opt/g-wrap-${GWRAP_FLAVOR}-w-guile-${GUILE_FLAVOR}"

  if [ "${GUILE_FLAVOR}" = "1.3.4" ]
  then
    export 
LD_LIBRARY_PATH="${GWRAP_DIR}/share/guile/g-wrapped:${LD_LIBRARY_PATH}"
  fi

  export LD_LIBRARY_PATH="${GWRAP_DIR}/lib:${LD_LIBRARY_PATH}"
  export PATH="${GWRAP_DIR}/bin:${PATH}"
  export GNOME_PATH="${GWRAP_DIR}:${GNOME_PATH}"
  export GUILE_LOAD_PATH=${GUILE_LOAD_PATH}:"${GWRAP_DIR}/share/guile"

  exec guile-env ${GUILE_FLAVOR} "$@"

Hope this helps...

-- 
Rob Browning
rlb @defaultvalue.org, @linuxdevel.com, and @debian.org
Previously @cs.utexas.edu
GPG=1C58 8B2C FB5E 3F64 EA5C  64AE 78FE E5FE F0CB A0AD



reply via email to

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