@@ -28,19 +28,21 @@ cp bin/bustub-wasm-shell.js "deploy/${BUSTUB_SHELL_DIRECTORY}"
28
28
cp bin/bustub-wasm-shell.wasm " deploy/${BUSTUB_SHELL_DIRECTORY} "
29
29
cp -a ../tools/wasm-shell/extra_files/index.html " deploy/${BUSTUB_SHELL_DIRECTORY} "
30
30
cp ../logo/bustub.svg " deploy/${BUSTUB_SHELL_DIRECTORY} "
31
- sed -i ' ' " s|\$ {BUSTUB_PRIVATE_VERSION}|${BUSTUB_PRIVATE_VERSION} |" " deploy/${BUSTUB_SHELL_DIRECTORY} /index.html"
32
- sed -i ' ' " s|\$ {BUSTUB_PUBLIC_VERSION}|${BUSTUB_PUBLIC_VERSION} |" " deploy/${BUSTUB_SHELL_DIRECTORY} /index.html"
33
- sed -i ' ' " s|\$ {BUSTUB_BUILD_TIME}|${BUSTUB_BUILD_TIME} |" " deploy/${BUSTUB_SHELL_DIRECTORY} /index.html"
31
+ # Change `sed -i` to `sed -i ''` if you are on a Mac.
32
+ sed -i " s|\$ {BUSTUB_PRIVATE_VERSION}|${BUSTUB_PRIVATE_VERSION} |" " deploy/${BUSTUB_SHELL_DIRECTORY} /index.html"
33
+ sed -i " s|\$ {BUSTUB_PUBLIC_VERSION}|${BUSTUB_PUBLIC_VERSION} |" " deploy/${BUSTUB_SHELL_DIRECTORY} /index.html"
34
+ sed -i " s|\$ {BUSTUB_BUILD_TIME}|${BUSTUB_BUILD_TIME} |" " deploy/${BUSTUB_SHELL_DIRECTORY} /index.html"
34
35
35
36
make -j$( nproc) wasm-bpt-printer
36
37
mkdir -p " deploy/${BUSTUB_BPT_DIRECTORY} "
37
38
cp bin/bustub-wasm-bpt-printer.js " deploy/${BUSTUB_BPT_DIRECTORY} "
38
39
cp bin/bustub-wasm-bpt-printer.wasm " deploy/${BUSTUB_BPT_DIRECTORY} "
39
40
cp -a ../tools/wasm-bpt-printer/extra_files/index.html " deploy/${BUSTUB_BPT_DIRECTORY} "
40
41
cp ../logo/bustub.svg " deploy/${BUSTUB_BPT_DIRECTORY} "
41
- sed -i ' ' " s|\$ {BUSTUB_PRIVATE_VERSION}|${BUSTUB_PRIVATE_VERSION} |" " deploy/${BUSTUB_BPT_DIRECTORY} /index.html"
42
- sed -i ' ' " s|\$ {BUSTUB_PUBLIC_VERSION}|${BUSTUB_PUBLIC_VERSION} |" " deploy/${BUSTUB_BPT_DIRECTORY} /index.html"
43
- sed -i ' ' " s|\$ {BUSTUB_BUILD_TIME}|${BUSTUB_BUILD_TIME} |" " deploy/${BUSTUB_BPT_DIRECTORY} /index.html"
42
+ # Change `sed -i` to `sed -i ''` if you are on a Mac.
43
+ sed -i " s|\$ {BUSTUB_PRIVATE_VERSION}|${BUSTUB_PRIVATE_VERSION} |" " deploy/${BUSTUB_BPT_DIRECTORY} /index.html"
44
+ sed -i " s|\$ {BUSTUB_PUBLIC_VERSION}|${BUSTUB_PUBLIC_VERSION} |" " deploy/${BUSTUB_BPT_DIRECTORY} /index.html"
45
+ sed -i " s|\$ {BUSTUB_BUILD_TIME}|${BUSTUB_BUILD_TIME} |" " deploy/${BUSTUB_BPT_DIRECTORY} /index.html"
44
46
45
47
ls -alh " deploy/${BUSTUB_SHELL_DIRECTORY} "
46
48
ls -alh " deploy/${BUSTUB_BPT_DIRECTORY} "
0 commit comments