updated to use in place sed editing
This commit is contained in:
parent
0288b6eff3
commit
41950059a6
4
otto.sh
4
otto.sh
|
@ -38,8 +38,8 @@ add_module_to_cmakes () {
|
||||||
remove_module_from_cmakes () {
|
remove_module_from_cmakes () {
|
||||||
local basename="$1"
|
local basename="$1"
|
||||||
|
|
||||||
sed "s/^.*add_subdirectory(${basename}).*$//g" ./src/CMakeLists.txt > ./src/CMakeLists.txt
|
sed -i'' "s/^.*add_subdirectory(${basename}).*$//g" ./src/CMakeLists.txt
|
||||||
sed "s/^.*add_subdirectory(${basename}).*$//g" ./tests/CMakeLists.txt > ./tests/CMakeLists.txt
|
sed -i'' "s/^.*add_subdirectory(${basename}).*$//g" ./tests/CMakeLists.txt
|
||||||
}
|
}
|
||||||
|
|
||||||
git_add_module () {
|
git_add_module () {
|
||||||
|
|
Loading…
Reference in New Issue