# Get the kernel version
eval $( head -n 5 "${k_dir}/Makefile" \
- |sed -r -e 's/^/K_/; s/"//g; s/ = ?/="/; s/$/"/;' \
+ |sed -e 's/^/K_/; s/"//g; s/ = \{0,1\}/="/; s/$/"/;' \
)
k_cset="$( cd "${k_dir}"; \
git log -n 1 --pretty='format:%H' \
if [ -f "${kf_file}.patch" ]; then
patch --no-backup-if-mismatch -g0 -F1 -p1 -f <"${kf_file}.patch"
fi
-done <scripts/kernel2kfrontends.list
+done <scripts/ksync.list
# Save the changelog between the old cset and now
printf "Synced-up these changes:\n"
( cd "${k_dir}"
- git log --no-merges --pretty='tformat:%s' \
+ git log --no-merges --pretty='tformat:%h %s' \
"${k_cset_old}..${k_cset}" \
${k_files} \
-)|tee -a "scripts/ksync.log" \
- |sed -r -e 's/^/ /;'
+)|tac \
+ |tee -a "scripts/ksync.log" \
+ |sed -e 's/^/ /;'