@@ -71,6 +71,12 @@ PATHDEBPKG=$(TARGETDIR)/DEB
7171# BZ2 Packaging path (where BZ2s will be stored)
7272PATHBZ2PKG =$(TARGETDIR ) /BZ2
7373
74+ # sed argument for in-place substitutions
75+ SEDINPLACE =-i
76+ ifeq ($(shell uname -s) ,Darwin)
77+ SEDINPLACE=-i ''
78+ endif
79+
7480# Default port number for the example server
7581PORT? =8000
7682
@@ -151,12 +157,12 @@ deb:
151157 rm -f $(PATHDEBPKG ) /$(PKGNAME ) -$(VERSION ) /$(DOCPATH ) LICENSE
152158 tar -zcvf $(PATHDEBPKG ) /$(PKGNAME ) _$(VERSION ) .orig.tar.gz -C $(PATHDEBPKG ) / $(PKGNAME ) -$(VERSION )
153159 cp -rf ./resources/debian $(PATHDEBPKG ) /$(PKGNAME ) -$(VERSION ) /debian
154- find $(PATHDEBPKG ) /$(PKGNAME ) -$(VERSION ) /debian/ -type f -exec sed --in-place=.bak " s/~#DATE#~/` date -R` /" {} \;
155- find $(PATHDEBPKG ) /$(PKGNAME ) -$(VERSION ) /debian/ -type f -exec sed --in-place=.bak " s/~#VENDOR#~/$( VENDOR) /" {} \;
156- find $(PATHDEBPKG ) /$(PKGNAME ) -$(VERSION ) /debian/ -type f -exec sed --in-place=.bak " s/~#PROJECT#~/$( PROJECT) /" {} \;
157- find $(PATHDEBPKG ) /$(PKGNAME ) -$(VERSION ) /debian/ -type f -exec sed --in-place=.bak " s/~#PKGNAME#~/$( PKGNAME) /" {} \;
158- find $(PATHDEBPKG ) /$(PKGNAME ) -$(VERSION ) /debian/ -type f -exec sed --in-place=.bak " s/~#VERSION#~/$( VERSION) /" {} \;
159- find $(PATHDEBPKG ) /$(PKGNAME ) -$(VERSION ) /debian/ -type f -exec sed --in-place=.bak " s/~#RELEASE#~/$( RELEASE) /" {} \;
160+ find $(PATHDEBPKG ) /$(PKGNAME ) -$(VERSION ) /debian/ -type f -exec sed $( SEDINPLACE ) " s/~#DATE#~/` date -R` /" {} \;
161+ find $(PATHDEBPKG ) /$(PKGNAME ) -$(VERSION ) /debian/ -type f -exec sed $( SEDINPLACE ) " s/~#VENDOR#~/$( VENDOR) /" {} \;
162+ find $(PATHDEBPKG ) /$(PKGNAME ) -$(VERSION ) /debian/ -type f -exec sed $( SEDINPLACE ) " s/~#PROJECT#~/$( PROJECT) /" {} \;
163+ find $(PATHDEBPKG ) /$(PKGNAME ) -$(VERSION ) /debian/ -type f -exec sed $( SEDINPLACE ) " s/~#PKGNAME#~/$( PKGNAME) /" {} \;
164+ find $(PATHDEBPKG ) /$(PKGNAME ) -$(VERSION ) /debian/ -type f -exec sed $( SEDINPLACE ) " s/~#VERSION#~/$( VERSION) /" {} \;
165+ find $(PATHDEBPKG ) /$(PKGNAME ) -$(VERSION ) /debian/ -type f -exec sed $( SEDINPLACE ) " s/~#RELEASE#~/$( RELEASE) /" {} \;
160166 echo $(LIBPATH ) > $(PATHDEBPKG ) /$(PKGNAME ) -$(VERSION ) /debian/$(PKGNAME ) .dirs
161167 echo " $( LIBPATH) * $( LIBPATH) " > $(PATHDEBPKG ) /$(PKGNAME ) -$(VERSION ) /debian/install
162168 echo $(DOCPATH ) >> $(PATHDEBPKG ) /$(PKGNAME ) -$(VERSION ) /debian/$(PKGNAME ) .dirs
0 commit comments