Skip to content
Snippets Groups Projects
Commit 17f34b0f authored by kazu's avatar kazu
Browse files

* reg_periodic, reg_search: Fix the uses of date command.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@93806 138bc75d-0d04-0410-961f-82ee72b054a4
parent c626e85f
No related branches found
No related tags found
No related merge requests found
2005-01-17 Kazu Hirata <kazu@cs.umass.edu>
* reg_periodic, reg_search: Fix the uses of date command.
2003-06-24 Janis Johnson <janis187@us.ibm.com> 2003-06-24 Janis Johnson <janis187@us.ibm.com>
* reg_search: Replace existing uses of DATE with MADE_DATE and * reg_search: Replace existing uses of DATE with MADE_DATE and
......
...@@ -25,7 +25,7 @@ ...@@ -25,7 +25,7 @@
# is STOP in the current directory. # is STOP in the current directory.
# #
# #
# Copyright (c) 2002, 2003 Free Software Foundation, Inc. # Copyright (c) 2002, 2003, 2005 Free Software Foundation, Inc.
# #
# This file is free software; you can redistribute it and/or modify # This file is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by # it under the terms of the GNU General Public License as published by
...@@ -70,7 +70,7 @@ error() { ...@@ -70,7 +70,7 @@ error() {
# control tools and report to the user. # control tools and report to the user.
make_date() { make_date() {
MADE_DATE="`${DATE} -u +\"%Y-%m-%d %H:%M %Z\" --date \"1970-01-01 00:00:${1}\"`" \ MADE_DATE="`${DATE} -u +\"%Y-%m-%d %H:%M %Z\" --date \"1970-01-01 ${1} seconds\"`" \
|| error "make_date: date command failed" || error "make_date: date command failed"
} }
......
...@@ -45,7 +45,7 @@ ...@@ -45,7 +45,7 @@
# #
# #
# #
# Copyright (c) 2002, 2003 Free Software Foundation, Inc. # Copyright (c) 2002, 2003, 2005 Free Software Foundation, Inc.
# #
# This file is free software; you can redistribute it and/or modify # This file is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by # it under the terms of the GNU General Public License as published by
...@@ -96,7 +96,7 @@ error() { ...@@ -96,7 +96,7 @@ error() {
# control tools and report to the user. # control tools and report to the user.
make_date() { make_date() {
MADE_DATE="`${DATE} -u +\"%Y-%m-%d %H:%M %Z\" --date \"1970-01-01 00:00:${1}\"`" \ MADE_DATE="`${DATE} -u +\"%Y-%m-%d %H:%M %Z\" --date \"1970-01-01 ${1} seconds\"`" \
|| error "make_date: date command failed" || error "make_date: date command failed"
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment