unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* The strange install command used by emacs.
@ 2020-12-18  4:57 Hongyi Zhao
  2020-12-18 17:18 ` Philipp Stephani
  0 siblings, 1 reply; 2+ messages in thread
From: Hongyi Zhao @ 2020-12-18  4:57 UTC (permalink / raw)
  To: Emacs-devel

On Ubuntu 20.10, when I compile the latest git master version of
emacs, I noticed the following line near to the end of installation
log:

cd "/usr/local/bin" && ln -s "`echo emacs-28.0.50 | sed 's,x,x,'`"
"`echo emacs | sed 's,x,x,'`"

Apparently, it want to do the following job:

ln -s /usr/local/bin/emacs-28.0.50 /usr/local/bin/emacs

The confusing thing is that the pattern feed to sed, i.e., 's,x,x,',
which in fact matches nothing for this case. So why it's useless at
all. Any hints/notes/explanations would be appreciated.

Regards
-- 
Assoc. Prof. Hongyi Zhao <hongyi.zhao@gmail.com>
Theory and Simulation of Materials
Hebei Polytechnic Vocational and Technical University
NO. 552 North Gangtie Road, Xingtai, China



^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: The strange install command used by emacs.
  2020-12-18  4:57 The strange install command used by emacs Hongyi Zhao
@ 2020-12-18 17:18 ` Philipp Stephani
  0 siblings, 0 replies; 2+ messages in thread
From: Philipp Stephani @ 2020-12-18 17:18 UTC (permalink / raw)
  To: Hongyi Zhao; +Cc: Emacs developers

Am Fr., 18. Dez. 2020 um 05:58 Uhr schrieb Hongyi Zhao <hongyi.zhao@gmail.com>:
>
> On Ubuntu 20.10, when I compile the latest git master version of
> emacs, I noticed the following line near to the end of installation
> log:
>
> cd "/usr/local/bin" && ln -s "`echo emacs-28.0.50 | sed 's,x,x,'`"
> "`echo emacs | sed 's,x,x,'`"
>
> Apparently, it want to do the following job:
>
> ln -s /usr/local/bin/emacs-28.0.50 /usr/local/bin/emacs
>
> The confusing thing is that the pattern feed to sed, i.e., 's,x,x,',
> which in fact matches nothing for this case. So why it's useless at
> all. Any hints/notes/explanations would be appreciated.

This is likely to support the --program-prefix and --program-suffix
configure options. They can be used to append/prepend a string to the
Emacs binary filename (e.g. to distinguish multiple Emacsen installed
on the same system). By default both are empty, resulting in this
no-op.



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2020-12-18 17:18 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-12-18  4:57 The strange install command used by emacs Hongyi Zhao
2020-12-18 17:18 ` Philipp Stephani

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).