| author | ymh <ymh.work@gmail.com> |
| Fri, 13 Apr 2018 12:43:08 +0200 | |
| branch | documentation |
| changeset 696 | 06825f3aa213 |
| parent 690 | 5b6102a80205 |
| permissions | -rwxr-xr-x |
|
690
5b6102a80205
Force add of sh scripts and correct the dev/README.md
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
1 |
#!/usr/bin/env bash |
|
5b6102a80205
Force add of sh scripts and correct the dev/README.md
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
2 |
pushd () { |
|
5b6102a80205
Force add of sh scripts and correct the dev/README.md
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
3 |
command pushd "$@" > /dev/null |
|
5b6102a80205
Force add of sh scripts and correct the dev/README.md
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
4 |
} |
|
5b6102a80205
Force add of sh scripts and correct the dev/README.md
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
5 |
|
|
5b6102a80205
Force add of sh scripts and correct the dev/README.md
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
6 |
popd () { |
|
5b6102a80205
Force add of sh scripts and correct the dev/README.md
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
7 |
command popd "$@" > /dev/null |
|
5b6102a80205
Force add of sh scripts and correct the dev/README.md
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
8 |
} |
|
5b6102a80205
Force add of sh scripts and correct the dev/README.md
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
9 |
|
|
5b6102a80205
Force add of sh scripts and correct the dev/README.md
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
10 |
|
|
5b6102a80205
Force add of sh scripts and correct the dev/README.md
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
11 |
SCRIPTPATH="$( cd "$(dirname "$0")" ; pwd -P )" |
|
5b6102a80205
Force add of sh scripts and correct the dev/README.md
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
12 |
|
|
5b6102a80205
Force add of sh scripts and correct the dev/README.md
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
13 |
pushd $SCRIPTPATH |
|
5b6102a80205
Force add of sh scripts and correct the dev/README.md
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
14 |
|
|
5b6102a80205
Force add of sh scripts and correct the dev/README.md
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
15 |
echo "Building hdalab" |
|
5b6102a80205
Force add of sh scripts and correct the dev/README.md
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
16 |
pushd ../src |
|
5b6102a80205
Force add of sh scripts and correct the dev/README.md
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
17 |
|
|
5b6102a80205
Force add of sh scripts and correct the dev/README.md
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
18 |
HDALAB_ARCH_BASENAME=`python setup.py --fullname` |
|
5b6102a80205
Force add of sh scripts and correct the dev/README.md
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
19 |
python setup.py sdist |
|
5b6102a80205
Force add of sh scripts and correct the dev/README.md
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
20 |
popd |
|
5b6102a80205
Force add of sh scripts and correct the dev/README.md
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
21 |
|
|
5b6102a80205
Force add of sh scripts and correct the dev/README.md
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
22 |
rm -fr hdalab/dist/* |
|
5b6102a80205
Force add of sh scripts and correct the dev/README.md
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
23 |
mkdir -p hdalab/dist/data |
|
5b6102a80205
Force add of sh scripts and correct the dev/README.md
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
24 |
mkdir -p hdalab/dist/renkan |
|
5b6102a80205
Force add of sh scripts and correct the dev/README.md
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
25 |
|
|
5b6102a80205
Force add of sh scripts and correct the dev/README.md
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
26 |
echo "building renkanmanager" |
|
5b6102a80205
Force add of sh scripts and correct the dev/README.md
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
27 |
echo "-> downloading renkan" |
|
5b6102a80205
Force add of sh scripts and correct the dev/README.md
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
28 |
curl "https://www.iri.centrepompidou.fr/dev/hg/renkan/archive/tip.tar.gz" -o hdalab/dist/renkan/renkan.tar.gz |
|
5b6102a80205
Force add of sh scripts and correct the dev/README.md
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
29 |
pushd hdalab/dist/renkan |
|
5b6102a80205
Force add of sh scripts and correct the dev/README.md
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
30 |
tar zxf renkan.tar.gz --strip 1 |
|
5b6102a80205
Force add of sh scripts and correct the dev/README.md
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
31 |
popd |
|
5b6102a80205
Force add of sh scripts and correct the dev/README.md
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
32 |
echo "-> building renkan" |
|
5b6102a80205
Force add of sh scripts and correct the dev/README.md
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
33 |
pushd hdalab/dist/renkan/server/python/django |
|
5b6102a80205
Force add of sh scripts and correct the dev/README.md
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
34 |
|
|
5b6102a80205
Force add of sh scripts and correct the dev/README.md
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
35 |
RENKANMANAGER_ARCH_BASENAME=`python setup.py --fullname` |
|
5b6102a80205
Force add of sh scripts and correct the dev/README.md
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
36 |
python setup.py sdist |
|
5b6102a80205
Force add of sh scripts and correct the dev/README.md
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
37 |
popd |
|
5b6102a80205
Force add of sh scripts and correct the dev/README.md
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
38 |
cp "hdalab/dist/renkan/server/python/django/dist/$RENKANMANAGER_ARCH_BASENAME.tar.gz" hdalab/dist/renkanmanager.tar.gz |
|
5b6102a80205
Force add of sh scripts and correct the dev/README.md
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
39 |
echo "-> cleaning renkan" |
|
5b6102a80205
Force add of sh scripts and correct the dev/README.md
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
40 |
rm -fr hdalab/dist/renkan |
|
5b6102a80205
Force add of sh scripts and correct the dev/README.md
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
41 |
|
|
5b6102a80205
Force add of sh scripts and correct the dev/README.md
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
42 |
cp ../virtualenv/web/res/base_requirements.txt hdalab/dist/ |
|
5b6102a80205
Force add of sh scripts and correct the dev/README.md
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
43 |
cp "../src/dist/$HDALAB_ARCH_BASENAME.tar.gz" hdalab/dist/hdalab.tar.gz |
|
5b6102a80205
Force add of sh scripts and correct the dev/README.md
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
44 |
cp ../data/* hdalab/dist/data/ |
|
5b6102a80205
Force add of sh scripts and correct the dev/README.md
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
45 |
|
|
5b6102a80205
Force add of sh scripts and correct the dev/README.md
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
46 |
popd |