Skip to content

Commit

Permalink
Add script to change module name
Browse files Browse the repository at this point in the history
  • Loading branch information
Piszmog committed May 8, 2024
1 parent 7b09db1 commit fbd8f80
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions update_module.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/bin/sh

if [ "$#" -ne 1 ]; then
echo "Usage: $0 <new module name>"
exit 1
fi

new_module=$1

find . -type d -name .git -prune -o -type f -exec sed -i '' -e "s/my-new-mod/${new_module}/g" {} \;

0 comments on commit fbd8f80

Please sign in to comment.