Skip to content

Commit

Permalink
Minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
kdy1 committed May 9, 2016
1 parent 9d5850a commit 558ad0b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 17 deletions.
20 changes: 4 additions & 16 deletions .travis/docs.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/sh -e
#!/bin/sh

set -o errexit

Expand All @@ -8,22 +8,10 @@ cd deploy_docs
git config user.name "kdy1997"
git config user.email "[email protected]"

if [ "$TRAVIS_TAG" = "" ]; then
rm -rf master
mv ../target/doc ./master
echo "<meta http-equiv=refresh content=0;url=rust-caniuse/index.html>" > ./master/index.html
else
rm -rf $TRAVIS_TAG
mv ../target/doc ./$TRAVIS_TAG
echo "<meta http-equiv=refresh content=0;url=rust-caniuse/index.html>" > ./$TRAVIS_TAG/index.html

latest=$(echo * | tr " " "\n" | sort -V -r | head -n1)
if [ "$TRAVIS_TAG" = "$latest" ]; then

echo "<meta http-equiv=refresh content=0;url=$latest/rust-caniuse/index.html>" > index.html
fi
fi

rm -rf .
mv ../target/doc ./
echo "<meta http-equiv=refresh content=0;url=caniuse/index.html>" > ./index.html

git add -A .
git commit -m "rebuild pages at ${TRAVIS_COMMIT}"
Expand Down
2 changes: 1 addition & 1 deletion build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ pub const FEATURE_{var}: Feature = \
// print id:Feature map
f.write_all(b"\n\n").unwrap();
write!(&mut f,
"static FEATURES: phf::Map<&'static str, Feature> = ")
"pub static FEATURES: phf::Map<&'static str, Feature> = ")
.unwrap();
let mut features = phf_codegen::Map::new();
for (key, _) in &d.data {
Expand Down

0 comments on commit 558ad0b

Please sign in to comment.