diff options
Diffstat (limited to 'docs/foo.1')
| -rw-r--r-- | docs/foo.1 | 17 |
1 files changed, 10 insertions, 7 deletions
@@ -124,7 +124,7 @@ .\" ======================================================================== .\" .IX Title "FOO 1" -.TH FOO 1 "2013-03-22" "foo 0.0.0.0" "User Commands" +.TH FOO 1 "2014-02-03" "foo 0.0.0.0" "User Commands" .\" For nroff, turn off justification. Always turn off hyphenation; it makes .\" way too many mistakes in technical documents. .if n .ad l @@ -236,16 +236,19 @@ in order to build ./docs/foo.1. The page will be included in the resulting debia .Ve .SS "Renaming foo into your project name" .IX Subsection "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: .PP -.Vb 1 -\& find . \-name \e*foo\e* +.Vb 3 +\& PROJECTNAME=yourproject +\& find . \-name \e*foo\e* | +\& while read foo; do git mv $foo ${foo/foo/$PROJECTNAME}; done .Ve .PP -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: .PP -.Vb 1 -\& grep \-R foo . | grep \-v .git +.Vb 2 +\& grep \-R foo . | grep \-v .git | +\& cut \-d: \-f1 | uniq | xargs sed \-i "s/foo/$PROJECTNAME/g" .Ve .SS "Updating ./debian" .IX Subsection "Updating ./debian" |
