From eb700e71f0ab89f16aabefea8d190a33beb50fcc Mon Sep 17 00:00:00 2001 From: "Paul Buetow (lxpbuetow.webde.local)" Date: Mon, 3 Feb 2014 13:15:46 +0100 Subject: Add rename sample --- docs/foo.txt | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'docs/foo.txt') diff --git a/docs/foo.txt b/docs/foo.txt index 7f01494..bf913ac 100644 --- a/docs/foo.txt +++ b/docs/foo.txt @@ -89,14 +89,17 @@ Customize Renaming foo into your project name Rename all files which have *foo* included into your own new package - name. You can find them with + 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 + 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" Updating ./debian Edit the following files accordingly to your new project (e.g. with -- cgit v1.2.3