forked from gentoo/gentoo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
bsign-0.4.5-non-gnu.patch
42 lines (37 loc) · 1.38 KB
/
bsign-0.4.5-non-gnu.patch
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
--- a/Makefile.in
+++ b/Makefile.in
@@ -62,7 +62,7 @@
#LFLAGS=-g @LDFLAGS@ @LIBS@
#LFLAGS=-pg ${LFLAGS}
DEPEND=depend.m
-ECHO=@/bin/echo
+ECHO=@echo
INSTALL=@INSTALL@
INSTALL_PROGRAM=@INSTALL_PROGRAM@
INSTALL_DATA=@INSTALL_DATA@
@@ -192,11 +192,11 @@
#
.version: .version_major .version_minor .version_patch
- @/bin/echo -n `cat .version_major`.`cat .version_minor`.`cat \
+ @printf "%s" `cat .version_major`.`cat .version_minor`.`cat \
.version_patch` > .version
_version.h: .version
- @/bin/echo -e \#define SZ_VERSION \"`cat .version`\" > _version.h
+ @echo "#define SZ_VERSION \"`cat .version`\"" > _version.h
.PHONY: transmit
transmit: # distribution-archive
@@ -209,12 +209,12 @@
version.sed: _version.h
@echo Creating version-specific sed script...
- @/bin/echo s/\<\<version\>\>/`cat .version`/ > version.sed
- @/bin/echo s/\<\<date\>\>/`date +"%d%b%y" \
+ @echo s/\<\<version\>\>/`cat .version`/ > version.sed
+ @echo s/\<\<date\>\>/`date +"%d%b%y" \
| sed -e y/abceglnoprtuvy/ABCEGLNOPRTUVY/`/ >> version.sed
- @/bin/echo s/\<\<tar-file\>\>/${PACKAGE}-`cat .version`.tar.gz/ \
+ @echo s/\<\<tar-file\>\>/${PACKAGE}-`cat .version`.tar.gz/ \
>> version.sed
- @/bin/echo s/\<\<lsm-file\>\>/${PACKAGE}-`cat .version`.lsm/ >> version.sed
+ @echo s/\<\<lsm-file\>\>/${PACKAGE}-`cat .version`.lsm/ >> version.sed
.PHONY: ${PACKAGE}.lsm
${PACKAGE}.lsm: version.sed LSM