From: Yann E. MORIN" Date: Tue, 29 May 2012 21:16:45 +0000 (+0200) Subject: scripts/ksync: append git-log when syncing X-Git-Tag: v3.5.0-0~16 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=54ef3d6dc272439f0d18e308ef48affcc97910a9;p=kconfig-frontends scripts/ksync: append git-log when syncing When syncing from the kernel, run 'git log' on the affected files, and store it locally. This will be used to generate announcements for the future releases. Signed-off-by: "Yann E. MORIN" --- diff --git a/scripts/ksync.log b/scripts/ksync.log new file mode 100644 index 0000000..e69de29 diff --git a/scripts/ksync.sh b/scripts/ksync.sh index 0775a6d..4346f46 100755 --- a/scripts/ksync.sh +++ b/scripts/ksync.sh @@ -15,6 +15,9 @@ if [ ! \( -n "${k_dir}" -a -d "${k_dir}/kernel" \) ]; then exit 1 fi +# Save current version +k_cset_old=$( head -n 1 .version |awk '{ print $(2); }' ) + # Get the kernel version eval $( head -n 5 "${k_dir}/Makefile" \ |sed -r -e 's/^/K_/; s/"//g; s/ = ?/="/; s/$/"/;' \ @@ -37,10 +40,22 @@ printf "%d.%d.%d%s %s %s\n%s\n" \ "${kf_version}" \ >.version +# Sync-up the files +k_files="" while read k_file trash kf_file; do + k_files="${k_files} ${k_file}" mkdir -p "${kf_file%/*}" 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