forked from FeelTrainCoop/shortcut
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.sh
executable file
·42 lines (39 loc) · 1.1 KB
/
setup.sh
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
34
35
36
37
38
39
40
41
42
# Setup script for Shortcut
# This creates local versions of template files, but
# only if those local versions don't already exist. It won't
# overwrite your custom settings.
cd client/src/config/
for f in *.js.template; do
if [ ! -f "${f/.js.template/.js}" ]; then
echo "File ${f/.js.template/.js} not found, creating."
cp "$f" "${f/.js.template/.js}";
fi
done
cd ../images/
for f in *.png.template; do
if [ ! -f "${f/.png.template/.png}" ]; then
echo "File ${f/.png.template/.png} not found, creating."
cp "$f" "${f/.png.template/.png}";
fi
done
cd ../styles/
for f in *.scss.template; do
if [ ! -f "${f/.scss.template/.scss}" ]; then
echo "File ${f/.scss.template/.scss} not found, creating."
cp "$f" "${f/.scss.template/.scss}";
fi
done
cd ../../../server/
if [ ! -f ".env" ]; then
echo "File .env not found, creating."
cp .env-template .env;
fi
echo "Done creating local versions of template files."
# Download and install Gentle
cd ../
mkdir -p server/external
cd server/external
git clone https://github.com/feeltraincoop/gentle.git
cd gentle
git checkout master
./install.sh