support/scripts/apply-patches.sh: fix whitespace
The apply-patches.sh script was using a mix of tabs and spaces, and some three-space indentation. Normalize everything to four-space indentation. Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
This commit is contained in:
parent
a8b11b478b
commit
c1a674f994
@ -69,41 +69,41 @@ function apply_patch {
|
|||||||
type="series"; uncomp="cat"
|
type="series"; uncomp="cat"
|
||||||
else
|
else
|
||||||
case "$patch" in
|
case "$patch" in
|
||||||
*.gz)
|
*.gz)
|
||||||
type="gzip"; uncomp="gunzip -dc"; ;;
|
type="gzip"; uncomp="gunzip -dc"; ;;
|
||||||
*.bz)
|
*.bz)
|
||||||
type="bzip"; uncomp="bunzip -dc"; ;;
|
type="bzip"; uncomp="bunzip -dc"; ;;
|
||||||
*.bz2)
|
*.bz2)
|
||||||
type="bzip2"; uncomp="bunzip2 -dc"; ;;
|
type="bzip2"; uncomp="bunzip2 -dc"; ;;
|
||||||
*.xz)
|
*.xz)
|
||||||
type="xz"; uncomp="unxz -dc"; ;;
|
type="xz"; uncomp="unxz -dc"; ;;
|
||||||
*.zip)
|
*.zip)
|
||||||
type="zip"; uncomp="unzip -d"; ;;
|
type="zip"; uncomp="unzip -d"; ;;
|
||||||
*.Z)
|
*.Z)
|
||||||
type="compress"; uncomp="uncompress -c"; ;;
|
type="compress"; uncomp="uncompress -c"; ;;
|
||||||
*.diff*)
|
*.diff*)
|
||||||
type="diff"; uncomp="cat"; ;;
|
type="diff"; uncomp="cat"; ;;
|
||||||
*.patch*)
|
*.patch*)
|
||||||
type="patch"; uncomp="cat"; ;;
|
type="patch"; uncomp="cat"; ;;
|
||||||
*)
|
*)
|
||||||
echo "Unsupported file type for ${path}/${patch}, skipping";
|
echo "Unsupported file type for ${path}/${patch}, skipping";
|
||||||
return 0
|
return 0
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
fi
|
fi
|
||||||
if [ -z "$silent" ] ; then
|
if [ -z "$silent" ] ; then
|
||||||
echo ""
|
echo ""
|
||||||
echo "Applying $patch using ${type}: "
|
echo "Applying $patch using ${type}: "
|
||||||
fi
|
fi
|
||||||
if [ ! -e "${path}/$patch" ] ; then
|
if [ ! -e "${path}/$patch" ] ; then
|
||||||
echo "Error: missing patch file ${path}/$patch"
|
echo "Error: missing patch file ${path}/$patch"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
echo $patch >> ${builddir}/.applied_patches_list
|
echo $patch >> ${builddir}/.applied_patches_list
|
||||||
${uncomp} "${path}/$patch" | patch -g0 -p1 -E -d "${builddir}" -t -N $silent
|
${uncomp} "${path}/$patch" | patch -g0 -p1 -E -d "${builddir}" -t -N $silent
|
||||||
if [ $? != 0 ] ; then
|
if [ $? != 0 ] ; then
|
||||||
echo "Patch failed! Please fix ${patch}!"
|
echo "Patch failed! Please fix ${patch}!"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user