Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc-gpu
Commits
a827765a
Commit
a827765a
authored
Oct 31, 2010
by
Pierre d'Herbemont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bootstrap: Use getopts.
parent
4881724b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
34 additions
and
15 deletions
+34
-15
extras/contrib/bootstrap
extras/contrib/bootstrap
+34
-15
No files found.
extras/contrib/bootstrap
View file @
a827765a
...
...
@@ -24,17 +24,23 @@
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
# ***************************************************************************
if
test
"$#"
-gt
"2"
-o
"
$1
"
=
"-h"
-o
"
$1
"
=
"--help"
;
then
echo
"Usage:
$0
[target [distro]]"
>
&2
echo
" Prepare config.mak and distro.mak file."
>
&2
exit
1
fi
LANG
=
C
export
LANG
set
-e
set
+x
usage
()
{
cat
<<
EOF
usage:
$0
[-t target] [-d distro]
OPTIONS:
-t Force target
-d Force distro
-h Help
EOF
}
add_makefile_cfg
()
{
echo
$1
>>
"
${
config_mak
}
"
...
...
@@ -63,20 +69,33 @@ ensure_macosx_sdk_presence()
DISTRO
=
BUILDDIR
=
.
while
getopts
“ht:d:” OPTION
do
case
$OPTION
in
h
)
usage
exit
1
;;
t
)
TARGET
=
$OPTARG
;;
d
)
DISTRO
=
$OPTARG
;;
?
)
usage
exit
;;
esac
done
BUILD
=
`
gcc
-dumpmachine
`
if
test
"$#"
-ge
"1"
;
then
TARGET
=
"
$1
"
else
if
test
"x
$TARGET
"
=
"x"
;
then
info
"No target specified, using '
$BUILD
'"
TARGET
=
"
$BUILD
"
fi
if
test
"$#"
=
"2"
;
then
info
"Forcing distro.mak to use
$2
.mak"
DISTRO
=
"
$2
"
TARGET
=
"
$1
"
fi
config_mak
=
"
${
BUILDDIR
}
/config.mak"
rm
-f
"
${
config_mak
}
"
{
...
...
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