Skip to content
This repository was archived by the owner on Mar 25, 2023. It is now read-only.

Commit d3e8f83

Browse files
Small changes to build scripts
- Make `setup.sh` take an optional argument `$1` of the "root directory" (default its own), so that other packages can call it without duplicating code - Make `build_js_static.sh` use `buildlibs.sh`
1 parent b61235c commit d3e8f83

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

scripts/build_js_static.sh

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,7 @@
33
SPLITGRAPH_DIR="$(cd -P -- "$(dirname -- "$0")" && pwd -P)"
44

55
pushd "$SPLITGRAPH_DIR" \
6-
&& echo "Build @splitgraph/tlib..." \
7-
&& yarn workspace @splitgraph/tlib build \
8-
&& echo "Build @splitgraph/tdesign..." \
9-
&& yarn workspace @splitgraph/tdesign build \
6+
&& yarn run buildlibs \
107
&& echo "Build and export @splitgraph/docs..." \
118
&& yarn workspace @splitgraph/docs build \
129
&& popd \

setup.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
# Simply run:
88
# ./setup.sh
99

10-
SPLITGRAPH_DIR="$(cd -P -- "$(dirname -- "$0")" && pwd -P)"
10+
SPLITGRAPH_DIR=${1-"$(cd -P -- "$(dirname -- "$0")" && pwd -P)"}
1111

1212
prep_env() {
1313
echo "Ensure certs..." \

0 commit comments

Comments
 (0)