From 55b839548e4992f82d5e42a5553bdd259c70ca5b Mon Sep 17 00:00:00 2001 From: Ivan Davidov Date: Sun, 24 Aug 2014 12:03:30 +0300 Subject: [PATCH] =?UTF-8?q?=E2=80=A2=20Minor=20code=20comment=20improvemen?= =?UTF-8?q?ts=20and=20reformatting.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/1_get_kernel.sh | 6 +++--- src/2_build_kernel.sh | 2 +- src/3_get_busybox.sh | 6 +++--- src/4_build_busybox.sh | 4 ++-- 4 files changed, 9 insertions(+), 9 deletions(-) diff --git a/src/1_get_kernel.sh b/src/1_get_kernel.sh index 4423ccf57..daeef565e 100644 --- a/src/1_get_kernel.sh +++ b/src/1_get_kernel.sh @@ -1,9 +1,9 @@ #!/bin/sh -# Grab everything after the '=' sign +# Grab everything after the '=' character DOWNLOAD_URL=$(grep -i KERNEL_SOURCE_URL .config | cut -f2 -d'=') -# Grab everything after the last '/' +# Grab everything after the last '/' character ARCHIVE_FILE=${DOWNLOAD_URL##*/} cd source @@ -17,7 +17,7 @@ rm -rf ../work/kernel mkdir ../work/kernel # Extract kernel to folder 'kernel' -# Full path will be something like, kernel\linux-3.16 +# Full path will be something like 'kernel\linux-3.16.1' tar -xvf $ARCHIVE_FILE -C ../work/kernel cd .. diff --git a/src/2_build_kernel.sh b/src/2_build_kernel.sh index dad85ed6e..4b11ef0e1 100644 --- a/src/2_build_kernel.sh +++ b/src/2_build_kernel.sh @@ -2,7 +2,7 @@ cd work/kernel -# Change to the first directory ls finds, e.g. linux-3.16 +# Change to the first directory ls finds, e.g. 'linux-3.16.1' cd $(ls -d *) # Cleans up the kernel sources, including configuration files diff --git a/src/3_get_busybox.sh b/src/3_get_busybox.sh index 2e43c23bc..71993e51c 100644 --- a/src/3_get_busybox.sh +++ b/src/3_get_busybox.sh @@ -1,9 +1,9 @@ #!/bin/sh -# Grab everything after the '=' sign +# Grab everything after the '=' character DOWNLOAD_URL=$(grep -i BUSYBOX_SOURCE_URL .config | cut -f2 -d'=') -# Grab everything after the last '/' +# Grab everything after the last '/' character ARCHIVE_FILE=${DOWNLOAD_URL##*/} cd source @@ -17,7 +17,7 @@ rm -rf ../work/busybox mkdir ../work/busybox # Extract busybox to folder 'busybox' -# Full path will be something like, busybox\busybox-1.22.1 +# Full path will be something like 'busybox\busybox-1.22.1' tar -xvf $ARCHIVE_FILE -C ../work/busybox cd .. diff --git a/src/4_build_busybox.sh b/src/4_build_busybox.sh index cc6390c45..18da9f315 100644 --- a/src/4_build_busybox.sh +++ b/src/4_build_busybox.sh @@ -2,7 +2,7 @@ cd work/busybox -# Change to the first directory ls finds, e.g/ busybox-1.22.1 +# Change to the first directory ls finds, e.g. 'busybox-1.22.1' cd $(ls -d *) # Remove previously generated artefacts @@ -19,7 +19,7 @@ sed -i "s/.*CONFIG_STATIC.*/CONFIG_STATIC=y/" .config make busybox # Create the symlinks for busybox -# It uses the file busybox.links for this +# It uses the file 'busybox.links' for this make install cd ../../..