summaryrefslogtreecommitdiff
path: root/docs/foo.pod
diff options
context:
space:
mode:
Diffstat (limited to 'docs/foo.pod')
-rw-r--r--docs/foo.pod11
1 files changed, 7 insertions, 4 deletions
diff --git a/docs/foo.pod b/docs/foo.pod
index c4cadb9..5afff25 100644
--- a/docs/foo.pod
+++ b/docs/foo.pod
@@ -90,13 +90,16 @@ in order to build ./docs/foo.1. The page will be included in the resulting debia
=head2 Renaming foo into your project name
-Rename all files which have *foo* included into your own new package name. You can find them with
+Rename all files which have *foo* included into your own new package name. You can do that with:
- find . -name \*foo\*
+ PROJECTNAME=yourproject
+ find . -name \*foo\* |
+ while read foo; do git mv $foo ${foo/foo/$PROJECTNAME}; done
-Search all content and rename *foo* into your own new package name. You can find all files with
+Search all content and rename *foo* into your own new package name. You can do that with:
- grep -R foo . | grep -v .git
+ grep -R foo . | grep -v .git |
+ cut -d: -f1 | uniq | xargs sed -i "s/foo/$PROJECTNAME/g"
=head2 Updating ./debian