summarylogtreecommitdiffstats
path: root/arachnowrap
blob: 40b64c8157f064dc985233dde893e58cb10a5575 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/usr/bin/bash
export LOCALCFGPATH=$HOME/.config/arachnotron/
export SYSTEMCFGPATH=/opt/arachnotron/
export CFGDIRNAME=config/
export IWAD_DIR=$LOCALCFGPATH/iwad

set -e

if test ! -d $LOCALCFGPATH
then
	mkdir -p $LOCALCFGPATH
fi
if test ! -d $LOCALCFGPATH/$CFGDIRNAME
then
	cd
	cp -r --no-preserve=mode,ownership $SYSTEMCFGPATH/$CFGDIRNAME $LOCALCFGPATH
	sed -i "s+USERPATH+$IWAD_DIR+g"  $LOCALCFGPATH/$CFGDIRNAME/settings.json
fi
cd $LOCALCFGPATH
$SYSTEMCFGPATH/arachnotron