Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
alberta3
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container registry
Model registry
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ians-nmh-siebert
alberta
alberta3
Commits
b1be2847
Commit
b1be2847
authored
15 years ago
by
Claus-Justus Heine
Browse files
Options
Downloads
Patches
Plain Diff
Relocate script.
parent
12aad170
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
svn-switch.sh
+39
-0
39 additions, 0 deletions
svn-switch.sh
with
39 additions
and
0 deletions
svn-switch.sh
0 → 100644
+
39
−
0
View file @
b1be2847
#! /bin/sh
if
test
$#
-ne
1
;
then
cat
<<
EOF
A script to "reparent" the working-copy of the ALBERTA package by
calling "svn switch" on all directories referred to by "svn:externals"
properties.
Calling convention:
$0
NEW_URL
Note: the old repository URL is determined using "svn info".
EOF
exit
1
fi
set
-x
OLD_URL
=
`
svn info .|fgrep URL |awk
'{ print $2 }'
`
NEW_URL
=
"
$1
"
if
test
"
${
OLD_URL
}
"
=
"
${
NEW_URL
}
"
;
then
Working copy already pointing to new URI.
exit
1
fi
svn switch
--relocate
"
${
OLD_URL
}
"
"
${
NEW_URL
}
"
/albertadist
OLD_URL
=
`
echo
"
${
OLD_URL
}
"
|sed
's/albertadist//g'
`
for
i
in
alberta alberta_util demo add_ons gnu-compat doc
;
do
cd
$i
svn switch
--relocate
"
${
OLD_URL
}
"
/
"
$i
"
"
${
NEW_URL
}
"
/
"
$i
"
cd
..
done
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment