-
Notifications
You must be signed in to change notification settings - Fork 2
/
update_publish_all_config.sh
executable file
·32 lines (24 loc) · 1.3 KB
/
update_publish_all_config.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
# Script to generate new Publish all descriptor for iics package command generating publish in following order
# 1. Connectors
# 2. Connections
# 3. Processes
# 4. Guides
# this program must run with GNU sed available install gnu sed on mac via ports or brew
# Manual Run
# find ./src/ipd -name "*.AI_SERVICE_CONNECTOR.xml" | gsed -r 's/(\.\/src\/ipd\/)|(\.xml)//g' && \
# find ./src/ipd -name "*.AI_CONNECTION.xml" | gsed -r 's/(\.\/src\/ipd\/)|(\.xml)//g' && \
# find ./src/ipd -name "*.PROCESS.xml" | gsed -r 's/(\.\/src\/ipd\/)|(\.xml)//g' && \
# find ./src/ipd -name "*.GUIDE.xml" | gsed -r 's/(\.\/src\/ipd\/)|(\.xml)//g'\
# check system
UNAME=$(uname)
case "$UNAME" in
Darwin*) sed_exec='gsed';;
*) sed_exec='sed';;
esac
find ./src/ipd -name "*.AI_SERVICE_CONNECTOR.xml" | "$sed_exec" -r 's/(\.\/src\/ipd\/)|(\.xml)//g' > conf/all_designs.publish.txt && \
find ./src/ipd -name "*.AI_CONNECTION.xml" | "$sed_exec" -r 's/(\.\/src\/ipd\/)|(\.xml)//g' >> conf/all_designs.publish.txt && \
find ./src/ipd -name "*.PROCESS.xml" | "$sed_exec" -r 's/(\.\/src\/ipd\/)|(\.xml)//g' >> conf/all_designs.publish.txt && \
find ./src/ipd -name "*.GUIDE.xml" | "$sed_exec" -r 's/(\.\/src\/ipd\/)|(\.xml)//g' >> conf/all_designs.publish.txt
echo 'conf/all_designs.publish.txt Updated'
git diff conf/all_designs.publish.txt