From: Yann E. MORIN" Date: Sun, 22 Jan 2012 22:55:14 +0000 (+0100) Subject: ksync: handle names with double quotes X-Git-Tag: v3.3.0-0~39 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=8185964f196854bff4d0aa343ae37460fa719e51;p=kconfig-frontends ksync: handle names with double quotes 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" --- diff --git a/ksync.sh b/ksync.sh index 7af9ac0..c8a2dc1 100755 --- 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}" \