summaryrefslogtreecommitdiff
path: root/build.sh
blob: d60d54ba75ab2bfe877424f5e5bbdfeabd1b4708 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/sh

if test `uname -s` = 'Darwin'; then
	SED=gsed
else
	SED=sed
fi

TEST_URL=`grep strus_url config.toml | cut -f 2 -d '"'`

rm -rf public
hugo -v -b http://www.andreasbaumann.cc
$SED -i "s@$TEST_URL@http://www.andreasbaumann.cc/strus/query/wwwandreasbaumanncc@g" \
	public/search/index.html