ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
To add to previous answers: reference
The package tends to use its files itself in launch/urdf/etcetera files, and other packages depending on the package may as well. For editing these dependencies:
find PKG-FOLDER \( -type -d -name .git -prune \) -o -type f \
-exec sed -i 's/old-pkg-name/new-pkg-name/g' {} +
This should replace all occurences of old-pkg-name
in all files of PKG-FOLDER
with new-pkg-name
.
Plus, if your files have names containing old-pkg-name
, you may need to update these names too to maintain integrity.
find PKG-FOLDER \( \( -type -d -name .git -prune \) -o -type f \) \
-iwholename "*old-pkg-name*" \
-exec rename s/old-pkg-name/new-pkg-name/ '{}' \;
2 | No.2 Revision |
To add to previous answers: reference
The package tends to use its files itself in launch/urdf/etcetera files, and other packages depending on the package may as well. For editing these dependencies:
find PKG-FOLDER \( -type -d d -name .git -prune \) -o -type f \
-exec sed -i 's/old-pkg-name/new-pkg-name/g' {} +
This should replace all occurences of old-pkg-name
in all files of PKG-FOLDER
with new-pkg-name
.
Plus, if your files have names containing old-pkg-name
, you may need to update these names too to maintain integrity.
find PKG-FOLDER \( \( -type -d d -name .git -prune \) -o -type f \) \
-iwholename "*old-pkg-name*" \
-exec rename s/old-pkg-name/new-pkg-name/ '{}' \;