Merge pull request #5295 from ashmaroli/script-default-site
Merge pull request 5295
This commit is contained in:
commit
7c8dd4a55e
|
@ -7,14 +7,12 @@ echo "$0: setting up tmp directory"
|
||||||
mkdir -p ./tmp
|
mkdir -p ./tmp
|
||||||
rm -Rf ./tmp/default-site
|
rm -Rf ./tmp/default-site
|
||||||
|
|
||||||
workdir=$(pwd)
|
|
||||||
|
|
||||||
echo "$0: creating new default site"
|
echo "$0: creating new default site"
|
||||||
bundle exec ruby exe/jekyll new tmp/default-site
|
bundle exec jekyll new tmp/default-site
|
||||||
pushd tmp/default-site
|
pushd tmp/default-site
|
||||||
|
|
||||||
echo "$0: respecifying the jekyll install location"
|
echo "$0: respecifying the jekyll install location"
|
||||||
ruby -e "contents = File.read('Gemfile'); File.write('Gemfile', contents.sub(/gem \"jekyll\".*\\n/, 'gem \"jekyll\", path: \"$workdir\"'))"
|
ruby -e "contents = File.read('Gemfile'); File.write('Gemfile', contents.sub(/gem \"jekyll\".*\\n/, 'gem \"jekyll\", path: \"../../\"'))"
|
||||||
echo "$0: installing default site dependencies"
|
echo "$0: installing default site dependencies"
|
||||||
BUNDLE_GEMFILE=Gemfile bundle install
|
BUNDLE_GEMFILE=Gemfile bundle install
|
||||||
echo "$0: building the default site"
|
echo "$0: building the default site"
|
||||||
|
|
Loading…
Reference in New Issue