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
e8b073c1
Commit
e8b073c1
authored
May 14, 2001
by
Alexandre Oliva
Committed by
Alexandre Oliva
May 14, 2001
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* gcc_update (touch_files): Use a Makefile to touch files.
From-SVN: r42088
parent
f327ea3e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
20 deletions
+21
-20
contrib/ChangeLog
+4
-0
contrib/gcc_update
+17
-20
No files found.
contrib/ChangeLog
View file @
e8b073c1
2001-05-14 Alexandre Oliva <aoliva@redhat.com>
* gcc_update (touch_files): Use a Makefile to touch files.
2001-05-03 Joseph S. Myers <jsm28@cam.ac.uk>
* texi2pod.pl: Add copyright and GPL notices.
...
...
contrib/gcc_update
View file @
e8b073c1
...
...
@@ -98,31 +98,28 @@ EOF
}
# This function checks whether its first argument is newer than all
# the other arguments. It returns success (0) otherwise.
is_out_of_date
()
{
test
`
ls
-1dt
${
1
+
"
$@
"
}
| sed 1q
`
!=
"
$1
"
}
# This function touches generated files such that the ``end'' user does
# not have to rebuild them.
touch_files
()
{
files_and_dependencies |
while
read
f deps
;
do
if
test
-f
$f
&&
is_out_of_date
"
$f
"
$deps
;
then
echo
Touching
"
$f
"
...
touch
$f
if
is_out_of_date
"
$f
"
$deps
;
then
# Hmm, it may have got the same timestamp as one of
# its touched dependencies. Wait a second and retry.
sleep 1
echo
Touching
"
$f
"
once more...
touch
$f
fi
fi
done
rm
-f
Makefile.
$$
echo
'all: \'
>
Makefile.
$$
files_and_dependencies | sed
's, .*, \\,'
>>
Makefile.
$$
echo
'; @true'
>>
Makefile.
$$
files_and_dependencies | sed
's, ,: ,'
>>
Makefile.
$$
files_and_dependencies | sed
's, .*, \\,'
>>
Makefile.
$$
echo
':'
>>
Makefile.
$$
echo
' @for f in $?; do test ! -f $$f && exit 0; done; \'
>>
Makefile.
$$
echo
' echo Touching $@...; \'
>>
Makefile.
$$
echo
' echo Touching $@... 1>&2; \'
>>
Makefile.
$$
echo
' touch $@'
>>
Makefile.
$$
files_and_dependencies | sed
's,[^ ]* ,,;s,$, :,'
>>
Makefile.
$$
while
${
MAKE
-make
}
-f
Makefile.
$$
all |
grep
.
>
/dev/null
;
do
sleep 1
done
2>&1
rm
-f
Makefile.
$$
}
# Whenever we update the tree or install a patch, we may be modifying
# this script. By re-execing it, we ensure that the appropriate
# dependencies and rules will be used.
...
...
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