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
f4ae3f9b
Commit
f4ae3f9b
authored
25 years ago
by
Martin v. Löwis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
New script to replace CVS/Root and CVS/Repository
From-SVN: r29899
parent
b5d6a850
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
29 additions
and
0 deletions
+29
-0
contrib/newcvsroot
+29
-0
No files found.
contrib/newcvsroot
0 → 100755
View file @
f4ae3f9b
#! /usr/bin/env bash
# Written by Roland McGrath <roland@gnu.org>
# Replaces all CVS/Root and CVS/Repository files in a checked-out CVS
# tree. Requires shell with # and % variable substitution (e.g. bash).
# Usage: newcvsroot <newroot> <modulename> <toplevel directory>
root
=
$1
;
shift
module
=
$1
;
shift
topdir
=
$1
;
shift
rep
=
${
root
##*
:
}
case
"
$topdir
"
in
/
*
|
./
*
|
../
*
)
echo
>
&2
"
$0
wants relative path from top of checkout"
;
exit
1
;;
esac
find
$topdir
\(
-name
Repository
-o
-name
Root
\)
-print
|
while
read
f
;
do
case
"
$f
"
in
*
/CVS/Root
)
echo
$root
>
$f
;;
*
/CVS/Repository
)
r
=
${
module
}${
f
#
${
topdir
}}
echo
>
$f
$rep
/
${
r
%/CVS/Repository
}
;;
esac
done
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