Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
3
3p-ogg_vorbis
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Labels
Merge Requests
0
Merge Requests
0
Requirements
Requirements
List
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Operations
Operations
Environments
Packages & Registries
Packages & Registries
Package Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issue
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Jobs
Commits
Open sidebar
Alchemy
Third Party
3p-ogg_vorbis
Commits
d4bc4680
Commit
d4bc4680
authored
Oct 17, 2016
by
Nat Goodspeed
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
DRTVWR-418: Update build-cmd.sh to new SLing conventions.
parent
15a20904
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
14 deletions
+10
-14
build-cmd.sh
build-cmd.sh
+10
-14
No files found.
build-cmd.sh
View file @
d4bc4680
#!/
bin/
bash
#!/
usr/bin/env
bash
cd
"
$(
dirname
"
$0
"
)
"
# turn on verbose debugging output for parabuild logs.
set
-x
exec
4>&1
;
export
BASH_XTRACEFD
=
4
;
set
-x
# make errors fatal
set
-e
# complain about unset env variables
set
-u
if
[
-z
"
$AUTOBUILD
"
]
;
then
fail
exit
1
fi
if
[
"
$OSTYPE
"
=
"cygwin"
]
;
then
...
...
@@ -25,15 +25,14 @@ OGG_VERSION="$(sed -n 's/^ VERSION=\(.*\)$/\1/p' "$OGG_SOURCE_DIR/configure")"
VORBIS_SOURCE_DIR
=
"libvorbis"
VORBIS_VERSION
=
"
$(
sed
-n
"s/^PACKAGE_VERSION='
\(
.*
\)
'/
\1
/p"
"
$VORBIS_SOURCE_DIR
/configure"
)
"
# load autbuild provided shell functions and variables
eval
"
$(
"
$autobuild
"
source_environment
)
"
# set LL_BUILD and friends
set_build_variables convenience Release
top
=
"
$(
pwd
)
"
stage
=
"
$(
pwd
)
/stage"
# load autobuild provided shell functions and variables
source_environment_tempfile
=
"
$stage
/source_environment.sh"
"
$autobuild
"
source_environment
>
"
$source_environment_tempfile
"
.
"
$source_environment_tempfile
"
build
=
${
AUTOBUILD_BUILD_ID
:
=0
}
echo
"
${
OGG_VERSION
}
-
${
VORBIS_VERSION
}
.
${
build
}
"
>
"
${
stage
}
/VERSION.txt"
...
...
@@ -68,7 +67,7 @@ case "$AUTOBUILD_PLATFORM" in
;;
darwin
*
)
pushd
"
$OGG_SOURCE_DIR
"
opts
=
"-arch
$AUTOBUILD_CONFIGURE_ARCH
$LL_BUILD
"
opts
=
"-arch
$AUTOBUILD_CONFIGURE_ARCH
$LL_BUILD
_RELEASE
"
export
CFLAGS
=
"
$opts
"
export
CPPFLAGS
=
"
$opts
"
export
LDFLAGS
=
"
$opts
"
...
...
@@ -89,7 +88,7 @@ case "$AUTOBUILD_PLATFORM" in
;;
linux
*
)
pushd
"
$OGG_SOURCE_DIR
"
opts
=
"-m
$AUTOBUILD_ADDRSIZE
$LL_BUILD
"
opts
=
"-m
$AUTOBUILD_ADDRSIZE
$LL_BUILD
_RELEASE
"
CFLAGS
=
"
$opts
"
CXXFLAGS
=
"
$opts
"
./configure
--prefix
=
"
$stage
"
make
make
install
...
...
@@ -111,6 +110,3 @@ mkdir -p "$stage/LICENSES"
pushd
"
$OGG_SOURCE_DIR
"
cp
COPYING
"
$stage
/LICENSES/ogg-vorbis.txt"
popd
pass
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