diff options
| author | Paul Eggert | 2015-10-10 18:03:49 -0700 |
|---|---|---|
| committer | Paul Eggert | 2015-10-10 18:11:27 -0700 |
| commit | 29dfca23553b9995a8ec3b50090a652a6a0ecb01 (patch) | |
| tree | a5d968df7cadd8259e029d89e6150dfe6762cb96 /test | |
| parent | ec0d4d24fd11b5040de9f7657b486c3b1e743071 (diff) | |
| download | emacs-29dfca23553b9995a8ec3b50090a652a6a0ecb01.tar.gz emacs-29dfca23553b9995a8ec3b50090a652a6a0ecb01.zip | |
Use ‘echo’ safely with ‘\’ or leading ‘-’
POSIX says that ‘echo FOO’ produces implementation-defined output
if FOO contains leading ‘-’, or ‘\’ anywhere, so don’t assume GNU
behavior in that case.
* Makefile.in (removenullpaths): Remove.
(epaths-force): Rewrite to avoid the need for ‘echo’.
(install-etc): Be clearer about escaping the shell metacharacters
‘\’ and ‘$’.
* Makefile.in (install-arch-indep, install-etcdoc):
* admin/charsets/mapconv, admin/merge-gnulib, admin/merge-pkg-config:
* admin/quick-install-emacs, build-aux/gitlog-to-emacslog:
* configure.ac, lib-src/rcs2log, make-dist:
* src/Makefile.in (lisp.mk):
Don’t assume ‘echo’ outputs ‘\’ and leading ‘-’ unscathed.
For example, use ‘printf '%s\n' "$foo"’ rather than ‘echo "$foo"’
if $foo can contain arbitrary characters.
* lisp/Makefile.in (TAGS): Use ‘ls’, not ‘echo’, to avoid ‘\’ issues.
* doc/lispref/two-volume.make (vol1.pdf):
* test/etags/make-src/Makefile (web ftp publish):
Use ‘printf’ rather than ‘echo -e’.
Diffstat (limited to 'test')
| -rw-r--r-- | test/etags/make-src/Makefile | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test/etags/make-src/Makefile b/test/etags/make-src/Makefile index daf605d0016..016c633d791 100644 --- a/test/etags/make-src/Makefile +++ b/test/etags/make-src/Makefile | |||
| @@ -15,7 +15,7 @@ ERLSRC=gs_dialog.erl lines.erl lists.erl | |||
| 15 | FORTHSRC=test-forth.fth | 15 | FORTHSRC=test-forth.fth |
| 16 | FSRC=entry.for entry.strange_suffix entry.strange | 16 | FSRC=entry.for entry.strange_suffix entry.strange |
| 17 | HTMLSRC=softwarelibero.html index.shtml algrthms.html software.html | 17 | HTMLSRC=softwarelibero.html index.shtml algrthms.html software.html |
| 18 | JAVASRC=AWTEMul.java KeyEve.java SMan.java SysCol.java TG.java | 18 | JAVASRC=AWTEMul.java KeyEve.java SMan.java SysCol.java TG.java |
| 19 | LUASRC=allegro.lua | 19 | LUASRC=allegro.lua |
| 20 | MAKESRC=Makefile | 20 | MAKESRC=Makefile |
| 21 | OBJCSRC=Subprocess.h Subprocess.m PackInsp.h PackInsp.m | 21 | OBJCSRC=Subprocess.h Subprocess.m PackInsp.h PackInsp.m |
| @@ -120,9 +120,9 @@ rsyncfromfly: | |||
| 120 | rsync --exclude "*~" --exclude core --exclude etags -zauRv fly:gnu/etags/ ../.. | 120 | rsync --exclude "*~" --exclude core --exclude etags -zauRv fly:gnu/etags/ ../.. |
| 121 | 121 | ||
| 122 | web ftp publish: | 122 | web ftp publish: |
| 123 | @-echo -e \\ttesting with debugging enabled...; $(MAKE) quiettest | 123 | @-printf '\ttesting with debugging enabled...\n'; $(MAKE) quiettest |
| 124 | @-echo -e \\ttesting standalone...; $(MAKE) standalone quiettest | 124 | @-printf '\ttesting standalone...\n'; $(MAKE) standalone quiettest |
| 125 | @-echo -e \\ttesting fast versions...; $(MAKE) fastetags fastctags quiettest | 125 | @-printf '\ttesting fast versions...\n'; $(MAKE) fastetags fastctags quiettest |
| 126 | @$(MAKE) /home/www/pub/etags.c.gz | 126 | @$(MAKE) /home/www/pub/etags.c.gz |
| 127 | @$(MAKE) /home/www/pub/software/unix/etags.tar.gz | 127 | @$(MAKE) /home/www/pub/software/unix/etags.tar.gz |
| 128 | 128 | ||