|
@@ -4,9 +4,10 @@
|
|
|
|
|
|
[osdetect]
|
|
|
#####################################################################
|
|
|
-# Autodetect OS (Linux or Dos or Windows NT)
|
|
|
+# Autodetect OS (Linux or Dos or Windows NT or OS/2)
|
|
|
# define inUnix when running under Unix (Linux,FreeBSD)
|
|
|
# define inWinNT when running under WinNT
|
|
|
+# define inOS2 when running under OS/2
|
|
|
#####################################################################
|
|
|
|
|
|
# We need only / in the path
|
|
@@ -23,6 +24,7 @@ nopwd:
|
|
|
@exit
|
|
|
else
|
|
|
inUnix=1
|
|
|
+PWD:=$(firstword $(PWD))
|
|
|
endif
|
|
|
else
|
|
|
PWD:=$(firstword $(PWD))
|
|
@@ -1232,6 +1234,9 @@ endif
|
|
|
ifeq ($(OS_TARGET),win32)
|
|
|
PACKAGESUFFIX=w32
|
|
|
endif
|
|
|
+ifeq ($(OS_TARGET),os2)
|
|
|
+PACKAGESUFFIX=emx
|
|
|
+endif
|
|
|
endif
|
|
|
|
|
|
# Temporary path to pack a file
|
|
@@ -1268,7 +1273,9 @@ ifdef USETAR
|
|
|
cd $(PACKDIR) ; $(TARPROG) cf$(TAROPT) $(DESTZIPDIR)/$(ZIPNAME)$(TAREXT) * ; cd $(BASEDIR)
|
|
|
else
|
|
|
$(DEL) $(DESTZIPDIR)/$(ZIPNAME)$(ZIPEXT)
|
|
|
- cd $(PACKDIR) ; $(ZIPPROG) -Dr $(ZIPOPT) $(DESTZIPDIR)/$(ZIPNAME)$(ZIPEXT) * ; cd $(BASEDIR)
|
|
|
+ cd $(PACKDIR)
|
|
|
+ $(ZIPPROG) -Dr $(ZIPOPT) $(DESTZIPDIR)/$(ZIPNAME)$(ZIPEXT) *
|
|
|
+ cd $(BASEDIR)
|
|
|
endif
|
|
|
$(DELTREE) $(PACKDIR)
|
|
|
endif
|