blob: 76852909f95ed46551562e537f5d8fb9545f30b3 [file] [log] [blame]
#!/bin/bash
CURRENTDIR=`pwd`
WORKDIR=/tmp/incubator-site
ME=`basename $0`
rm -rf $WORKDIR
mkdir -p $WORKDIR
./preprocess_content.sh
# 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
cp -a reserve/*.txt content/.
cp -a reserve/*.json content/.
cp -a reserve/clutch content/.
cp -a reserve/projects content/.
cp -a reserve/ip-clearance content/.
git add content
git commit -m "git-site-role commit from $ME"
git push origin asf-site