-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathregenerate.sh
executable file
·32 lines (26 loc) · 1009 Bytes
/
regenerate.sh
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
#! /bin/bash
echo Generating NiFi Go client
export workspace_dir=$(pwd)
export wv_tmp_dir=${workspace_dir}/pkg
cd resources/client_gen
./generate_nifi_api_client.sh
cd ../../
echo Cleaning NiFi Go client
rm -fr ${wv_tmp_dir}/nifi/.swagger-codegen \
&& rm -fr ${wv_tmp_dir}/nifi/.gitignore \
&& rm -fr ${wv_tmp_dir}/nifi/.swagger-codegen-ignore \
&& rm -fr ${wv_tmp_dir}/nifi/.travis.yml \
&& rm -fr ${wv_tmp_dir}/swagger-codegen-cli-*.jar \
&& rm -fr ${wv_tmp_dir}/nifi.conf.json
echo Generating NiFi Registry Go client
export workspace_dir=$(pwd)
export wv_tmp_dir=${workspace_dir}/pkg
cd resources/client_gen
./generate_nifi_registry_api_client.sh
echo Cleaning NiFi Registry Go client
rm -fr ${wv_tmp_dir}/registry/.swagger-codegen \
&& rm -fr ${wv_tmp_dir}/registry/.gitignore \
&& rm -fr ${wv_tmp_dir}/registry/.swagger-codegen-ignore \
&& rm -fr ${wv_tmp_dir}/registry/.travis.yml \
&& rm -fr ${wv_tmp_dir}/swagger-codegen-cli-*.jar \
&& rm -fr ${wv_tmp_dir}/registry.conf.json