comparison loadtools/install-helpers.sh @ 384:7ef814efbebe

loadtools: make install logic refactored in light of compalstage addition
author Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
date Tue, 10 Jun 2014 08:49:55 +0000
parents
children
comparison
equal deleted inserted replaced
383:326363ba5bf4 384:7ef814efbebe
1 #!/bin/sh
2 # A functional installation of FreeCalypso loadtools consists of not only
3 # the fc-* host binaries, but also the loadagent and compalstage target
4 # binaries and some script and help files. This shell script is
5 # responsible for installing the latter.
6
7 instdir=/usr/local/share/freecalypso
8 set -ex
9 mkdir -p $instdir
10
11 # The target-binaries directory may or may not be present. Loadagent and
12 # compalstage are built in the target-utils tree with the ARM7 toolchain,
13 # hence having prebuilt binaries would be an important convenience for
14 # end user releases. But if one is working with just a source tree, with
15 # nothing prebuilt, there will be no target-binaries directory here;
16 # one needs to have the ARM7 toolchain installed, then build target-utils,
17 # then do a 'make install' there.
18
19 if [ -d target-binaries ]
20 then
21 install -c target-binaries/* $instdir
22 fi
23
24 # scripts and loadtool.help should always be present
25 install -c scripts/* loadtool.help $instdir