[OE-core] [PATCH 4/7] mkdebugfs.sh: convert the tab to 4 spaces
Darren Hart
dvhart at linux.intel.com
Tue Feb 26 22:59:36 UTC 2013
And NACK on this one :-)
Shell scripts should use tabs.
--
Darren
On 02/26/2013 01:24 AM, Robert Yang wrote:
> [YOCTO #3848]
>
> Signed-off-by: Robert Yang <liezhi.yang at windriver.com>
> ---
> .../e2fsprogs/e2fsprogs/mkdebugfs.sh | 74 +++++++++++-----------
> 1 file changed, 37 insertions(+), 37 deletions(-)
>
> diff --git a/meta/recipes-devtools/e2fsprogs/e2fsprogs/mkdebugfs.sh b/meta/recipes-devtools/e2fsprogs/e2fsprogs/mkdebugfs.sh
> index 5dfa380..41a13cb 100644
> --- a/meta/recipes-devtools/e2fsprogs/e2fsprogs/mkdebugfs.sh
> +++ b/meta/recipes-devtools/e2fsprogs/e2fsprogs/mkdebugfs.sh
> @@ -6,44 +6,44 @@ DEBUGFS="debugfs/debugfs"
> yes | mkfs.ext4 test.img
>
> {
> - CWD="/"
> - find $SRCDIR | while read FILE; do
> - #TGT=${FILE#$SRCDIR}
> - TGT=$(basename "${FILE#$SRCDIR}")
> - DIR=$(dirname "${FILE#$SRCDIR}")
> + CWD="/"
> + find $SRCDIR | while read FILE; do
> + #TGT=${FILE#$SRCDIR}
> + TGT=$(basename "${FILE#$SRCDIR}")
> + DIR=$(dirname "${FILE#$SRCDIR}")
>
> - # Skip the root dir
> - if [ -z "$TGT" ]; then
> - continue
> - fi
> + # Skip the root dir
> + if [ -z "$TGT" ]; then
> + continue
> + fi
>
> - if [ "$DIR" != "$CWD" ]; then
> - echo "cd $DIR"
> - CWD="$DIR"
> - fi
> + if [ "$DIR" != "$CWD" ]; then
> + echo "cd $DIR"
> + CWD="$DIR"
> + fi
>
> - case $(stat -c "%F" $FILE) in
> - "directory")
> - echo "mkdir $TGT"
> - ;;
> - "regular file")
> - echo "write $FILE $TGT"
> - ;;
> - "symbolic link")
> - LINK_TGT=$(ls -l $FILE | sed -e 's/.*-> //')
> - echo "symlink $TGT $LINK_TGT"
> - ;;
> - "block special file")
> - DEVNO=$(stat -c "%t %T" $FILE)
> - echo "mknod $TGT b $DEVNO"
> - ;;
> - "character special file")
> - DEVNO=$(stat -c "%t %T" $FILE)
> - echo "mknod $TGT c $DEVNO"
> - ;;
> - *)
> - echo "Unknown file $FILE" 1>&2
> - ;;
> - esac
> - done
> + case $(stat -c "%F" $FILE) in
> + "directory")
> + echo "mkdir $TGT"
> + ;;
> + "regular file")
> + echo "write $FILE $TGT"
> + ;;
> + "symbolic link")
> + LINK_TGT=$(ls -l $FILE | sed -e 's/.*-> //')
> + echo "symlink $TGT $LINK_TGT"
> + ;;
> + "block special file")
> + DEVNO=$(stat -c "%t %T" $FILE)
> + echo "mknod $TGT b $DEVNO"
> + ;;
> + "character special file")
> + DEVNO=$(stat -c "%t %T" $FILE)
> + echo "mknod $TGT c $DEVNO"
> + ;;
> + *)
> + echo "Unknown file $FILE" 1>&2
> + ;;
> + esac
> + done
> } | $DEBUGFS -w -f /dev/stdin $DEVICE
>
--
Darren Hart
Intel Open Source Technology Center
Yocto Project - Technical Lead - Linux Kernel
More information about the Openembedded-core
mailing list