From 2a2f197bf52c66df1a75c47ce905d63b929bab38 Mon Sep 17 00:00:00 2001
From: sam <sam@92316355-f0b4-4df1-b90c-862c8a59935f>
Date: Sat, 25 Oct 2008 01:04:48 +0000
Subject: [PATCH] Add a launcher for pipi.exe in the Win32 package.

git-svn-id: file:///srv/caca.zoy.org/var/lib/svn/libpipi/trunk@3096 92316355-f0b4-4df1-b90c-862c8a59935f
---
 build-win32 | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/build-win32 b/build-win32
index b5be83b..ec2e649 100755
--- a/build-win32
+++ b/build-win32
@@ -32,6 +32,11 @@ rm -Rf "${BUILDDIR}"
 #i586-mingw32msvc-strip "${INSTALLDIR}/bin/"*.exe || true
 #i586-mingw32msvc-strip "${INSTALLDIR}/lib/"*.dll || true
 
+# Install pipi.exe
+echo 'int main(int argc, char *argv[], char *envp[]) { argv[0] = ".\\bin\\pipi.exe"; execve(argv[0], argv, envp); return 0; }' > run.c
+i586-mingw32msvc-gcc run.c -mwindows -o "${INSTALLDIR}/pipi.exe"
+i586-mingw32msvc-strip "${INSTALLDIR}/pipi.exe"
+
 # Install gtk-sharp
 cp -r "win32/gtksharp/"* "${INSTALLDIR}/"
 find "${INSTALLDIR}/" -name .svn -prune -exec rm -rf '{}' ';'