Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Guilhem Saurel
hpp-doc
Commits
9fa3d2ac
Commit
9fa3d2ac
authored
Nov 02, 2010
by
Antonio El Khoury
Browse files
Switch to new submodule URL.
parent
6d24d56a
Changes
2
Show whitespace changes
Inline
Side-by-side
.gitmodules
View file @
9fa3d2ac
[submodule "scripts"]
path = scripts
url = git
-laas:robots/scripts
url = git
://github.com/laas/dev-tools.git
[submodule "build-aux"]
path = build-aux
url =
roboptim:
build-aux.git
url =
git://github.com/laas/shared-
build-aux.git
bootstrap
View file @
9fa3d2ac
...
...
@@ -2,77 +2,8 @@
set
-e
# Print an error message and exit.
die
()
{
echo
>
&2
"fatal:
$1
"
exit
2
}
# Properly explain how to set up a RobOptim working directory and exit.
die_noroboptimalias
()
{
echo
>
&2
"To properly finish setting up your working directory,"
echo
>
&2
"you need to define how RobOptim should connect to SourceForge."
echo
>
&2
""
echo
>
&2
"If you only need read-access (which is usually what one wants):"
echo
>
&2
"echo '[url
\"
git://roboptim.git.sourceforge.net/gitroot/roboptim/
\"
]"
echo
>
&2
" insteadOf = roboptim:' >> ~/.gitconfig"
echo
>
&2
""
die
"no
\`\`
roboptim:'' alias in your git configuration."
}
# Properly explain how to set up a scripts working directory and exit.
die_nogitlaasmalias
()
{
echo
>
&2
"To properly finish setting up your working directory,"
echo
>
&2
"you need to define how submodule
\"
scripts
\"
should should be"
echo
>
&2
"downloaded."
echo
>
&2
""
echo
>
&2
"If you only need read-access (which is usually what one wants):"
echo
>
&2
"echo '[url
\"
ssh://[softs|git].laas.fr/git/
\"
]"
echo
>
&2
" insteadOf = git-laas:' >> ~/.gitconfig"
echo
>
&2
""
die
"no
\`\`
git-laas:'' alias in your git configuration."
}
# Check that git version is newer enough.
check_git_version
()
{
version
=
`
git
--version
|
sed
's/^git version \([0-9]\.[0-9]\.[0-9]\).*$/\1/'
`
if
test
x
"
$version
"
=
x
;
then
die
"failed to parse git version"
fi
for
i
in
1 2 3
;
do
wantedversion
=
`
echo
"
$1
"
|
cut
-d
'.'
-f
$i
`
gitversion
=
`
echo
"
$version
"
|
cut
-d
'.'
-f
$i
`
if
test
$gitversion
-lt
$wantedversion
;
then
die
"git version is too old (version
$1
at least is required)"
fi
if
test
$gitversion
-gt
$wantedversion
;
then
return
fi
done
}
# Make sure that the submodule are retrieved.
if
test
-d
".git"
;
then
# Url rewriting has been introduced in git 1.5.5.
check_git_version
"1.5.5"
if
test
x
`
git config
-l
|
grep
'url\..*\.insteadof=roboptim:'
`
=
x
;
then
die_noroboptimalias
fi
if
test
x
`
git config
-l
|
grep
'url\..*\.insteadof=git-laas:'
`
=
x
;
then
die_nogitlaasmalias
fi
git submodule init
git submodule update
fi
...
...
Write
Preview
Supports
Markdown
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