Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
R
riscv-gcc-1
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
riscv-gcc-1
Commits
2d072788
Commit
2d072788
authored
Mar 18, 2005
by
Zack Weinberg
Committed by
Zack Weinberg
Mar 18, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* gcc_update: Add --silent option.
From-SVN: r96661
parent
7e1957a4
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
30 additions
and
6 deletions
+30
-6
contrib/ChangeLog
+4
-0
contrib/gcc_update
+26
-6
No files found.
contrib/ChangeLog
View file @
2d072788
2005
-
03
-
18
Zack
Weinberg
<
zack
@codesourcery
.
com
>
*
gcc_update
:
Add
--
silent
option
.
2005
-
03
-
08
Kaveh
R
.
Ghazi
<
ghazi
@caip
.
rutgers
.
edu
>
*
warn_summary
(
keywordFilter
)
:
Update
sed
pattern
for
new
quoting
...
...
contrib/gcc_update
View file @
2d072788
...
...
@@ -19,6 +19,9 @@
# If the first parameter is --list, a list of the generated files and
# their dependencies will be printed; --help prints this message.
#
# If the first parameter is --silent, this script prints nothing other
# than error messages; the second parameter is then interpreted as above.
#
# Examples:
#
# contrib/gcc_update -r gcc_latest_snapshot
...
...
@@ -29,7 +32,7 @@
# contrib/gcc_update --list
#
#
# (C) 1998, 1999, 2000, 2001, 2002, 2003, 2004 Free Software Foundation
# (C) 1998, 1999, 2000, 2001, 2002, 2003, 2004
, 2005
Free Software Foundation
# Originally by Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>, August 1998.
#
# This script is Free Software, and it can be copied, distributed and
...
...
@@ -51,6 +54,15 @@ UPDATE_OPTIONS=-Pd
# Arrange for the value of $0 to be available for functions
self
=
$0
# This function prints its arguments to standard output unless
# "silent" is set.
silent
=
chat
()
{
if
[
-z
"
$silent
"
]
;
then
echo
"
$@
"
fi
}
# This function prints a list of all generated files, along with their
# dependencies. Note that only one target is supported per line: the
# colon is stripped from the output.
...
...
@@ -125,7 +137,7 @@ touch_files () {
echo
':'
>>
Makefile.
$$
echo
' @for f in $? $@; do test -f $$f || exit 0; done; \'
>>
Makefile.
$$
echo
' echo Touching $@...; \'
>>
Makefile.
$$
echo
' echo Touching $@... 1>&2; \'
>>
Makefile.
$$
chat
' echo Touching $@... 1>&2; \'
>>
Makefile.
$$
echo
' touch $@'
>>
Makefile.
$$
files_and_dependencies | sed
's,[^ ]* ,,;s,$, :,'
>>
Makefile.
$$
...
...
@@ -148,8 +160,8 @@ touch_files () {
# this script. By re-execing it, we ensure that the appropriate
# dependencies and rules will be used.
touch_files_reexec
()
{
echo
"Adjusting file timestamps"
exec
${
CONFIG_SHELL
-/bin/sh
}
$self
--touch
chat
"Adjusting file timestamps"
exec
${
CONFIG_SHELL
-/bin/sh
}
$self
${
silent
+
"--silent"
}
--touch
}
# This functions applies a patch to an existing tree.
...
...
@@ -175,6 +187,13 @@ if [ ! -f gcc/version.c ]; then
fi
case
"
$1
"
in
--silent
)
silent
=
t
shift
;;
esac
case
"
$1
"
in
# First of all, check whether we are going to process a patch.
--patch
)
if
test
"$#"
!=
2
;
then
...
...
@@ -228,8 +247,9 @@ else
set
--
$UPDATE_OPTIONS
${
1
+
"
$@
"
}
fi
echo
"Updating CVS tree"
$GCC_CVS
-q
update
${
1
+
"
$@
"
}
chat
"Updating CVS tree"
$GCC_CVS
-q
${
silent
+-Q
}
update
${
1
+
"
$@
"
}
if
[
$?
-ne
0
]
;
then
(
touch_files_reexec
)
echo
"CVS update of full tree failed."
>
&2
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment