summaryrefslogtreecommitdiff
path: root/bin/load.sh
blob: 9c810b7cc557b65ccea53f203552e5d3d20af968 (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
#!/bin/bash

# goto root dir (this script resides in src)
BASEDIR=`dirname $(readlink -f $0)`
cd ${BASEDIR}/../

WGET=$(which wget)
URL="http://pluto.fsinf.at/~astra/config/"
FILE="skel.tar.gz"
CLEAN=".vim"

# fetch file from server
$WGET -q "${URL}${FILE}"

if [ $1 -eq "clean"]; then
	for i in $CLEAN
	do
		echo "rm -rf ${i}"
	done
fi

cd ~
tar -xzf $FILE --strip-components=1
rm $FILE