Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Alchemy Viewer
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Package Registry
Operate
Terraform modules
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Silent mode is enabled
All outbound communications are blocked.
Learn more
.
Show more breadcrumbs
Alchemy Viewer
Alchemy Viewer
Commits
05fa5e52
Commit
05fa5e52
authored
11 years ago
by
Oz Linden
Browse files
Options
Downloads
Patches
Plain Diff
improve build.sh searches for additional package installers
parent
ba39f6e1
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
build.sh
+45
-15
45 additions, 15 deletions
build.sh
with
45 additions
and
15 deletions
build.sh
+
45
−
15
View file @
05fa5e52
...
...
@@ -36,24 +36,59 @@ build_dir_CYGWIN()
echo
build-vc100
}
viewer_channel_suffix
()
{
local
package_name
=
"
$1
"
local
suffix_var
=
"
${
package_name
}
_viewer_channel_suffix"
local
suffix
=
$(
eval
"echo
\$
${
suffix_var
}
"
)
if
[
"
$suffix
"
x
=
""
x
]
then
echo
""
else
echo
"_
$suffix
"
fi
}
installer_Darwin
()
{
ls
-1tr
"
$(
build_dir_Darwin
${
last_built_variant
:-
Release
}
)
/newview/"
*
"
$additional_package_name
"
*
.dmg 2>/dev/null |
sed
1q
local
package_name
=
"
$1
"
local
package_dir
=
"
$(
build_dir_Darwin
${
last_built_variant
:-
Release
}
)
/newview/"
local
pattern
=
".*
$(
viewer_channel_suffix
${
package_name
}
)
_[0-9]+_[0-9]+_[0-9]+_[0-9]+_i386
\\
.dmg
\$
"
# since the additional packages are built after the base package,
# sorting oldest first ensures that the unqualified package is returned
# even if someone makes a qualified name that duplicates the last word of the base name
local
package
=
$(
ls
-1tr
"
$package_dir
"
2>/dev/null |
grep
-E
"
$pattern
"
|
head
-n
1
)
test
"
$package
"
x
!=
""
x
&&
echo
"
$package_dir
/
$package
"
}
installer_Linux
()
{
ls
-1tr
"
$(
build_dir_Linux
${
last_built_variant
:-
Release
}
)
/newview/"
*
"
$additional_package_name
"
*
.tar.bz2 2>/dev/null |
grep
-v
symbols |
sed
1q
local
package_name
=
"
$1
"
local
package_dir
=
"
$(
build_dir_Linux
${
last_built_variant
:-
Release
}
)
/newview/"
local
pattern
=
".*
$(
viewer_channel_suffix
${
package_name
}
)
_[0-9]+_[0-9]+_[0-9]+_[0-9]+_i686
\\
.tar
\\
.bz2
\$
"
# since the additional packages are built after the base package,
# sorting oldest first ensures that the unqualified package is returned
# even if someone makes a qualified name that duplicates the last word of the base name
package
=
$(
ls
-1tr
"
$package_dir
"
2>/dev/null |
grep
-E
"
$pattern
"
|
head
-n
1
)
test
"
$package
"
x
!=
""
x
&&
echo
"
$package_dir
/
$package
"
}
installer_CYGWIN
()
{
v
=
${
last_built_variant
:-
Release
}
d
=
$(
build_dir_CYGWIN
$v
)
if
[
-r
"
$d
/newview/
$additional_package_name$v
/touched.bat"
]
local
package_name
=
"
$1
"
local
variant
=
${
last_built_variant
:-
Release
}
local
build_dir
=
$(
build_dir_CYGWIN
${
variant
}
)
local
package_dir
if
[
"
$package_name
"
x
=
""
x
]
then
package_dir
=
"
${
build_dir
}
/newview/
${
variant
}
"
else
package_dir
=
"
${
build_dir
}
/newview/
${
package_name
}
/
${
variant
}
"
fi
if
[
-r
"
${
package_dir
}
/touched.bat"
]
then
p
=
$(
sed
's:.*=::'
"
$
d
/newview/
$additional_
package_
name$v
/touched.bat"
)
echo
"
$
d
/newview/
$additional_package_name$v
/
$p
"
local
package_file
=
$(
sed
's:.*=::'
"
$
{
package_
dir
}
/touched.bat"
)
echo
"
$
{
package_dir
}
/
${
package_file
}
"
fi
}
...
...
@@ -275,7 +310,7 @@ then
if
$build_viewer_deb
&&
[
"
$last_built_variant
"
==
"Release"
]
then
begin_section
"Build Viewer Debian Package"
local
have_private_repo
=
false
have_private_repo
=
false
# mangle the changelog
dch
--force-bad-version
\
--distribution
unstable
\
...
...
@@ -362,19 +397,14 @@ then
# Upload additional packages.
for
package_id
in
$additional_packages
do
case
$arch
in
CYGWIN
)
export
additional_package_name
=
"
$package_id
/"
;;
*
)
export
additional_package_name
=
$package_id
;;
esac
package
=
$(
installer_
$arch
)
package
=
$(
installer_
$arch
"
$package_id
"
)
if
[
x
"
$package
"
!=
x
]
then
upload_item installer
"
$package
"
binary/octet-stream
else
record_failure
"Failed to
upload
$package_id
package (
$package
::
$
additional
_
package
_name
)
."
record_failure
"Failed to
find
additional
package
for '
$package_id
'
."
fi
done
export
additional_package_name
=
""
case
"
$last_built_variant
"
in
Release
)
...
...
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