Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Chore: Make snapshots to work on Windows #6005

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 3 additions & 4 deletions docs/make-snapshot
Original file line number Diff line number Diff line change
Expand Up @@ -68,15 +68,14 @@ mkdir -p $P

CWD=`pwd`
cd $P
(git clone git@github.com:dafny-lang/dafny.git -b $branch --depth 1) || \
(git clone https://github.com/dafny-lang/dafny.git -b $branch --depth 1) || \
MikaelMayer marked this conversation as resolved.
Show resolved Hide resolved
(echo FAILED to clone dafny; exit 1)
(git clone git@github.com:dafny-lang/dafny-lang.github.io.git -b main --depth 1) || \
(git clone https://github.com/dafny-lang/dafny-lang.github.io.git -b main --depth 1) || \
MikaelMayer marked this conversation as resolved.
Show resolved Hide resolved
(echo FAILED to clone dafny-lang.github.io; exit 1)
cd $CWD

## Location of the dafny-lang.github.io repo
T=$P/dafny-lang.github.io
##T=/Users/davidcok/projects/dafny/dafny-lang.github.io

cd "$P/dafny/docs"

Expand Down Expand Up @@ -121,7 +120,7 @@ sed -i -e "s/$M.*/${M}Latest release documentation snapshot/" $T/latest/index.ht

CWD=`pwd`
cd $T
rm `find . -name index.html-e`
rm `find . -name index.html-e` || echo "files already deleted"

(git add -u \
&& git add "$V" \
Expand Down
Loading