Skip to content

Commit

Permalink
chore: remove duplicate copy
Browse files Browse the repository at this point in the history
License: MIT
Signed-off-by: Marcin Rataj <[email protected]>
  • Loading branch information
lidel committed Feb 12, 2021
1 parent 93dc652 commit 12b03a8
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 8 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ Putting Wikipedia Snapshots on IPFS and working towards making it fully read-wri

- [Purpose](#purpose)
- [How to add new Wikipedia snapshots to IPFS](#how-to-add-new-wikipedia-snapshots-to-ipfs)
- [Manual steps](#manual-steps)
- [Docker](#docker)
- [Manual build](#manual-build)
- [Docker](#docker-build)
- [How to help](#how-to-help)
- [Cohost a lazy copy](#cohost-a-lazy-copy)
- [Cohost a full copy](#cohost-a-full-copy)
Expand Down Expand Up @@ -49,7 +49,7 @@ The process can be nearly fully automated, however it consists of many stages
and understanding what happens during each stage is paramount if ZIM format
changes and our build toolchain requires a debug and update.

- [Manual steps](#manual-steps) are useful in debug situations, when specific stage needs to be executed multiple times to fix a bug.
- [Manual build](#manual-build) are useful in debug situations, when specific stage needs to be executed multiple times to fix a bug.
- [mirrorzim.sh](#mirrorzim.sh) automates some steps for QA purposes and ad-hoc experimentation
- [Docker build](#docker-build) is fully automated blackbox which takes ZIM file and produces CID and `IPFS_PATH` with datastore.

Expand All @@ -61,7 +61,7 @@ easy as we want them to be. If you run into trouble, seek help through a github
issue, commenting in the `#ipfs` channel on IRC, or by posting a thread on
https://discuss.ipfs.io.

## Manual steps
## Manual build

If you would like to create an updated Wikipedia snapshot on IPFS, you can follow these steps.

Expand Down
3 changes: 0 additions & 3 deletions mirrorzim.sh
Original file line number Diff line number Diff line change
Expand Up @@ -108,9 +108,6 @@ node ./bin/run $TMP_DIRECTORY \
${HOSTING_IPNS_HASH:+--hostingipnshash=$HOSTING_IPNS_HASH} \
${MAIN_PAGE_VERSION:+--mainpageversion=$MAIN_PAGE_VERSION}

printf "\nAdding original ZIM to the root dir:\n"
cp -v ./snapshots/$ZIM_FILE $TMP_DIRECTORY

printf "\nAdding the processed tmp directory to IPFS: be patient (it takes a few hours), and keep this terminal open\n"
CID=$(ipfs add -r --cid-version 1 --pin=false --offline -Qp $TMP_DIRECTORY)
MFS_DIR="/${ZIM_FILE}_$(date +%F_%T)"
Expand Down
2 changes: 1 addition & 1 deletion src/site-transforms.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ export const includeSourceZim = ({
return
}

cli.action.start(' Copying source ZIM to the root of unpacked version ')
cli.action.start(' Copying source ZIM to the root of unpacked zim directory ')
copyFileSync(zimFile, zimCopy)
cli.action.stop()
}
Expand Down

0 comments on commit 12b03a8

Please sign in to comment.