]> git.sur5r.net Git - kconfig-frontends/commitdiff
scripts/ksync: cerate destination dir before copy
authorYann E. MORIN" <yann.morin.1998@free.fr>
Thu, 29 Mar 2012 16:52:43 +0000 (18:52 +0200)
committerYann E. MORIN" <yann.morin.1998@free.fr>
Thu, 29 Mar 2012 16:52:43 +0000 (18:52 +0200)
When adding new files to the sync list, the destination dir
must exist before we copy the new files there.

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
scripts/ksync.sh

index 9be213d81b50640fb62969d714009c33c696e656..e45b38ea2be5617ce7df65b9f7463a30d6de41ad 100755 (executable)
@@ -39,6 +39,7 @@ printf "%d.%d.%d%s %s %s\n%s\n"             \
 
 exec <misc/kernel2kfrontends.list
 while read k_file trash kf_file; do
+    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"