2 # ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
4 # + This file is part of enGrid. +
6 # + Copyright 2008-2014 enGits GmbH +
8 # + enGrid is free software: you can redistribute it and/or modify +
9 # + it under the terms of the GNU General Public License as published by +
10 # + the Free Software Foundation, either version 3 of the License, or +
11 # + (at your option) any later version. +
13 # + enGrid is distributed in the hope that it will be useful, +
14 # + but WITHOUT ANY WARRANTY; without even the implied warranty of +
15 # + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +
16 # + GNU General Public License for more details. +
18 # + You should have received a copy of the GNU General Public License +
19 # + along with enGrid. If not, see <http://www.gnu.org/licenses/>. +
21 # ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
28 #filename = tempfile.mkstemp()[1]
29 tmpdir
= tempfile
.mkdtemp()
31 print "================"
33 print "================"
35 ldd_log
= tmpdir
+ "/ldd.out"
36 command
= "ldd ./engrid > " + ldd_log
40 libdir
=tmpdir
+ "/enGrid"
47 infile
= open(ldd_log
, "r")
49 print "name="+infile
.name
51 p1
= re
.compile('\s\S+\s=>\s(\S+)\s\(\S+\)\s')
52 p2
= re
.compile('\s(\S+)\s\(\S+\)\s')
58 liblist
.append(m1
.group(1))
64 liblist
.append(m2
.group(1))
68 print "count = ", count
69 print "liblist = ", liblist
70 print "len(liblist) = ", len(liblist
)
74 shutil
.copy(lib
,libdir
)
76 print "================"
78 print "================"
80 #cp engrid $TMPDIR/enGrid
81 #cp start_engrid enGrid
82 #tar -czvf enGrid_bin.tar.gz $TMPDIR/enGrid/*