Skip to content

Commit

Permalink
Support running the deploy script on linux
Browse files Browse the repository at this point in the history
We need to automate the generation of the documentation site. The first
step is getting the existing scripts to run on linux.
  • Loading branch information
spoonofpower committed Jul 7, 2017
1 parent e9a0417 commit f3c0c75
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions deploy.sh
Expand Up @@ -9,10 +9,10 @@ if [[ "$1" != "build" ]]; then
fi

echo Remove unwanted html templates
find site -name "*.html" | xargs grep '{%.*%}' -l | xargs rm
find site -name "*.html" | xargs grep '{%.*%}' -l | xargs rm -f

echo Copy extra static pages into site
cp -a extras/ site/
cp -a extras/* site/

echo Change git branch to asf-site
git checkout asf-site
Expand All @@ -21,7 +21,7 @@ echo Remove old content
ls | grep -v site | xargs rm -rf

echo Copy contents of site to serving directory
cp -a site/ .
cp -a site/* .

echo ---
echo --- You are now on the asf-site branch
Expand Down

0 comments on commit f3c0c75

Please sign in to comment.