mirror of
https://github.com/aelve/guide.git
synced 2024-12-25 13:51:45 +03:00
21 lines
320 B
Bash
Executable File
21 lines
320 B
Bash
Executable File
#!/bin/bash
|
|
set -ev
|
|
|
|
# Test that the official database can be loaded
|
|
|
|
if [ -d "state" ]; then
|
|
mv state state-old
|
|
fi
|
|
|
|
git clone --depth 1 https://github.com/aelve/guide-database.git
|
|
mv guide-database state
|
|
|
|
cabal build
|
|
dist/build/guide/guide --dry-run
|
|
|
|
rm -rf state
|
|
|
|
if [ -d "state-old" ]; then
|
|
mv state-old state
|
|
fi
|