[banshee] [darwin] bundle launcher rewrites etc/*.in files
- From: Aaron Bockover <abock src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [banshee] [darwin] bundle launcher rewrites etc/*.in files
- Date: Tue, 19 Jan 2010 16:43:10 +0000 (UTC)
commit 8254f34a563c72e08b3eb79d8e1aa54078e52c9f
Author: Aaron Bockover <abockover novell com>
Date: Tue Jan 19 11:24:26 2010 -0500
[darwin] bundle launcher rewrites etc/*.in files
Any .in files in etc/ will be rewritten with instances
of ${APP_RESOURCES} replaced by the Contents/Resources
directory of the bundle.
src/Clients/Booter/banshee-1.darwin.in | 8 +++++++-
1 files changed, 7 insertions(+), 1 deletions(-)
---
diff --git a/src/Clients/Booter/banshee-1.darwin.in b/src/Clients/Booter/banshee-1.darwin.in
index ffcad77..c1265b1 100644
--- a/src/Clients/Booter/banshee-1.darwin.in
+++ b/src/Clients/Booter/banshee-1.darwin.in
@@ -1,4 +1,4 @@
-#!/usr/bin/env bash
+#!/bin/bash
APP_ROOT="$PWD/$(dirname "$0")"
for ((i=0; i<2; i++)); do APP_ROOT="$(dirname "$APP_ROOT")"; done
@@ -42,4 +42,10 @@ for arg in $*; do
fi
done
+for file in $(find $ETC_DIR -name \*.in); do
+ sed "s|\${APP_RESOURCES}|${RES_DIR}|g" \
+ < "${file}" \
+ > "${file%.in}"
+done
+
exec -a $BANSHEE_EXEC_NAME $MONO_BIN $MONO_OPTIONS $MONO_EXE $BANSHEE_OPTIONS
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]