d07eff9f43
Summary: Init of end user technical documentation. Reviewers: dtomicevic, teon.banek, mferencevic Reviewed By: dtomicevic, teon.banek Subscribers: pullbot, buda Differential Revision: https://phabricator.memgraph.io/D407
21 lines
484 B
Bash
Executable File
21 lines
484 B
Bash
Executable File
#!/bin/bash
|
|
|
|
working_dir="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
|
|
|
# curl and php are required
|
|
if [ "$( which curl )" == "" ] || [ "$( which php )" == "" ]; then
|
|
echo "curl and php are required!"
|
|
exit 1
|
|
fi
|
|
|
|
generator="couscous.phar"
|
|
|
|
# download the generator if it's not already downloaded
|
|
if [ ! -f ${working_dir}/${generator} ]; then
|
|
cd ${working_dir}
|
|
curl -OS http://couscous.io/${generator}
|
|
fi
|
|
|
|
# run the preview
|
|
php ${working_dir}/${generator} preview
|