blob: 3a865355a6a9b2f1d6b0891c6e7e45ddb5a6608d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
#!/bin/bash
install_path="/usr/share/starbound"
config_path="$HOME/.config/starbound"
tmpdir=$(mktemp -d -p /tmp starbound-${USER}-XXXXXXXX)
if [[ ! -d "$config_path" ]]
then
mkdir -p "$config_path"
cp -r "$install_path/"{storage,mods} "$config_path/"
fi
cd "$tmpdir"
ln -s "$install_path/"{assets,tiled} .
ln -s "$config_path/"{storage,mods} .
mkdir linux
cd linux
# if anyone as an idea how to make this efficient please tell me (sowieso@dukun.de)
# is there any way to make an executable aware of the symlink-path?
for file in "$install_path"/linux/*
do
cp "$file" .
done
primusrun=""
if which primusrun &> /dev/null; then primusrun=$(which primusrun); fi
$primusrun ./run-client.sh
rm -r $tmpdir
|