forked from Arelle/Arelle
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuildRedhatDist.sh
More file actions
45 lines (34 loc) · 1.04 KB
/
buildRedhatDist.sh
File metadata and controls
45 lines (34 loc) · 1.04 KB
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
#!/bin/sh
# this file must have unix newlines (to prevent extraneous errors when running)
# must run sudo on ubuntu
# create version with date and a shell file to name output with the date
python3.5 buildVersion.py redhat
BUILT64=exe.linux-x86_64-3.5
if [ -d build/${BUILT64} ]
then
rm -fR build/${BUILT64}
fi
mkdir build/${BUILT64}
if [ ! -d dist ]
then
mkdir dist
fi
rm -f dist/arelle-redhat*
# run cx_Freeze setup
python3.5 setup.py build_exe
cp arelle/scripts-unix/* build/${BUILT64}
# remove .git subdirectories
find build/${BUILT64} -name .git -exec rm -fR {} \;
# copy red hat libraries needed
cp -p /usr/lib64/libexslt.so.0 build/${BUILT64}
cp -p /usr/lib64/libxml2.so build/${BUILT64}
# for some reason redhat needs libxml2.so.2 as well
cp -p /usr/lib64/libxml2.so.2 build/${BUILT64}
cp -p /usr/lib64/libxslt.so.1 build/${BUILT64}
cp -p /lib64/libz.so.1 build/${BUILT64}
cp -pR /usr/local/lib/Tktable2.11 build/${BUILT64}
cd build/${BUILT64}
tar -czf ../../dist/${BUILT64}.tgz .
cd ../..
/bin/sh buildRenameLinux-x86_64.sh
# rm -R build2