Easier executables for Windows XP and Mac OS X
Fri Apr 21 19:33:25 WEST 2006 Miguel Vilaca <jmvilaca@di.uminho.pt>
* Easier executables for Windows XP and Mac OS X
Add scripts that automatically generate Windows XP and Mac OS X binary distributions.
- In Windows XP run 'makeDist.bat' and you will get INblobs.zip
- In Mac OS x run 'make macDist' and you will get INblobs.dmg
{
binary ./INblobs.exe
rmfile ./INblobs.exe
hunk ./Makefile 47
-blobs: $(OBJS)
+inblobs: $(OBJS)
hunk ./Makefile 57
+endif
+
+macDist: inblobs
+ifdef MAC
+ mkdir $(MAIN)
+ cp -r examples palettes html/HowToUse.html $(MAIN).app $(MAIN)
+ hdiutil create -srcfolder $(MAIN) $(MAIN).dmg
hunk ./index.html 57
- <li> Simply download <a href="INblobs.tar.gz">INblobs for Windows XP</a>;
+ <li> Simply download <a href="INblobs.zip">INblobs for Windows XP</a>;
addfile ./makeDist.bat
hunk ./makeDist.bat 1
+call makeclean.bat[_^M_][_$_]
+call startghc.bat[_^M_][_$_]
+@echo off[_^M_][_$_]
+mkdir INblobs[_^M_][_$_]
+copy INblobs.exe INblobs[_^M_][_$_]
+copy wxc-msw2.4.2-0.9.4.dll INblobs[_^M_][_$_]
+mkdir INblobs\html[_^M_][_$_]
+copy html\HowToUse.html INblobs\html[_^M_][_$_]
+mkdir INblobs\examples[_^M_][_$_]
+xcopy examples INblobs\examples [_^M_][_$_]
+mkdir INblobs\palettes[_^M_][_$_]
+xcopy palettes INblobs\palettes [_^M_][_$_]
+ECHO "If you don't have a zip command you'll see an error."[_^M_][_$_]
+ECHO "In such case zip sub-folder INblobs to INblobs.zip manually"[_^M_][_$_]
+zip -r -9 INblobs.zip INblobs[_^M_][_$_]
+ECHO "copy INblobs.zip to server"[_^M_][_$_]
+@echo on[_^M_][_$_]
}