summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKynos <mail01@delago.net>2014-05-24 21:56:54 +0200
committerKynos <mail01@delago.net>2014-05-24 21:56:54 +0200
commitb11efcd7d97938e59fd2d5ec293cd98ccce2384e (patch)
tree3e338998e56262b1472b9de798f7d415cd3320d1
parent73392dc527e6be0b27afc0e905eaf8fade1f66dd (diff)
downloadnuttx-b11efcd7d97938e59fd2d5ec293cd98ccce2384e.tar.gz
nuttx-b11efcd7d97938e59fd2d5ec293cd98ccce2384e.tar.bz2
nuttx-b11efcd7d97938e59fd2d5ec293cd98ccce2384e.zip
Fix for sed "permission denied" error in Windows build
Cygwin sed in-place edit (option -i) broken, will mess up permissions. Changed to work without in-place edit.
-rwxr-xr-xnuttx/tools/configure.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/nuttx/tools/configure.sh b/nuttx/tools/configure.sh
index 89f2e2fbc..5d8f9b135 100755
--- a/nuttx/tools/configure.sh
+++ b/nuttx/tools/configure.sh
@@ -208,7 +208,8 @@ install "${src_config}" "${dest_config}" || \
# file
if [ "X${defappdir}" = "Xy" ]; then
- sed -i -e "/^CONFIG_APPS_DIR/d" "${dest_config}"
+ sed -e "/^CONFIG_APPS_DIR/d" "${dest_config}" > "${dest_config}-temp"
+ mv "${dest_config}-temp" "${dest_config}"
echo "" >> "${dest_config}"
echo "# Application configuration" >> "${dest_config}"
echo "" >> "${dest_config}"