[PATCH] Cygwin/X: Make X -> XWin symlink during install

Dan Nicholson dbn.lists at gmail.com
Fri Mar 19 07:08:19 PDT 2010


On Thu, Mar 18, 2010 at 10:06 PM, Yaakov (Cygwin/X)
<yselkowitz at users.sourceforge.net> wrote:
> From: Yaakov Selkowitz <yselkowitz at users.sourceforge.net>
>
> Signed-off-by: Yaakov Selkowitz <yselkowitz at users.sourceforge.net>
> ---
>  hw/xwin/Makefile.am |    3 +++
>  1 files changed, 3 insertions(+), 0 deletions(-)
>
> diff --git a/hw/xwin/Makefile.am b/hw/xwin/Makefile.am
> index 6c34ddd..811cd5d 100644
> --- a/hw/xwin/Makefile.am
> +++ b/hw/xwin/Makefile.am
> @@ -196,6 +196,9 @@ xwinconfig_DATA = system.XWinrc
>
>  include $(top_srcdir)/cpprules.in
>
> +install-exec-hook:
> +       (cd $(DESTDIR)$(bindir) && rm -f X && $(LN_S) XWin$(EXEEXT) X)
> +
>  EXTRA_DIST = \
>        $(GLX_EXTRAS) \
>        $(MAN_SRCS) \

Just a note that you don't need to run the commands in a () subshell.
Make is already running this set it's own process, so you can cd
anywhere you want it it won't affect things. Anyway,

Reviewed-by: Dan Nicholson <dbn.lists at gmail.com>

--
Dan


More information about the xorg-devel mailing list