Permalink
Browse files

docs: update gh-pages script again

  • Loading branch information...
1 parent a78c682 commit 65e88eaa75ecded75afebbec3d3fc962f95a128d @TooTallNate committed Jul 12, 2012
Showing with 5 additions and 4 deletions.
  1. +5 −4 docs/gh-pages.sh
View
@@ -1,11 +1,12 @@
#!/bin/sh
DIR=`dirname $0`
+TMP_DOC_DIR="/tmp/ref_docs"
npm run docs \
- && rm -rf /tmp/ref_docs \
- && mkdir -p /tmp/ref_docs \
- && cp -Lrf {"$DIR/index.html","$DIR/images","$DIR/scripts","$DIR/stylesheets"} /tmp/ref_docs \
+ && rm -rf $TMP_DOC_DIR \
+ && mkdir -p $TMP_DOC_DIR \
+ && cp -Lrf {"$DIR/index.html","$DIR/images","$DIR/scripts","$DIR/stylesheets"} $TMP_DOC_DIR \
&& git checkout gh-pages \
- && cp -Lrf /tmp/ref_docs/* . \
+ && cp -Lrf $TMP_DOC_DIR/* . \
&& echo "done"

0 comments on commit 65e88ea

Please sign in to comment.