~ubuntu-branches/ubuntu/trusty/grub2/trusty-updates

« back to all changes in this revision

Viewing changes to util/grub-mkrelpath.c

Tags: upstream-1.99~20101122
ImportĀ upstreamĀ versionĀ 1.99~20101122

Show diffs side-by-side

added added

removed removed

Lines of Context:
17
17
 *  along with GRUB.  If not, see <http://www.gnu.org/licenses/>.
18
18
 */
19
19
 
 
20
#include <config.h>
 
21
 
 
22
#include <stdio.h>
20
23
#include <grub/util/misc.h>
 
24
#include <grub/emu/misc.h>
21
25
#include <grub/i18n.h>
22
26
#include <getopt.h>
23
27
 
34
38
usage (int status)
35
39
{
36
40
  if (status)
37
 
    fprintf (stderr, "Try ``%s --help'' for more information.\n", program_name);
 
41
    fprintf (stderr, "Try `%s --help' for more information.\n", program_name);
38
42
  else
39
43
    printf ("\
40
44
Usage: %s [OPTIONS] PATH\n\
41
45
\n\
42
 
Make a system path relative to it's root.\n\
 
46
Make a system path relative to its root.\n\
43
47
\n\
44
48
Options:\n\
45
49
  -h, --help                display this message and exit\n\
97
101
 
98
102
  argument = argv[optind];
99
103
 
100
 
  relpath = make_system_path_relative_to_its_root (argument);
 
104
  relpath = grub_make_system_path_relative_to_its_root (argument);
101
105
  printf ("%s\n", relpath);
102
106
  free (relpath);
103
107