cdaniels.net/bin/fetch_apps -rwxr-xr-x 586 bytes View raw
                                                                                
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
#!/bin/sh

# this should be called after buildit, and is optional
#
# this script fetches additional webapps and installs them into the apps/
# folder.

cd "$(dirname "$0")"
cd ..
INSTALL_ROOT="$(pwd)"
TEMPDIR="$(mktemp -d)"

# textvis
cd "$TEMPDIR"
git clone "git://github.com/charlesdaniels/textvis.git"
cd textvis
VERS="$(git log --format=oneline | head -n 1)"
cd "$INSTALL_ROOT"
mkdir -p ./dst/app/textvis/
cp -r "$TEMPDIR/textvis/src"/* ./dst/app/textvis/
echo "$VERS" > ./dst/app/textvis/build.txt
date >> ./dst/app/textvis/build.txt
rm -rf "$TEMPDIR/textvis/"

rm -rf "$TEMPDIR"