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
bfa9b580
Commit
bfa9b580
authored
13 years ago
by
Ian Lance Taylor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
merge.sh: Add files, add revision option, handle middle dot.
From-SVN: r181937
parent
b3c85d79
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
35 additions
and
9 deletions
+35
-9
libgo/merge.sh
+35
-9
No files found.
libgo/merge.sh
View file @
bfa9b580
...
...
@@ -25,10 +25,15 @@ if ! test -f MERGE; then
exit
1
fi
if
test
$#
-ne
1
;
then
echo
1>&2
"merge.sh: Usage: merge.sh mercurial-repository"
rev
=
weekly
case
$#
in
1
)
;;
2
)
rev
=
$2
;;
*
)
echo
1>&2
"merge.sh: Usage: merge.sh mercurial-repository [revision]"
exit
1
fi
;;
esac
repository
=
$1
...
...
@@ -38,9 +43,9 @@ rm -rf ${OLDDIR}
hg clone
-r
${
old_rev
}
${
repository
}
${
OLDDIR
}
rm
-rf
${
NEWDIR
}
hg clone
-u
weekly
${
repository
}
${
NEWDIR
}
hg clone
-u
${
rev
}
${
repository
}
${
NEWDIR
}
new_rev
=
`
cd
${
NEWDIR
}
&&
hg log
-r
weekly
| sed 1q | sed
-e
's/.*://'
`
new_rev
=
`
cd
${
NEWDIR
}
&&
hg log
-r
${
rev
}
| sed 1q | sed
-e
's/.*://'
`
merge
()
{
name
=
$1
...
...
@@ -146,12 +151,33 @@ done
done
done
runtime
=
"
goc2c.c mcache.c mcentral.c mfinal.c mfixalloc.c mgc0.c mheap.c msize.c malloc.h malloc.goc mprof
.goc"
runtime
=
"
chan.c cpuprof.c goc2c.c lock_futex.c lock_sema.c mcache.c mcentral.c mfinal.c mfixalloc.c mgc0.c mheap.c msize.c proc.c runtime.c runtime.h malloc.h malloc.goc mprof.goc runtime1.goc sema.goc sigqueue.goc string
.goc"
for
f
in
$runtime
;
do
oldfile
=
${
OLDDIR
}
/src/pkg/runtime/
$f
newfile
=
${
NEWDIR
}
/src/pkg/runtime/
$f
libgofile
=
runtime/
$f
merge
$f
${
oldfile
}
${
newfile
}
${
libgofile
}
if
test
-f
${
oldfile
}
;
then
sed
-e
's/·/_/g'
<
${
oldfile
}
>
${
oldfile
}
.tmp
oldfile
=
${
oldfile
}
.tmp
newfile
=
${
NEWDIR
}
/src/pkg/runtime/
$f
sed
-e
's/·/_/g'
<
${
newfile
}
>
${
newfile
}
.tmp
newfile
=
${
newfile
}
.tmp
libgofile
=
runtime/
$f
merge
$f
${
oldfile
}
${
newfile
}
${
libgofile
}
fi
done
runtime2
=
"linux/thread.c thread-linux.c linux/mem.c mem.c"
echo
$runtime2
|
while
read
from
;
do
read
to
oldfile
=
${
OLDDIR
}
/src/pkg/runtime/
$from
if
test
-f
${
oldfile
}
;
then
sed
-e
's/·/_/g'
<
${
oldfile
}
>
${
oldfile
}
.tmp
oldfile
=
${
oldfile
}
.tmp
newfile
=
${
NEWDIR
}
/src/pkg/runtime/
$from
sed
-e
's/·/_/g'
<
${
newfile
}
>
${
newfile
}
.tmp
newfile
=
${
newfile
}
.tmp
libgofile
=
runtime/
$to
merge
$f
${
oldfile
}
${
newfile
}
${
libgofile
}
fi
done
(
cd
${
OLDDIR
}
/src/pkg
&&
find
.
-name
'*.go'
-print
)
|
while
read
f
;
do
...
...
This diff is collapsed.
Click to expand it.
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