Skip to content

Commit

Permalink
docs: Backup generated files before switching to docs branch.
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanv committed Nov 1, 2009
1 parent d6a4ec8 commit f1dc10f
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions doc/push_github
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,18 @@ make html
rm -rf /tmp/scikits.image.docs
cp -r build/html /tmp/scikits.image.docs
cd ..

# This file changes upon build, so we have to back it up,
# otherwise git won't switch branches
ignore_files="scikits/image/version.py
scikits/image/opencv/opencv_cv.c
scikits/image/opencv/opencv_backend.c"
mkdir -p /tmp/_scikits_image_backup
for f in $ignore_files; do
cp $f /tmp/_scikits_image_backup
git co $f
done

git co gh-pages || exit
rm -rf ./*
cp -r /tmp/scikits.image.docs/* .
Expand All @@ -46,3 +58,7 @@ git commit -m "Update docs."
git push origin gh-pages
git co $branch

for f in $ignore_files; do
cp /tmp/_scikits_image_backup/`basename $f` $f
done

0 comments on commit f1dc10f

Please sign in to comment.