forked from Arelle/Arelle
-
Notifications
You must be signed in to change notification settings - Fork 0
/
buildSol10Sun4Dist.sh
49 lines (36 loc) · 958 Bytes
/
buildSol10Sun4Dist.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
#!/bin/sh
# this file must have unix newlines (to prevent extraneous errors when running)
# must run sudo on ubuntu
PYTHON=python3.1
# create version with date and a shell file to name output with the date
${PYTHON} buildVersion.py
BUILT64=exe.solaris-2.10-sun4v-3.1
if [ -d build/${BUILT64} ]
then
rm -fR build/${BUILT64}
fi
mkdir build/${BUILT64}
if [ ! -d dist ]
then
mkdir dist
fi
# run cx_Freeze setup
${PYTHON} setup.py build
cp arelle/scripts-unix/* build/${BUILT64}
cd build/${BUILT64}
# for now there's no tkinter on solaris sun4 (intended for server only)
# rm arelleGUI
# add missing libraries
cp /usr/local/lib/libintl* .
tar -cf ../../dist/${BUILT64}.tar .
gzip ../../dist/${BUILT64}.tar
cd ../..
# add arelle into SEC XBRL.JAR
cd build
mv ${BUILT64} arelle
cp /export/home/slee/Documents/vm-files/XBRL.JAR ../dist
jar uf ../dist/XBRL.JAR arelle
mv arelle ${BUILT64}
cd ..
/bin/sh buildRenameSol10Sun4.sh
# rm -R build2