diff options
author | Gregory Nutt <gnutt@nuttx.org> | 2014-10-15 12:25:47 -0600 |
---|---|---|
committer | Gregory Nutt <gnutt@nuttx.org> | 2014-10-15 12:25:47 -0600 |
commit | 2a4a784d5f3305039a03f1c1c35bf22560b8aa85 (patch) | |
tree | 0f034b18837cf6d29f520280b5bf9ee112f2f078 /nuttx/tools | |
parent | d545b612890a683d9ab826450bd7373da9be7a5f (diff) | |
download | nuttx-2a4a784d5f3305039a03f1c1c35bf22560b8aa85.tar.gz nuttx-2a4a784d5f3305039a03f1c1c35bf22560b8aa85.tar.bz2 nuttx-2a4a784d5f3305039a03f1c1c35bf22560b8aa85.zip |
Fix for BSD install without -D option
Diffstat (limited to 'nuttx/tools')
-rwxr-xr-x | nuttx/tools/mkromfsimg.sh | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/nuttx/tools/mkromfsimg.sh b/nuttx/tools/mkromfsimg.sh index 25329827b..04ae501c6 100755 --- a/nuttx/tools/mkromfsimg.sh +++ b/nuttx/tools/mkromfsimg.sh @@ -246,7 +246,11 @@ cat $rcstemplate | \ # And install it at the specified relative location -install -D -m 0755 $rcsfile $workingdir/$uinitscript || \ +# Fix for BSD install without -D option +mkdir -p $workingdir/$uinitscript +rmdir $workingdir/$uinitscript + +install -m 0755 $rcsfile $workingdir/$uinitscript || \ { echo "Failed to install $rcsfile at $workingdir/$uinitscript"; rm -f $rcsfile; exit 1; } rm -f $rcsfile |