~ubuntu-branches/ubuntu/utopic/coreutils/utopic-proposed

« back to all changes in this revision

Viewing changes to src/hostid.c

  • Committer: Package Import Robot
  • Author(s): Colin Watson
  • Date: 2012-11-28 03:03:42 UTC
  • mfrom: (8.3.4 sid)
  • Revision ID: package-import@ubuntu.com-20121128030342-21zanj8354gas5gr
Tags: 8.20-3ubuntu1
* Resynchronise with Debian.  Remaining changes:
  - Make 'uname -i -p' return the real processor/hardware, instead of
    unknown.
  - Build-depend on gettext:any instead of on gettext, so that apt-get can
    properly resolve build-dependencies on the tool when cross-building.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/* print the hexadecimal identifier for the current host
2
2
 
3
 
   Copyright (C) 1997, 1999-2004, 2007-2011 Free Software Foundation, Inc.
 
3
   Copyright (C) 1997-2012 Free Software Foundation, Inc.
4
4
 
5
5
   This program is free software: you can redistribute it and/or modify
6
6
   it under the terms of the GNU General Public License as published by
27
27
#include "error.h"
28
28
#include "quote.h"
29
29
 
30
 
/* The official name of this program (e.g., no `g' prefix).  */
 
30
/* The official name of this program (e.g., no 'g' prefix).  */
31
31
#define PROGRAM_NAME "hostid"
32
32
 
33
33
#define AUTHORS proper_name ("Jim Meyering")
36
36
usage (int status)
37
37
{
38
38
  if (status != EXIT_SUCCESS)
39
 
    fprintf (stderr, _("Try `%s --help' for more information.\n"),
40
 
             program_name);
 
39
    emit_try_help ();
41
40
  else
42
41
    {
43
42
      printf (_("\