]> git.sur5r.net Git - kconfig-frontends/commitdiff
ksync: move to scripts/
authorYann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Wed, 25 Jan 2012 22:03:01 +0000 (23:03 +0100)
committerYann E. MORIN" <yann.morin.1998@free.fr>
Wed, 25 Jan 2012 22:03:01 +0000 (23:03 +0100)
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
ksync.sh [deleted file]
scripts/ksync.sh [new file with mode: 0755]

diff --git a/ksync.sh b/ksync.sh
deleted file mode 100755 (executable)
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 <misc/kernel2kfrontends.list
-while read k_file trash kf_file; do
-    cp -v "${k_dir}/${k_file}" "${kf_file}"
-    if [ -f "${kf_file}.patch" ]; then
-        patch --no-backup-if-mismatch -g0 -F1 -p1 -f <"${kf_file}.patch"
-    fi
-done
diff --git a/scripts/ksync.sh b/scripts/ksync.sh
new file mode 100755 (executable)
index 0000000..9be213d
--- /dev/null
@@ -0,0 +1,46 @@
+#!/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 <misc/kernel2kfrontends.list
+while read k_file trash kf_file; do
+    cp -v "${k_dir}/${k_file}" "${kf_file}"
+    if [ -f "${kf_file}.patch" ]; then
+        patch --no-backup-if-mismatch -g0 -F1 -p1 -f <"${kf_file}.patch"
+    fi
+done