2021-09-19 19:35:36 +01:00
|
|
|
#!/bin/sh
|
|
|
|
echo "Welcome to the ewfm automagic"
|
|
|
|
echo "website setter-upper wizard!!"
|
|
|
|
|
|
|
|
echo "First, let's start by creating input/ and the default index.md file."
|
|
|
|
echo .
|
|
|
|
mkdir input
|
|
|
|
touch input/index.md
|
|
|
|
echo "Your website!" | tee -a input/index.md
|
|
|
|
echo "## Hello, world!" | tee -a input/index.md
|
|
|
|
echo "Welcome to ewfm!" | tee -a input/index.md
|
|
|
|
echo .
|
|
|
|
echo "Done! Now let's configure your site.conf file!"
|
|
|
|
|
|
|
|
touch input/site.conf
|
|
|
|
|
|
|
|
echo "What is your website's domain?"
|
|
|
|
read domain
|
|
|
|
echo $domain | tee -a input/site.conf
|
|
|
|
|
|
|
|
echo "What is your website's name?"
|
|
|
|
echo .
|
|
|
|
read name
|
|
|
|
echo $name | tee -a input/site.conf
|
|
|
|
|
|
|
|
echo "What theme would you like to use? (If in doubt, type linear-base or 3box-base)"
|
|
|
|
echo .
|
|
|
|
read theme
|
|
|
|
echo $theme | tee -a input/site.conf
|
|
|
|
|
|
|
|
echo "All done!"
|
|
|
|
echo "If you haven't already read the docs at ewfm.colean.cc/docs"
|
|
|
|
echo "and run populate.sh to download all the ewfm themes!"
|
2021-09-20 17:08:35 +01:00
|
|
|
mkdir output
|