]> git.sur5r.net Git - kconfig-frontends/commitdiff
ksync: handle names with double quotes
authorYann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Sun, 22 Jan 2012 22:55:14 +0000 (23:55 +0100)
committerYann E. MORIN" <yann.morin.1998@free.fr>
Sun, 22 Jan 2012 22:55:14 +0000 (23:55 +0100)
Some versions of the Linux kernel have double quotes, for example
linux-3.1 is named:
    "Divemaster Edition"
while linux-3.2 is named:
    Saber-toothed Squirrel

Just remove doubles quotes.

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
ksync.sh

index 7af9ac04ef96b608d61f2242c33f60b4f0a898b3..c8a2dc1aac4cb464a2bedb2255a7009415999d20 100755 (executable)
--- a/ksync.sh
+++ b/ksync.sh
@@ -7,8 +7,8 @@ my_name="${0##*/}"
 k_dir="${1}"
 if [ -n "${k_dir}" -a -d "${k_dir}/kernel" ]; then
     # Get the version
-    eval $( head -n 5 "${k_dir}/Makefile"               \
-            |sed -r -e 's/^/K_/; s/ = ?/="/; s/$/"/;'   \
+    eval $( head -n 5 "${k_dir}/Makefile"                       \
+            |sed -r -e 's/^/K_/; s/"//g; s/ = ?/="/; s/$/"/;'   \
           )
     printf "Found Linux kernel %d.%d.%d%s '%s'\n"           \
           "${K_VERSION}" "${K_PATCHLEVEL}" "${K_SUBLEVEL}"  \