-
Notifications
You must be signed in to change notification settings - Fork 18
Expand file tree
/
Copy pathbuild
More file actions
executable file
·36 lines (28 loc) · 1 KB
/
Copy pathbuild
File metadata and controls
executable file
·36 lines (28 loc) · 1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#!/usr/bin/env bash
set -e
DIR=$(cd `dirname $0` && pwd)
LANGUAGE="en"
TESTING=""
for arg in "$@"; do
case $arg in
--testing)
TESTING="--testing"
;;
*)
LANGUAGE="$arg"
;;
esac
done
printf "Language chosen: ${LANGUAGE}\n"
printf "\nInstalling composer dependencies ...\n"
mkdir -p "${DIR}/vendor"
bash "${DIR}/bin/php" composer install
printf "\n"
bash "${DIR}/bin/php" ./bin/generate-oas.php ${TESTING}
"${DIR}/bin/copy-examples-filtered" "${DIR}/examples" "${DIR}/sandbox/dotnet/src/Dropbox.SignSandbox" cs
"${DIR}/bin/copy-examples-filtered" "${DIR}/examples" "${DIR}/sandbox/java/src/main/java/com/dropbox/sign_sandbox" java
"${DIR}/bin/copy-examples-filtered" "${DIR}/examples" "${DIR}/sandbox/php/src" php
"${DIR}/bin/copy-examples-filtered" "${DIR}/examples" "${DIR}/sandbox/python/src" py
"${DIR}/bin/copy-examples-filtered" "${DIR}/examples" "${DIR}/sandbox/ruby/src" rb
"${DIR}/bin/copy-examples-filtered" "${DIR}/examples" "${DIR}/sandbox/node/src" ts
printf "Success!\n"