@@ -71,6 +71,12 @@ PATHBZ2PKG=$(CURRENTDIR)/../target/BZ2_FONTS/$(PKGFONTDIR)
7171# Composer executable (disable APC to as a work-around of a bug)
7272COMPOSER =$(shell which php) -d "apc.enable_cli=0" $(shell which composer)
7373
74+ # sed argument for in-place substitutions
75+ SEDINPLACE =-i
76+ ifeq ($(shell uname -s) ,Darwin)
77+ SEDINPLACE=-i ''
78+ endif
79+
7480# --- MAKE TARGETS ---
7581
7682# Display general help about this command
@@ -163,14 +169,14 @@ deb:
163169 make install DESTDIR=$(PATHDEBPKG ) /$(PKGNAME ) -$(VERSION ) PKGFONTDIR=$(PKGFONTDIR )
164170 tar -zcvf $(PATHDEBPKG ) /$(PKGNAME ) _$(VERSION ) .orig.tar.gz -C $(PATHDEBPKG ) / $(PKGNAME ) -$(VERSION )
165171 cp -rf ../resources/fonts/debian $(PATHDEBPKG ) /$(PKGNAME ) -$(VERSION ) /debian
166- find $(PATHDEBPKG ) /$(PKGNAME ) -$(VERSION ) /debian/ -type f -exec sed --in-place=.bak " s/~#DATE#~/` date -R` /" {} \;
167- find $(PATHDEBPKG ) /$(PKGNAME ) -$(VERSION ) /debian/ -type f -exec sed --in-place=.bak " s/~#VENDOR#~/$( VENDOR) /" {} \;
168- find $(PATHDEBPKG ) /$(PKGNAME ) -$(VERSION ) /debian/ -type f -exec sed --in-place=.bak " s/~#PROJECT#~/$( PROJECT) /" {} \;
169- find $(PATHDEBPKG ) /$(PKGNAME ) -$(VERSION ) /debian/ -type f -exec sed --in-place=.bak " s/~#PKGNAME#~/$( PKGNAME) /" {} \;
170- find $(PATHDEBPKG ) /$(PKGNAME ) -$(VERSION ) /debian/ -type f -exec sed --in-place=.bak " s/~#VERSION#~/$( VERSION) /" {} \;
171- find $(PATHDEBPKG ) /$(PKGNAME ) -$(VERSION ) /debian/ -type f -exec sed --in-place=.bak " s/~#RELEASE#~/$( RELEASE) /" {} \;
172- find $(PATHDEBPKG ) /$(PKGNAME ) -$(VERSION ) /debian/ -type f -exec sed --in-place=.bak " s/~#FONT#~/$( PKGFONTDIR) /" {} \;
173- find $(PATHDEBPKG ) /$(PKGNAME ) -$(VERSION ) /debian/ -type f -exec sed --in-place=.bak " s/~#LICENSE#~/$( PKGFONTLICENSE) /" {} \;
172+ find $(PATHDEBPKG ) /$(PKGNAME ) -$(VERSION ) /debian/ -type f -exec sed $( SEDINPLACE ) " s/~#DATE#~/` date -R` /" {} \;
173+ find $(PATHDEBPKG ) /$(PKGNAME ) -$(VERSION ) /debian/ -type f -exec sed $( SEDINPLACE ) " s/~#VENDOR#~/$( VENDOR) /" {} \;
174+ find $(PATHDEBPKG ) /$(PKGNAME ) -$(VERSION ) /debian/ -type f -exec sed $( SEDINPLACE ) " s/~#PROJECT#~/$( PROJECT) /" {} \;
175+ find $(PATHDEBPKG ) /$(PKGNAME ) -$(VERSION ) /debian/ -type f -exec sed $( SEDINPLACE ) " s/~#PKGNAME#~/$( PKGNAME) /" {} \;
176+ find $(PATHDEBPKG ) /$(PKGNAME ) -$(VERSION ) /debian/ -type f -exec sed $( SEDINPLACE ) " s/~#VERSION#~/$( VERSION) /" {} \;
177+ find $(PATHDEBPKG ) /$(PKGNAME ) -$(VERSION ) /debian/ -type f -exec sed $( SEDINPLACE ) " s/~#RELEASE#~/$( RELEASE) /" {} \;
178+ find $(PATHDEBPKG ) /$(PKGNAME ) -$(VERSION ) /debian/ -type f -exec sed $( SEDINPLACE ) " s/~#FONT#~/$( PKGFONTDIR) /" {} \;
179+ find $(PATHDEBPKG ) /$(PKGNAME ) -$(VERSION ) /debian/ -type f -exec sed $( SEDINPLACE ) " s/~#LICENSE#~/$( PKGFONTLICENSE) /" {} \;
174180 echo $(FONTPATH ) > $(PATHDEBPKG ) /$(PKGNAME ) -$(VERSION ) /debian/$(PKGNAME ) .dirs
175181 echo " $( FONTPATH) * $( FONTPATH) " > $(PATHDEBPKG ) /$(PKGNAME ) -$(VERSION ) /debian/install
176182 echo $(DOCPATH ) >> $(PATHDEBPKG ) /$(PKGNAME ) -$(VERSION ) /debian/$(PKGNAME ) .dirs
0 commit comments