/[grub]/grub/docs/mdate-sh
ViewVC logotype

Diff of /grub/docs/mdate-sh

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.4 by okuji, Sun Jun 13 17:49:49 2004 UTC revision 1.5 by okuji, Sun May 8 02:51:52 2005 UTC
# Line 1  Line 1 
1  #!/bin/sh  #!/bin/sh
2  # Get modification time of a file or directory and pretty-print it.  # Get modification time of a file or directory and pretty-print it.
3    
4  scriptversion=2003-11-09.00  scriptversion=2004-12-08.12
5    
6  # Copyright (C) 1995, 1996, 1997, 2003  Free Software Foundation, Inc.  # Copyright (C) 1995, 1996, 1997, 2003, 2004 Free Software Foundation, Inc.
7  # written by Ulrich Drepper <drepper@gnu.ai.mit.edu>, June 1995  # written by Ulrich Drepper <drepper@gnu.ai.mit.edu>, June 1995
8  #  #
9  # This program is free software; you can redistribute it and/or modify  # This program is free software; you can redistribute it and/or modify
# Line 80  fi Line 80  fi
80  # words should be skipped to get the date.  # words should be skipped to get the date.
81    
82  # On HPUX /bin/sh, "set" interprets "-rw-r--r--" as options, so the "x" below.  # On HPUX /bin/sh, "set" interprets "-rw-r--r--" as options, so the "x" below.
83  set - x`$ls_command /`  set x`ls -l -d /`
84    
85  # Find which argument is the month.  # Find which argument is the month.
86  month=  month=
# Line 107  do Line 107  do
107  done  done
108    
109  # Get the extended ls output of the file or directory.  # Get the extended ls output of the file or directory.
110  set - x`eval "$ls_command \"\$save_arg1\""`  set x`eval "$ls_command \"\$save_arg1\""`
111    
112  # Remove all preceding arguments  # Remove all preceding arguments
113  eval $command  eval $command

Legend:
Removed from v.1.4  
changed lines
  Added in v.1.5

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26