blob: 1a37399a11f46b478c802393c146eb50ee3bbbd7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
#!/bin/bash
cd "$(dirname "$0")"/.. || exit 1
if ! command -v composer >/dev/null; then
echo 'You need composer installed! https://getcomposer.org/download/' >/dev/stderr
exit 1
fi
if [ -d .git ]; then
# seems likely we are running inside a git clone rather than an exported archive
# install the hook so that version info is updated on every commit/checkout/pull
ln -s ../../bin/update-version .git/hooks/post-commit
ln -s ../../bin/update-version .git/hooks/post-checkout
ln -s ../../bin/update-version .git/hooks/post-merge
# and run it now
bin/update-version
fi
composer install && echo 'Done! Now edit config.ini to your liking, and then run bin/migrate'
|