From 76f88dbb30e794302dfb5c1688385dbe7d0bcdf4 Mon Sep 17 00:00:00 2001 From: "James K. Lowden" <jklowden@symas.com> Date: Tue, 28 May 2024 13:17:01 -0400 Subject: [PATCH] install gcobc --- gcc/cobol/Make-lang.in | 18 +++++------------- gcc/cobol/gcobc | 4 ++++ 2 files changed, 9 insertions(+), 13 deletions(-) diff --git a/gcc/cobol/Make-lang.in b/gcc/cobol/Make-lang.in index d4825f23c2e4..e771009d031c 100644 --- a/gcc/cobol/Make-lang.in +++ b/gcc/cobol/Make-lang.in @@ -174,28 +174,20 @@ cobol.start.encap: gcobol$(exeext) cobol.rest.encap: cobol.install-common: installdirs - -rm -f $(DESTDIR)$(bindir)/$(gcobol_INSTALL_NAME)$(exeext) - $(INSTALL_PROGRAM) gcobol$(exeext) \ + $(INSTALL_PROGRAM) -v gcobol$(exeext) \ $(DESTDIR)$(bindir)/$(gcobol_INSTALL_NAME)$(exeext) - rm -f $(DESTDIR)$(bindir)/$(gcobol_TARGET_INSTALL_NAME)$(exeext); \ - ( cd $(DESTDIR)$(bindir) && \ - $(LN) $(gcobol_INSTALL_NAME)$(exeext) \ - $(gcobol_TARGET_INSTALL_NAME)$(exeext) ); \ - $(END) + $(INSTALL_PROGRAM) -v $(srcdir)/cobol/gcobc $(DESTDIR)$(bindir)/ cobol.install-man: installdirs - @rm -f $(DESTDIR)$(man1dir)/gcobol.1 - @echo DESTDIR = $(DESTDIR) - @echo srcdir = $(srcdir) - @echo installing gcobol.1 from $(srcdir)/cobol/gcobol.1 - $(INSTALL_DATA) $(srcdir)/cobol/gcobol.1 $(DESTDIR)$(man1dir)/gcobol.1 + $(INSTALL_DATA) -v $(srcdir)/cobol/gcobol.1 $(DESTDIR)$(man1dir)/ + $(INSTALL_DATA) -v $(srcdir)/cobol/gcobol.3 $(DESTDIR)$(man3dir)/ cobol.install-info: cobol.install-pdf: cobol.install-plugin: - +f cobol.install-html: cobol.info: diff --git a/gcc/cobol/gcobc b/gcc/cobol/gcobc index c2a5feb205b0..60d5c657e563 100755 --- a/gcc/cobol/gcobc +++ b/gcc/cobol/gcobc @@ -1,5 +1,9 @@ #! /bin/sh -e +# +# COPYRIGHT +# The gcobc program is in public domain. +# If it breaks then you get to keep both pieces. # # This file emulates the GnuCOBOL cobc compiler to a limited degree. # For options that can be "mapped" (see migration-guide.1), it accepts -- GitLab