support/scripts: add relocate-sdk.sh script for SDK relocation
authorWolfgang Grandegger <wg@grandegger.com>
Fri, 30 Jun 2017 08:37:04 +0000 (10:37 +0200)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Tue, 4 Jul 2017 15:59:37 +0000 (17:59 +0200)
commit8ec29ef3e4eba720605487149d169df17d7dce5a
tree41f58a7bc03b9848d9a24d2e547b0f4c689951eb
parent4c18b5c378947cb61206ddc841546e1309884bba
support/scripts: add relocate-sdk.sh script for SDK relocation

It will install the script "relocate-sdk.sh" in the HOST_DIR
allowing to adjust the path to the SDK directory in all text
files after it has been moved to a new location.

Signed-off-by: Wolfgang Grandegger <wg@grandegger.com>
[Thomas:
 - Fix shebang to be /bin/sh instead of /bin/bash, suggested by Arnout
 - Use | instead of \ as a separator for sed expressions, suggested by
   Arnout, discussed with Wolfgang and others
 - Remove ./ at the beginning of LOCFILE, suggested by Arnout
 - Fix comment about the path check being made before doing the
   replacement, suggested by Arnout
 - Fix indentation, suggested by Arnout.]
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
support/misc/relocate-sdk.sh [new file with mode: 0755]