Skip to content

Commit 3f0133b

Browse files
committed
Split out scripts
1 parent 35c20da commit 3f0133b

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

scripts/buildAndServeDocs.sh scripts/buildDocs.sh

+2-9
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,5 @@ fi
1414
output_dir=$(find "$BUILD_DIR" -mindepth 1 -maxdepth 1 -type d | head -n 1)
1515
cp -r "$output_dir" "$JAVADOCS_ARCHIVE_PATH"
1616

17-
# Remove the version name from the hierarchy so the Dockerfile doesn't need to worry about it
18-
cp -r "$output_dir"/* "$BUILD_DIR"
19-
rm -rf "$output_dir"
20-
21-
# Install deps
22-
sudo apt install httpd
23-
24-
# Run
25-
trap "exit 0;" TERM INT; httpd -v -p $PORT -h /www -f & wait
17+
# Move to /www to serve
18+
cp -r "$output_dir"/* "/www"

scripts/serveDocs.sh

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#!/bin/bash
2+
3+
# Install deps
4+
sudo apt install httpd
5+
6+
# Run
7+
trap "exit 0;" TERM INT; httpd -v -p 8081 -h /www -f & wait

0 commit comments

Comments
 (0)