Commit 8ac275e0 authored by Martin Erik Werner's avatar Martin Erik Werner

Imported Upstream version 0.1

parent 2a116a10
Joosa Reikkinen, also known as Mets„nEl„imet created the original Liero
game and graphics.
Erik Lindroos "Gliptic", with help from Mario Carbajal "basro", re-created
Liero as OpenLiero, which later became the official version of Liero.
Martin Erik Werner "arand" created lierolibre as a direct fork from Liero
(OpenLiero).
"sea" created the replacement sounds used in lierolibre.
lierolibre, the gvl library, and the data helper scripts are released under the
BDS-2-Clause License
The original graphics for Liero, the new replacement sounds, and the
configuration variables extracted from the original game are released under
the WTFPL license. Note that the old freeware license in data/LIERO(ENG).TXT
no longer applies.
One of the items included in the uthread module (and therefore the whole
module) is GPLv2+ however this module is not used in the gvl library.
The included copy of Zlib is licensed under the Zlib license.
The type_info header is licensed under the Boost Software License 1.0, and
is included in the gvl library.
The SDL m4 script is LGPLv2.1+.
Content without a specified license is assumed to be released under the
BSD-2-Clause license, this includes the autotools content.
The following section is written in the 'machine-readable copyright format'
as specified by the Debian project.
-----//-----
Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
Source: https://gitorious.org/lierolibre
Upstream-Contact: Martin Erik Werner <martinerikwerner@gmail.com>
Files: *
Copyright: 2007-2010, Erik Lindroos <gliptic@gmail.com>
2010, Mario Carbajal "basro"
License: BSD-2-Clause
Files: console.* exactObjectList.hpp fastObjectList.hpp lfs.hpp rand.*
rect.hpp sdlmain.cpp sfx.* sobject.* sys.* text.* _build/*
Copyright: 2007-2010, Erik Lindroos <gliptic@gmail.com>
License: BSD-2-Clause
Files: binReader.* constants.* main.cpp math.* reader.*
Copyright: 2007-2010, Erik Lindroos <gliptic@gmail.com>
2012, Martin Erik Werner <martinerikwerner@gmail.com>
License: BSD-2-Clause
Files: common.* controller/localController.cpp gfx.* gfx/font.* Jamfile
level.* menu/menu.* settings.* worm.*
Copyright: 2007-2010, Erik Lindroos <gliptic@gmail.com>
2010, Mario Carbajal "basro"
2012, Martin Erik Werner <martinerikwerner@gmail.com>
License: BSD-2-Clause
Files: boostTesting.cpp configHelper.* configInit.* dataPath.* to_string.*
AUTHORS autogen.sh ChangeLog configure.ac COPYING Makefile.am NEWS
README
Copyright: 2012, Martin Erik Werner <martinerikwerner@gmail.com>
License: BSD-2-Clause
Comment: The full license texts in this document are separate entities with
separate licenses, and not covered under the BSD-2-Clause license
Files: aclocal.m4 config.h.in configure Makefile.in build-aux/* m4/*
Copyright: 1992-2011, Free Software Foundation, Inc.
License: GPL-2+ or BSD-2-Clause
Comment: Autotools content is distributed under the lierolibre license, if they
are used outside of lierolibre the GPL-2+ license applies instead
Files: m4/sdl.m4
Copyright: 1997-2012 Sam Lantinga
License: LGPL-2.1+
Files: data/*
Copyright: 1998-1999 Joosa Reikkinen "Mets„nEl„imet"
License: WTFPL
Comment: Note that the old freeware license in data/LIERO(ENG).TXT no longer
applies.
Files: data/sounds/*.wav
Copyright: 2012, "sea"
License: WTFPL
Files: data/liero.cfg
Copyright: 1998-1999 Joosa Reikkinen "Mets„nEl„imet"
2012 Martin Erik Werner <martinerikwerner@gmail.com>
License: WTFPL
Files: scripts/lierolibre-extractsounds scripts/lierolibre-packsounds
scripts/lierolibre-extractgfx scripts/lierolibre-packgfx
scripts/lierolibre-extractlev scripts/lierolibre-packlev
Copyright: 2012, Martin Erik Werner <martinerikwerner@gmail.com>
License: BSD-2-Clause
Files: gvl/*
Copyright: 2007-2010, Erik Lindroos <gliptic@gmail.com>
License: BSD-2-Clause
Files: gvl/zlib/*
Copyright: 1995-2005 Jean-loup Gailly
1995-2005 Mark Adler
License: Zlib
Files: gvl/uthread/uthread_config.hpp
Copyright: 2003 Davide Libenzi
License: GPL-2+
Comment: This file is not used in the the gvl library
Files: gvl/support/type_info.hpp
Copyright: 2002 David Abrahams
License: BSL-1.0
License: BSD-2-Clause
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright notice,
this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.
.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
POSSIBILITY OF SUCH DAMAGE.
License: WTFPL
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
Version 2, December 2004
.
Copyright (C) 2004 Sam Hocevar <sam@hocevar.net>
.
Everyone is permitted to copy and distribute verbatim or modified
copies of this license document, and changing it is allowed as long
as the name is changed.
.
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
.
0. You just DO WHAT THE FUCK YOU WANT TO.
License: Zlib
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages
arising from the use of this software.
.
Permission is granted to anyone to use this software for any purpose,
including commercial applications, and to alter it and redistribute it
freely, subject to the following restrictions:
.
1. The origin of this software must not be misrepresented; you must not
claim that you wrote the original software. If you use this software
in a product, an acknowledgment in the product documentation would be
appreciated but is not required.
.
2. Altered source versions must be plainly marked as such, and must not be
misrepresented as being the original software.
.
3. This notice may not be removed or altered from any source
distribution.
License: BSL-1.0
Boost Software License - Version 1.0 - August 17th, 2003
.
Permission is hereby granted, free of charge, to any person or organization
obtaining a copy of the software and accompanying documentation covered by
this license (the "Software") to use, reproduce, display, distribute,
execute, and transmit the Software, and to prepare derivative works of the
Software, and to permit third-parties to whom the Software is furnished to
do so, all subject to the following:
.
The copyright notices in the Software and this entire statement, including
the above license grant, this restriction and the following disclaimer,
must be included in all copies of the Software, in whole or in part, and
all derivative works of the Software, unless such copies or derivative
works are solely in the form of machine-executable object code generated by
a source language processor.
.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT
SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE
FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE,
ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
DEALINGS IN THE SOFTWARE.
License: GPL-2+
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software Foundation, Inc.,
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
License: LGPL-2.1+
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the License, or (at your option) any later version.
.
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Lesser General Public License for more details.
.
You should have received a copy of the GNU Lesser General Public
License along with this library; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
Dummy file, see NEWS and 'git log'.
This diff is collapsed.
SubDir TOP liero ;
SubDir TOP ;
C++FLAGS = -Wall -I$(TOP) -DNDEBUG ;
CFLAGS = -Wall -I$(TOP) -DNDEBUG ;
C++FLAGS = -Wall -I$(TOP) -I/usr/include -DNDEBUG -g ;
CFLAGS = -Wall -I$(TOP) -I/usr/include -DNDEBUG -g ;
OPTIM = -O3 ;
LINK = "g++" ;
LINKLIBS on openliero$(SUFEXE) = -lSDL -lSDL_mixer -lrt ;
LINKLIBS on lierolibre$(SUFEXE) = -lSDL -lSDL_mixer -lrt -lconfig++ ;
Main openliero : bobject.cpp bonus.cpp common.cpp console.cpp
Main lierolibre : bobject.cpp bonus.cpp common.cpp console.cpp
constants.cpp filesystem.cpp game.cpp
gfx.cpp keys.cpp level.cpp main.cpp math.cpp
ninjarope.cpp nobject.cpp rand.cpp
reader.cpp sdlmain.cpp replay.cpp settings.cpp sfx.cpp
sobject.cpp sys.cpp text.cpp viewport.cpp weapon.cpp
weapsel.cpp worm.cpp
dataPath.cpp
binReader.cpp
to_string.cpp
configHelper.cpp
configInit.cpp
controller/commonController.cpp
controller/localController.cpp
controller/replayController.cpp
gfx/blit.cpp
gfx/font.cpp
gfx/palette.cpp
gfx/sprite.cpp
menu/booleanSwitchBehavior.cpp
menu/enumBehavior.cpp
menu/hiddenMenu.cpp
......@@ -32,9 +38,9 @@ Main openliero : bobject.cpp bonus.cpp common.cpp console.cpp
menu/menuItem.cpp
menu/timeBehavior.cpp
;
MakeLocate openliero$(SUFEXE) : $(TOP)/liero/_bin ;
LinkLibraries openliero : libgvl ;
MakeLocate lierolibre$(SUFEXE) : $(TOP)/_bin ;
LinkLibraries lierolibre : libgvl ;
SubInclude TOP gvl ;
This diff is collapsed.
This source diff could not be displayed because it is too large. You can view the blob instead.
lierolibre NEWS - History of user-visible changes.
Version 0.1 - April 2012, by Martin Erik Werner
* The gvl library is now included in the source release of lierolibre
* Several non-free items were removed from the gvl library
* Extracted variables from LIERO.EXE
+ It is now possible to run lierolibre independently of LIERO.EXE using a text
config file
+ Variables may be edited directly in the text file
+ Variables may be extracted from a modded LIERO.EXE into a new text file
* Updated gvl library to build and work with Liero and lierolibre
* Replaced original sounds with completely free content
* Added scripts for extracting and repacking sounds, graphics, and levels
+ sounds and graphics are kept in unpacked format and must be packed prior
to running the game
* DataPath module for integration into a nix-like system
+ Ability to handle separation between a writable home directory and a
read-only data directory
lierolibre is an old-school earthworm action game. It is a direct fork of Liero
(OpenLiero).
Features:
* 2 worms, 40 weapons, great playability, two game modes: Kill'em All and Game
of Tag, plus AI-players without true intelligence!
* Dat nostalgia
* Extensions via a hidden F1 menu
+ Replays
+ Game controller support
+ Powerlevel palettes
* Ability to write game variables to plain text files
* Ability to load game variables from both EXE and plain text files
* New freely licensed audio
* Scripts to extract and repack graphics, sounds and levels
Microsoft Visual Studio Solution File, Format Version 10.00
# Visual Studio 2008
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "liero", "liero.vcproj", "{CDE258F8-90DB-407B-8521-AA531EE4D167}"
ProjectSection(ProjectDependencies) = postProject
{57ADDF43-2FAC-4C85-8D88-72DEE580A3C9} = {57ADDF43-2FAC-4C85-8D88-72DEE580A3C9}
EndProjectSection
EndProject
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "gvl_test", "..\..\gvl\gvl_test\_build\gvl_test.vcproj", "{84C16952-2A28-4539-A6CC-1AEE30DF00D6}"
ProjectSection(ProjectDependencies) = postProject
{57ADDF43-2FAC-4C85-8D88-72DEE580A3C9} = {57ADDF43-2FAC-4C85-8D88-72DEE580A3C9}
EndProjectSection
EndProject
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "gvl", "..\..\gvl\_build\gvl.vcproj", "{57ADDF43-2FAC-4C85-8D88-72DEE580A3C9}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Win32 = Debug|Win32
Debug|x64 = Debug|x64
Release|Win32 = Release|Win32
Release|x64 = Release|x64
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{CDE258F8-90DB-407B-8521-AA531EE4D167}.Debug|Win32.ActiveCfg = Debug|Win32
{CDE258F8-90DB-407B-8521-AA531EE4D167}.Debug|Win32.Build.0 = Debug|Win32
{CDE258F8-90DB-407B-8521-AA531EE4D167}.Debug|x64.ActiveCfg = Debug|x64
{CDE258F8-90DB-407B-8521-AA531EE4D167}.Debug|x64.Build.0 = Debug|x64
{CDE258F8-90DB-407B-8521-AA531EE4D167}.Release|Win32.ActiveCfg = Release|Win32
{CDE258F8-90DB-407B-8521-AA531EE4D167}.Release|Win32.Build.0 = Release|Win32
{CDE258F8-90DB-407B-8521-AA531EE4D167}.Release|x64.ActiveCfg = Release|Win32
{84C16952-2A28-4539-A6CC-1AEE30DF00D6}.Debug|Win32.ActiveCfg = Debug|Win32
{84C16952-2A28-4539-A6CC-1AEE30DF00D6}.Debug|Win32.Build.0 = Debug|Win32
{84C16952-2A28-4539-A6CC-1AEE30DF00D6}.Debug|x64.ActiveCfg = Debug|x64
{84C16952-2A28-4539-A6CC-1AEE30DF00D6}.Debug|x64.Build.0 = Debug|x64
{84C16952-2A28-4539-A6CC-1AEE30DF00D6}.Release|Win32.ActiveCfg = Release|Win32
{84C16952-2A28-4539-A6CC-1AEE30DF00D6}.Release|x64.ActiveCfg = Release|Win32
{57ADDF43-2FAC-4C85-8D88-72DEE580A3C9}.Debug|Win32.ActiveCfg = Debug|Win32
{57ADDF43-2FAC-4C85-8D88-72DEE580A3C9}.Debug|Win32.Build.0 = Debug|Win32
{57ADDF43-2FAC-4C85-8D88-72DEE580A3C9}.Debug|x64.ActiveCfg = Debug|x64
{57ADDF43-2FAC-4C85-8D88-72DEE580A3C9}.Debug|x64.Build.0 = Debug|x64
{57ADDF43-2FAC-4C85-8D88-72DEE580A3C9}.Release|Win32.ActiveCfg = Release|Win32
{57ADDF43-2FAC-4C85-8D88-72DEE580A3C9}.Release|Win32.Build.0 = Release|Win32
{57ADDF43-2FAC-4C85-8D88-72DEE580A3C9}.Release|x64.ActiveCfg = Release|Win32
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
EndGlobal
This diff is collapsed.
This diff is collapsed.
#!/bin/sh
autoreconf --force --install
// Compile via: g++ -c -lSDL binReader.cpp
#include <stdexcept>
// Needed for cross-platform *int32 definitions
#include <SDL/SDL.h>
#include "binReader.hpp"
using namespace std;
void checkedFread(void* ptr, size_t size, size_t count, FILE* f)
{
if(fread(ptr, size, count, f) != count)
throw runtime_error("fread failed to read fully");
}
string readPascalString(FILE* f)
{
unsigned char length;
checkedFread(&length, 1, 1, f);
char txt[256];
checkedFread(txt, 1, length, f);
return string(txt, length);
}
string readPascalString(FILE* f, unsigned char fieldLen)
{
char txt[256];
checkedFread(txt, 1, fieldLen, f);
unsigned char length = static_cast<unsigned char>(txt[0]);
return string(txt + 1, length);
}
void writePascalString(FILE* f, string const& str, unsigned char fieldLen)
{
int len = int(str.size() < fieldLen ? str.size() : fieldLen - 1);
size_t zeroes = fieldLen - 1 - len;
fputc(len, f);
fwrite(str.data(), 1, len, f);
for(size_t i = 0; i < zeroes; ++i)
fputc(0, f);
}
string readPascalStringAt(FILE* f, int location)
{
unsigned char length;
fseek(f, location, SEEK_SET);
checkedFread(&length, 1, 1, f);
char txt[256];
checkedFread(txt, 1, length, f);
return string(txt, length);
}
Uint32 readUint8(FILE* f)
{
unsigned char temp[1];
checkedFread(temp, 1, 1, f);
return temp[0];
}
void writeUint8(FILE* f, Uint32 v)
{
fputc(v & 0xff, f);
}
Sint32 readSint8(FILE* f)
{
char temp[1];
checkedFread(temp, 1, 1, f);
return temp[0];
}
Uint32 readUint16(FILE* f)
{
unsigned char temp[2];
checkedFread(temp, 1, 2, f);
return temp[0] + (temp[1] << 8);
}
void writeUint16(FILE* f, Uint32 v)
{
fputc(v & 0xff, f);
fputc((v >> 8) & 0xff, f);
}
Sint32 readSint16(FILE* f)
{
unsigned char temp[2];
checkedFread(temp, 1, 2, f);
return temp[0] + (static_cast<char>(temp[1]) << 8);
}
Uint32 readUint32(FILE* f)
{
unsigned char temp[4];
checkedFread(temp, 1, 4, f);
return temp[0] + (temp[1] << 8) + (temp[2] << 16) + (temp[3] << 24);
}
Sint32 readSint32(FILE* f)
{
unsigned char temp[4];
checkedFread(temp, 1, 4, f);
return temp[0] + (temp[1] << 8) + (temp[2] << 16) + (static_cast<char>(temp[3]) << 24);
}
/*
* Copyright (c) 2010, Erik Lindroos <gliptic@gmail.com>
* Copyright (c) 2012, Martin Erik Werner <martinerikwerner@gmail.com>
* This software is released under the The BSD-2-Clause License:
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
* * Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
* * Redistributions in binary form must reproduce the above copyright notice,
* this list of conditions and the following disclaimer in the documentation
* and/or other materials provided with the distribution.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
* POSSIBILITY OF SUCH DAMAGE.
*/
#ifndef VAR_READER_HPP
#define VAR_READER_HPP
#include <SDL/SDL.h>
#include <string>
void checkedFread(void* ptr, size_t size, size_t count, FILE* f);
std::string readPascalString(FILE* f);
std::string readPascalString(FILE* f, unsigned char fieldLen);
std::string readPascalStringAt(FILE* f, int location);
void writePascalString(FILE* f, std::string const& str, unsigned char fieldLen);
Uint32 readUint8(FILE* f);
Sint32 readSint8(FILE* f);
Uint32 readUint16(FILE* f);
Sint32 readSint16(FILE* f);
Uint32 readUint32(FILE* f);
Sint32 readSint32(FILE* f);
void writeUint8(FILE* f, Uint32 v);
void writeUint16(FILE* f, Uint32 v);
#endif //VAR_READER_HPP
#! /bin/sh
# Wrapper for compilers which do not understand '-c -o'.
scriptversion=2012-01-04.17; # UTC
# Copyright (C) 1999, 2000, 2003, 2004, 2005, 2009, 2010, 2012 Free
# Software Foundation, Inc.
# Written by Tom Tromey <tromey@cygnus.com>.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2, or (at your option)
# any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
# As a special exception to the GNU General Public License, if you
# distribute this file as part of a program that contains a
# configuration script generated by Autoconf, you may include it under
# the same distribution terms that you use for the rest of that program.
# This file is maintained in Automake, please report
# bugs to <bug-automake@gnu.org> or send patches to
# <automake-patches@gnu.org>.
nl='
'
# We need space, tab and new line, in precisely that order. Quoting is
# there to prevent tools from complaining about whitespace usage.
IFS=" "" $nl"
file_conv=
# func_file_conv build_file lazy
# Convert a $build file to $host form and store it in $file
# Currently only supports Windows hosts. If the determined conversion
# type is listed in (the comma separated) LAZY, no conversion will
# take place.
func_file_conv ()
{
file=$1
case $file in
/ | /[!/]*) # absolute file, and not a UNC file
if test -z "$file_conv"; then
# lazily determine how to convert abs files
case `uname -s` in
MINGW*)
file_conv=mingw
;;
CYGWIN*)
file_conv=cygwin
;;
*)
file_conv=wine
;;
esac
fi
case $file_conv/,$2, in
*,$file_conv,*)
;;
mingw/*)