File tree 1 file changed +9
-2
lines changed
1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -13,9 +13,16 @@ tar czf build/docs.tgz build/docs
13
13
# The "*" in front of dele makes the copy continue if the command fails. This
14
14
# makes it so new branches don't need to have someone manually make a file to
15
15
# delete (see the -Q option in `man curl`).
16
+ #
17
+ # We copy the file into a version with the "-copy" suffix, and then move it
18
+ # over, so that commands that poll on the server won't process a
19
+ # partially-copied file. Note that the moving commands act as if the ftp
20
+ # command has moved into the pyret-docs/$BRANCH directory
16
21
17
22
curl -u $FTP_USER :$FTP_PASS \
18
- -Q " *dele pyret-docs/$BRANCH /docs.tgz" \
23
+ -Q " *dele pyret-docs/$BRANCH /docs-copy.tgz" \
24
+ -Q " -rnfr docs-copy.tgz" \
25
+ -Q " -rnto docs.tgz" \
19
26
--ftp-create-dirs \
20
- -T build/docs.tgz ftp://ftp.cs.brown.edu/pyret-docs/$BRANCH /docs.tgz
27
+ -T build/docs.tgz ftp://ftp.cs.brown.edu/pyret-docs/$BRANCH /docs-copy .tgz
21
28
You can’t perform that action at this time.
0 commit comments