Repository: mahout
Updated Branches:
  refs/heads/mahout-1981 039187135 -> fc36bef15


MAHOUT-1981 Update build_site.sh to not commit entire website


Project: http://git-wip-us.apache.org/repos/asf/mahout/repo
Commit: http://git-wip-us.apache.org/repos/asf/mahout/commit/fc36bef1
Tree: http://git-wip-us.apache.org/repos/asf/mahout/tree/fc36bef1
Diff: http://git-wip-us.apache.org/repos/asf/mahout/diff/fc36bef1

Branch: refs/heads/mahout-1981
Commit: fc36bef157dc47d9572c4cfd460067e1916910a0
Parents: 0391871
Author: Trevor a.k.a @rawkintrevo <[email protected]>
Authored: Tue Dec 5 22:35:26 2017 -0600
Committer: Trevor a.k.a @rawkintrevo <[email protected]>
Committed: Tue Dec 5 22:35:26 2017 -0600

----------------------------------------------------------------------
 website/build_site.sh | 11 ++++-------
 1 file changed, 4 insertions(+), 7 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/mahout/blob/fc36bef1/website/build_site.sh
----------------------------------------------------------------------
diff --git a/website/build_site.sh b/website/build_site.sh
index ca9740f..408e327 100755
--- a/website/build_site.sh
+++ b/website/build_site.sh
@@ -12,12 +12,9 @@ curl -sSL https://get.rvm.io | bash -s -- --path ${RUBY_PATH}
 mkdir -p ${GEM_HOME}/gems
 gem install  --install-dir ${GEM_HOME} bundler
 export PATH=${GEM_HOME}/bin:$PATH
-(cd website/oldsite && bundle install --path ${GEM_HOME})
-(cd website/oldsite && bundle)
-(cd website/oldsite && bundle exec jekyll build --destination $WORKDIR)
-(cd website/docs && bundle install --path ${GEM_HOME})
-(cd website/docs && bundle)
-(cd website/docs && bundle exec jekyll build --destination 
$WORKDIR/docs/latest)
+(cd website && bundle install --path ${GEM_HOME})
+(cd website && bundle)
+(cd website && bundle exec jekyll build --destination $WORKDIR)
 
 # Set env for docs
 MAHOUT_VERSION=0.13.0
@@ -27,7 +24,7 @@ if [ ! -d "$WORKDIR/docs/$MAHOUT_VERSION/api" ]; then
        DISTPATH= 
https://dist.apache.org/repos/dist/release/mahout/$MAHOUT_VERSION/$DISTFILE
 
        # Copy API docs into _site
-       wget -q -P $WORKDIR $DISTPATH
+       wget -qP $WORKDIR $DISTPATH
        tar -C $WORKDIR -xzf $WORKDIR/$DISTFILE 
apache-mahout-distribution-$MAHOUT_VERSION/docs
        mkdir -p $WORKDIR/docs/$MAHOUT_VERSION/api
        mv $WORKDIR/apache-mahout-distribution-$MAHOUT_VERSION/docs 
$WORKDIR/docs/$MAHOUT_VERSION/api

Reply via email to