]> git.sur5r.net Git - kconfig-frontends/blobdiff - scripts/ksync.sh
buildsystem: don't use recursive make for libs
[kconfig-frontends] / scripts / ksync.sh
index 4346f460746de880038c6bceaf4df603c10d447a..0e3e9a88745862b1508c73ed0b887b7c7ee4f1ef 100755 (executable)
@@ -20,7 +20,7 @@ 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/$/"/;'   \
+        |sed -e 's/^/K_/; s/"//g; s/ = \{0,1\}/="/; s/$/"/;'  \
       )
 k_cset="$( cd "${k_dir}";                   \
            git log -n 1 --pretty='format:%H' \
@@ -49,13 +49,14 @@ while read k_file trash kf_file; do
     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/^/    /;'