1
0
mirror of https://github.com/minetest-mods/irc.git synced 2024-11-17 07:10:19 +01:00
irc/etc/zipmod.sh

40 lines
619 B
Bash
Raw Normal View History

2012-12-14 23:33:44 +01:00
#! /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;