[longomatch] Add environment script
- From: Andoni Morales Alastruey <amorales src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [longomatch] Add environment script
- Date: Sat, 16 Oct 2010 17:51:37 +0000 (UTC)
commit 3b6c6fbdf3c55f30a373c174bc4e67500f321ce7
Author: Andoni Morales Alastruey <ylatuya gmail com>
Date: Tue Oct 12 17:25:22 2010 +0200
Add environment script
Makefile.am | 4 +++-
configure.ac | 2 +-
env.in | 8 ++++++++
3 files changed, 12 insertions(+), 2 deletions(-)
---
diff --git a/Makefile.am b/Makefile.am
index 48b1d80..c32799b 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -1,5 +1,7 @@
-EXTRA_DIST = expansions.m4
+EXTRA_DIST =\
+ expansions.m4 \
+ env.in
#Warning: This is an automatically generated file, do not edit!
if ENABLE_DEBUG
diff --git a/configure.ac b/configure.ac
index d57a5e9..426fcba 100644
--- a/configure.ac
+++ b/configure.ac
@@ -113,7 +113,7 @@ AC_CHECK_FUNCS([strchr strstr])
dnl package checks, per config
-
+AC_CONFIG_FILES([env], [chmod +x env])
AC_CONFIG_FILES([
LongoMatch/Makefile
CesarPlayer/Makefile
diff --git a/env.in b/env.in
new file mode 100755
index 0000000..c71f3f6
--- /dev/null
+++ b/env.in
@@ -0,0 +1,8 @@
+#!/bin/bash
+
+build_dir=`cd $(dirname $0) && pwd`
+
+export PATH=$build_dir/LongoMatch/bin/Release:$PATH
+export LD_LIBRARY_PATH=$build_dir/libcesarplayer/src/.libs${LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH}
+
+exec "$@"
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]