forked from Arelle/Arelle
-
Notifications
You must be signed in to change notification settings - Fork 0
/
buildSol10Sun4Dist-64bit33.sh
58 lines (45 loc) · 1.31 KB
/
buildSol10Sun4Dist-64bit33.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
50
51
52
53
54
55
56
57
58
#!/bin/sh
# this file must have unix newlines (to prevent extraneous errors when running)
# must run sudo on ubuntu
PYTHON=python3.3
# create version with date and a shell file to name output with the date
${PYTHON} buildVersion.py
BUILT64=exe.solaris-2.10-sun4v.64bit-3.3
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/sparcv9/libiconv.so* .
cp /usr/local/lib/sparcv9/libintl.so* .
cp /usr/local/lib/sparcv9/libexslt.so* .
cp /usr/local/lib/sparcv9/libxslt.so* .
cp /usr/local/lib/sparcv9/libxml2.so* .
cp /usr/local/lib/sparcv9/libgdbm.so* .
cp /usr/local/lib/sparcv9/libsqlite3.so* .
cp /usr/local/lib/sparcv9/libreadline.so* .
cp /usr/local/lib/sparcv9/libhistory.so* .
cp /usr/local/lib/sparcv9/libz.so* .
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