-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #143 from arkedge/feature/rename-driver-instance
Rename driver_instances -> component_service
- Loading branch information
Showing
4 changed files
with
54 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
#!/bin/bash | ||
# driver instances -> component service | ||
|
||
# C2A user code | ||
echo "rename C2A user code: driver_instances -> component_service" | ||
|
||
echo "rename dir: src/src_user/applications/driver_instances -> src/src_user/applications/component_service" | ||
mv src/src_user/applications/driver_instances src/src_user/applications/component_service | ||
|
||
di_srcs=$(ls src/src_user/applications/component_service) | ||
|
||
echo "rename files: di_* -> csrv_*" | ||
for di_src in $di_srcs; do | ||
echo " $di_src -> csrv_${di_src#di_}" | ||
mv src/src_user/applications/component_service/$di_src src/src_user/applications/component_service/csrv_${di_src#di_} | ||
done | ||
|
||
echo "rename path: driver_instances -> component_service" | ||
find . -name "*" -not -path "*/.git/*" -type f -print0 | xargs -0 sed -i -e "s#driver_instances#component_service#g" | ||
|
||
echo "rename file path: di_* -> csrv_*" | ||
for di_src in $di_srcs; do | ||
echo " $di_src -> csrv_${di_src#di_}" | ||
find . -name "*" -not -path "*/.git/*" -type f -print0 | xargs -0 sed -i -e "s#$di_src#csrv_${di_src#di_}#g" | ||
done | ||
|
||
echo "rename source: DI_ -> CSRV_" | ||
find . -name "*" -not -path "*/.git/*" -type f -print0 | xargs -0 sed -i -e "s#DI_#CSRV_#g" | ||
|
||
git restore src/src_user/Settings/tlm_cmd/data_base/CMD_DB/*.xlsm | ||
git restore src/src_user/Settings/tlm_cmd/data_base/TLM_DB/*.xlsm |