#!/bin/bash
#
echo =====================================================
echo PACKAGES NAMES
echo =====================================================
PACKAGE_SOURCES="cooldt-1-sources.tar.gz"
PACKAGE_LINUX64="cooldt-1-linux64.tar.gz"
PACKAGE_WIN32_WIN64="cooldt-1-win32-win64.zip"
echo =====================================================
echo CLEAN
echo =====================================================
make -f Makefile clean
make -f Makefile PLATFORM=WIN32 clean
make -f Makefile PLATFORM=WIN64 clean
echo
echo =====================================================
echo BUILD Linux
echo =====================================================
make -f Makefile
echo
echo =====================================================
echo BUILD Win32
echo =====================================================
make -f Makefile PLATFORM=WIN32
echo
echo =====================================================
echo BUILD Win64
echo =====================================================
make -f Makefile PLATFORM=WIN64
echo
echo =====================================================
echo PACKAGE SOURCES
echo =====================================================
rm $PACKAGE_SOURCES
tar --exclude-vcs -zcvf $PACKAGE_SOURCES \
Cooldt.cbp \
CooldtSheet.ods \
CooldtSheet.xls \
example.dat \
gnuplot-script.gp \
LICENSE.txt \
Make-Packages.sh \
Makefile \
MakefileWindows.mak \
README.txt \
RunInterfaceGenerator.mak \
RunInterfaceGeneratorWindows.mak \
source
echo
echo =====================================================
echo PACKAGE FOR LINUX 64
echo =====================================================
rm $PACKAGE_LINUX64
tar -zcvf $PACKAGE_LINUX64 \
cooldt \
CooldtSheet.ods \
example.dat \
gnuplot-script.gp \
LICENSE.txt \
README.txt
echo
echo =====================================================
echo PACKAGE FOR WINDOWS 32/64
echo =====================================================
rm $PACKAGE_WIN32_WIN64
zip -9 $PACKAGE_WIN32_WIN64 \
cooldt.exe \
cooldt.xll \
cooldt-w64.exe \
cooldt-w64.xll \
CooldtSheet.ods \
CooldtSheet.xls \
example.dat \
gnuplot-script.gp \
LICENSE.txt \
README.txt
echo
echo =====================================================
echo END OF Make-Packages
echo =====================================================