Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
libcdi
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD 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
mpim-sw
libcdi
Commits
17ca1d19
Commit
17ca1d19
authored
3 years ago
by
Sergey Kosukhin
Browse files
Options
Downloads
Patches
Plain Diff
Optionally download 'config.sub' and 'config.guess' with 'autogen.sh'.
parent
81d8657e
No related branches found
Branches containing commit
No related tags found
Tags containing commit
2 merge requests
!34
Version 2.2.0
,
!13
Consolidation with CDI-PIO (develop)
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
autogen.sh
+38
-0
38 additions, 0 deletions
autogen.sh
with
38 additions
and
0 deletions
autogen.sh
+
38
−
0
View file @
17ca1d19
#!/bin/sh
for
arg
in
"
$@
"
;
do
case
${
arg
}
in
--help
|
-h
)
cat
<<
EOF
Usage:
$0
[OPTION]
Generate the configure script and other Autotools files.
Options:
-h, --help display this help and exit
-d, --download download the most recent versions
of
\`
config.guess' and
\`
config.sub'
EOF
exit
0
;;
--download
|
-d
)
download
=
yes
;;
*
)
echo
"ERROR: unrecognized option '
${
arg
}
': try
\`
$0
--help' for more information"
>
&2
exit
2
;;
esac
done
autoreconf
-fvi
||
exit
$?
# The following is not needed as long as we do not patch libtool.m4:
...
...
@@ -32,3 +58,15 @@ for patch in \
patch
-p
1
--no-backup-if-mismatch
--forward
-r
-
-i
$patch
-d
.
exitcode
=
$?
;
if
test
$exitcode
-ne
0
&&
test
$exitcode
-ne
1
;
then
exit
$exitcode
;
fi
done
if
test
x
"
$download
"
=
xyes
;
then
url_base
=
'https://git.savannah.gnu.org/cgit/config.git/plain'
for
file
in
config.guess config.sub
;
do
echo
"downloading
$file
"
src
=
"
$url_base
/
$file
"
;
dst
=
"config/
$file
"
wget
-o
/dev/null
-O
"
$dst
"
"
$src
"
||
{
echo
"ERROR: failed to download from
$src
"
>
&2
exit
1
;
}
done
fi
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