1
0
mirror of https://github.com/minetest-mods/irc.git synced 2024-12-29 02:00:17 +01:00
irc/etc/zipmod.sh
Diego Martínez 3c72e4815a Various fixes
2012-12-14 20:33:44 -02:00

40 lines
619 B
Bash
Executable File

#! /bin/bash
# ONLY FOR MAINTAINER USE!!
ver=0.1.0;
do_make() # [PLATFORM]
{
TC_FILE='';
BLD_SFX='';
if [ "$1" ]; then
TC_FILE="-DCMAKE_TOOLCHAIN_FILE=x-$1.cmake";
BLD_SFX="-$1";
fi
mkdir -p Build$BLD_SFX;
cd Build$BLD_SFX;
cmake $TC_FILE .. || exit;
make || exit;
make pack_mod || exit;
cd ..;
}
cd "`dirname "$0"`/..";
rm -fr irc;
# Native Version
do_make;
tar cfz Kaeza-irc-$ver-`uname -s`-`uname -p`.tar.gz irc || exit;
rm -fr irc;
# Linux -> MinGW32 Crosscompiler
do_make i586-mingw32msvc;
zip -r Kaeza-irc-$ver-Win32.zip irc || exit;
rm -fr irc;