[cgmanager-devel] [cgmanager/cgmanager] 9a0643: cgm: ignore leading lt- in basename for usage

GitHub noreply at github.com
Fri Jul 25 17:39:18 UTC 2014


  Branch: refs/heads/master
  Home:   https://github.com/cgmanager/cgmanager
  Commit: 9a0643383f84593dfb258e03e777421078db5cc7
      https://github.com/cgmanager/cgmanager/commit/9a0643383f84593dfb258e03e777421078db5cc7
  Author: Serge Hallyn <serge.hallyn at ubuntu.com>
  Date:   2014-07-25 (Fri, 25 Jul 2014)

  Changed paths:
    M Makefile.am
    M cgm.c

  Log Message:
  -----------
  cgm: ignore leading lt- in basename for usage

In package builds, ./cgm is a libtool wrapper around ./.libs/cgm.  In
jenkins, it is not.  When ./cgm is a wrapper, then argv[0] is "lt-cgm".
That confuses help2man, so I tried to have help2man run ./.libs/cgm to
get the usage output, but that breaks in jenkins.

So just have cgm check whether it is called as "lt-foo", and call itself
foo in usage output if so.

Signed-off-by: Serge Hallyn <serge.hallyn at ubuntu.com>




More information about the cgmanager-devel mailing list