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