This is an automated email from the ASF dual-hosted git repository. wave pushed a commit to branch main in repository https://gitbox.apache.org/repos/asf/openoffice-org.git
commit 829946fc5cf2054de0cc7b219adcf4d4d24a2508 Author: Dave Fisher <[email protected]> AuthorDate: Fri Oct 23 12:07:59 2020 -0700 build scripts at top level. first pass at properties file. templates are next. --- bake.sh | 10 ++++++++++ build_local.sh | 10 ++++++++++ build_site.sh | 23 +++++++++++++++++++++++ jbake.properties | 22 ++++++++++++++++++++++ 4 files changed, 65 insertions(+) diff --git a/bake.sh b/bake.sh new file mode 100755 index 0000000..b781bc6 --- /dev/null +++ b/bake.sh @@ -0,0 +1,10 @@ +#!/bin/sh + +if [ -z ${JBAKE_HOME} ] +then + echo "Missing JBAKE_HOME variable" >&2 + exit 1 +fi + +export JBAKE_OPTS="-Djavax.xml.accessExternalDTD=http" +${JBAKE_HOME}/bin/jbake $@ diff --git a/build_local.sh b/build_local.sh new file mode 100755 index 0000000..f95016a --- /dev/null +++ b/build_local.sh @@ -0,0 +1,10 @@ +#!/bin/bash + +CURRENTDIR=`pwd` +WORKDIR=/tmp/ooo-site + +rm -rf $WORKDIR +mkdir -p $WORKDIR + +# just bake and serve the site +./bake.sh -b -s . $WORKDIR diff --git a/build_site.sh b/build_site.sh new file mode 100755 index 0000000..2f7449d --- /dev/null +++ b/build_site.sh @@ -0,0 +1,23 @@ +#!/bin/bash + +CURRENTDIR=`pwd` +WORKDIR=/tmp/ooo-site +ME=`basename $0` + +rm -rf $WORKDIR +mkdir -p $WORKDIR + +# now bake the site +./bake.sh -b . $WORKDIR + +# push all of the results to asf-site +git checkout asf-site +git clean -f -d +git pull origin asf-site +rm -rf content +mkdir content +cp -a $WORKDIR/* content +cp -a $WORKDIR/.htaccess content +git add content +git commit -m "git-site-role commit from $ME" +git push origin asf-site diff --git a/jbake.properties b/jbake.properties new file mode 100644 index 0000000..fa4618d --- /dev/null +++ b/jbake.properties @@ -0,0 +1,22 @@ +#site.host=https://www.openofffice.org +site.host=http://localhost:8820 +render.tags=false +render.sitemap=false +template.homepage.file=homepage.gsp +template.projectspage.file=projectspage.gsp +template.simplepage.file=simplepage.gsp +template.retired.file=retired.gsp +template.archive.file=archive.gsp +template.tag.file=tags.gsp +template.sitemap.file=sitemap.gsp +template.post.file=post.gsp +template.page.file=page.gsp +template.feed.file=feed.gsp +template.guide.file=guide.gsp +template.proposalGuide.file=guide.gsp +template.pmcGuide.file=guide.gsp +template.policy.file=policy.gsp +render.index=false +index.file=index.html +content.folder=content +destination.folder=output
