Commit a64f7062 authored by Daniel Brown's avatar Daniel Brown

adding win package builder

parent ac39a186
......@@ -273,33 +273,30 @@ build()
echo "Making Win32 package..." | tee -a $LOGFILE
mkdir tmp
cd tmp
# copies dll's needed from the cygwin installation
cp /bin/cygwin1.dll .
#cp /bin/cyggcc_s-1.dll .
#cp /bin/cygiconv-2.dll .
#cp /bin/cygintl-8.dll .
#cp /bin/cygncursesw-10.dll .
#cp /bin/cygpath.exe .
#cp /bin/sh.exe .
#cp /bin/cygreadline7.dll .
#cp /bin/ls.exe .
sys=`eval uname --machine`
echo "Making Windows $sys package..." | tee -a $LOGFILE
rm -rf $dir
mkdir $dir
cd $dir
cp ../.windlls/*.dll .
cp ../kat.exe .
cp ../CHANGES .
cp ../LICENSES .
cp ../README .
cp ../INSTALL .
zip ../ *
echo "Created Win32 distribution" | tee -a $LOGFILE
cp ../test.kat .
cp ../test_plot.kat .
cp ../install.bat .
echo "Created Windows distribution FINESSE_WIN_$" | tee -a $LOGFILE
cd ..
rm tmp -rf
from subprocess import Popen, PIPE
import shutil
import os
p = Popen(['cygcheck', 'kat'], stdin=PIPE, stdout=PIPE, stderr=PIPE)
out, err = p.communicate()
a = out.split("\n")
b = [c.strip() for c in a if c.find("cygwin") >= 0]
if os.path.exists(".windlls"):
for file in b:
print "Copying ", file
shutil.copyfile(file, os.path.join("./.windlls", os.path.basename(file.replace('\\','/'))))
print "Copied dlls into .windlls folder."
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment