automatic support for upx if available
authorPat Thoyts <patthoyts@users.sourceforge.net>
Sat, 24 Nov 2007 14:45:07 +0000 (14:45 +0000)
committerPat Thoyts <patthoyts@users.sourceforge.net>
Sat, 24 Nov 2007 14:45:07 +0000 (14:45 +0000)
git-svn-id: svn://svn.equi4.com/kitgen/trunk@1849 9e558909-932a-0410-a563-af77432da1eb

config.sh

index 4a9f302013aef1b1684e35ed2416fdf6bf1effb1..f87509197894760f8c7355766e9eed4d95b8e69e 100755 (executable)
--- a/config.sh
+++ b/config.sh
@@ -27,6 +27,7 @@ while test $# != 0
 make=$path/Makefile
 mach=`uname`
 plat=unix
+upx=`which upx`
 
 echo "Configuring $make for $mach."
 mkdir -p $path
@@ -93,6 +94,7 @@ case $cli-$dyn-$gui in 0-0-0) cli=1 dyn=1 gui=1 ;; esac
       echo 'GUIOBJ     = $(OBJ) $(OUTDIR)/winMain.o $(OUTDIR)/tclkit.res.o'
       echo 'PRIV       = install-private-headers'
       echo 'EXE        = .exe'
+      [ -x $upx ] && echo "UPX        = $upx"
       plat=win
       ;;