From: Travis Rhoden Date: Thu, 3 Sep 2015 16:43:59 +0000 (+0000) Subject: Rename scripts and config files X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F124%2Fhead;p=ceph-build.git Rename scripts and config files Rename filenames and content in appropriate files in bin/ and config/ as well. Signed-off-by: Travis Rhoden --- diff --git a/rhcs-installer/build/rename-rhcs-installer b/rhcs-installer/build/rename-rhcs-installer index 186999ee..28d605ed 100755 --- a/rhcs-installer/build/rename-rhcs-installer +++ b/rhcs-installer/build/rename-rhcs-installer @@ -5,17 +5,19 @@ oldname='mariner-installer' newname='rhcs-installer' -cd $WORKSPACE/$oldname/debian +cd $WORKSPACE/$oldname -for file in $(find . -type f); do - if [ $file == './copyright' ]; then +# Replace content in files +for file in $(find config debian -type f); do + if [ $file == 'debian/copyright' ]; then # The uses of "$oldname" in the copyright file are ok to leave alone. continue fi sed -i -e "s/$oldname/$newname/g" $file done -for file in $(find . -type f -name "*$oldname*"); do +# Rename files +for file in $(find bin config debian -type f -name "*$oldname*"); do newfile=$(echo $file | sed -e "s/$oldname/$newname/") mv $file $newfile done