mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-08 06:48:28 +00:00
56d0f35771
do not force the usage of gcc 3.4, the ports are now gcc 4 ready
38 lines
1.1 KiB
Plaintext
38 lines
1.1 KiB
Plaintext
--- ember.in.orig Tue Jul 31 06:08:49 2007
|
|
+++ ember.in Tue Jul 31 06:10:35 2007
|
|
@@ -1,4 +1,4 @@
|
|
-#!/bin/bash
|
|
+#!/bin/sh
|
|
|
|
|
|
|
|
@@ -40,8 +40,9 @@
|
|
# Setup variables
|
|
|
|
#get the dir where this script resides in
|
|
-path=`FindPath`
|
|
-test=${path[0]}
|
|
+set -- $(FindPath)
|
|
+path=$*
|
|
+test=$1
|
|
#if [ "$fullpath" = "" ]; then
|
|
if [ "$test" = "." ]; then
|
|
path=${PWD}
|
|
@@ -95,7 +96,7 @@
|
|
|
|
if [ ! -d $media_dir ] ; then
|
|
echo "Copying dynamic data to user directory"
|
|
- cp -dpR $media_user_dir $media_dir
|
|
+ cp -pR $media_user_dir $media_dir
|
|
fi
|
|
|
|
#Let's write the version number so that we can do some useful thing with it in the future. (Like remove old media dirs.)
|
|
@@ -104,4 +105,6 @@
|
|
# Execute real ember binary
|
|
echo "Starting Ember...."
|
|
#we have to do the LD_PRELOAD thing, because else at least I get an error: libnvidia-tls.so.1: cannot handle TLS data /ehj
|
|
-LD_PRELOAD=libGL.so.1 $bindir/ember.bin --home $homedata
|
|
+[ ! -f $homedata/plugins.cfg ] && cp $etcdir/plugins.cfg $homedata/
|
|
+[ ! -f $homedata/resources.cfg ] && cp $etcdir/resources.cfg $homedata/
|
|
++LD_PRELOAD=libGL.so.1 $bindir/ember.bin
|