From: Yann E. MORIN" Date: Wed, 25 Jan 2012 22:03:01 +0000 (+0100) Subject: ksync: move to scripts/ X-Git-Tag: v3.3.0-0~33 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=f23d709d67e333a6c70eedb8397b9db31d6f38c2;p=kconfig-frontends ksync: move to scripts/ Signed-off-by: "Yann E. MORIN" --- diff --git a/ksync.sh b/ksync.sh deleted file mode 100755 index 9be213d..0000000 --- a/ksync.sh +++ /dev/null @@ -1,46 +0,0 @@ -#!/bin/sh - -my_name="${0##*/}" - -# If an argument is given, it's the location -# of the Linux kernel source tree -k_dir="${1}" -if [ ! \( -n "${k_dir}" -a -d "${k_dir}/kernel" \) ]; then - if [ -n "${k_dir}" ]; then - printf "%s: \`%s': not a Linux kernel source tree\n" \ - "${my_name}" "${k_dir}" - else - printf "Usage: %s /path/to/kernel/dir\n" "${my_name}" - fi - exit 1 -fi - -# Get the kernel version -eval $( head -n 5 "${k_dir}/Makefile" \ - |sed -r -e 's/^/K_/; s/"//g; s/ = ?/="/; s/$/"/;' \ - ) -k_cset="$( cd "${k_dir}"; \ - git log -n 1 --pretty='format:%H' \ - )" -printf "Found Linux kernel %d.%d.%d%s '%s' (%7.7s)\n" \ - "${K_VERSION}" "${K_PATCHLEVEL}" "${K_SUBLEVEL}" \ - "${K_EXTRAVERSION}" "${K_NAME}" "${k_cset}" - -# Get the kconfig-frontends version -kf_version="$( tail -n 1 .version )" - -# Store the new version -printf "%d.%d.%d%s %s %s\n%s\n" \ - "${K_VERSION}" "${K_PATCHLEVEL}" \ - "${K_SUBLEVEL}" "${K_EXTRAVERSION}" \ - "${k_cset}" "${K_NAME}" \ - "${kf_version}" \ - >.version - -exec .version + +exec