Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
purr-data
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
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
Jonathan Wilkes
purr-data
Commits
557a0f06
Commit
557a0f06
authored
7 years ago
by
Albert Gräf
Browse files
Options
Downloads
Patches
Plain Diff
Make build target auto-detection work, cosmetic changes.
parent
c1cced63
No related branches found
No related tags found
1 merge request
!172
Build system fixes
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
l2ork_addons/tar_em_up.sh
+31
-19
31 additions, 19 deletions
l2ork_addons/tar_em_up.sh
with
31 additions
and
19 deletions
l2ork_addons/tar_em_up.sh
+
31
−
19
View file @
557a0f06
...
...
@@ -15,28 +15,33 @@ then
echo
echo
" Usage: ./tar_em_up.sh -option1 -option2 ..."
echo
" Options:"
echo
" -b build a
d
eb (incremental)"
echo
" -B build a
d
eb (complete recompile)"
echo
" -b build a
D
eb
ian package
(incremental)"
echo
" -B build a
D
eb
ian package
(complete recompile)"
echo
" -c core Pd source tarball"
echo
" -f full installer (incremental)"
echo
" -F full installer (complete recompile)"
echo
" -f full
tarball
installer (incremental)"
echo
" -F full
tarball
installer (complete recompile)"
echo
" -k keep previous build products"
echo
" -n skip package creation (-bB, -fF)"
echo
" -R build a Raspberry Pi deb (complete recompile)"
echo
" -r build a Raspberry Pi deb (incremental)"
echo
" -R build a Raspberry Pi deb (complete recompile)"
echo
" -t auto-detect target (incremental)"
echo
" -T auto-detect target (complete recompile)"
echo
" -X build an OSX installer (dmg)"
echo
" -z build a Windows installer (incremental)"
echo
" -Z build a Windows installer (complete recompile)"
echo
echo
" The incremental options bypass Gem compilation. This saves"
echo
" (lots of) time if Gem has already been built previously."
echo
" (lots of) time, but the generated package will lack Gem"
echo
" unless it has already been built previously. NOTE: Building"
echo
" Gem is NOT supported on OSX right now."
echo
echo
" The -k (keep) option doesn't clean before compilation,"
echo
" keeping the build products from a previous run. This also"
echo
" saves time if the script has been run previously."
echo
" preserving the build products from a previous run. This"
echo
" also saves time if the script has been run previously."
echo
" Not using this option forces a full recompile."
echo
echo
" For custom install locations
do the following before
"
echo
"
running this script
:"
echo
" For custom install locations
and staged installations
"
echo
"
set the inst_dir environment variable as follows
:"
echo
echo
" export inst_dir=/some/custom/location"
echo
...
...
@@ -50,9 +55,10 @@ rpi=0
pkg
=
1
inno
=
0
dmg
=
0
any
=
0
clean
=
1
while
getopts
":bBcfFknRrXzZ"
Option
while
getopts
":bBcfFknRr
Tt
XzZ"
Option
do case
$Option
in
b
)
deb
=
1
inst_dir
=
${
inst_dir
:-
/usr
}
;;
...
...
@@ -78,6 +84,10 @@ do case $Option in
inst_dir
=
/usr
rpi
=
1
;;
t
)
any
=
1
;;
T
)
any
=
2
;;
X
)
dmg
=
1
inst_dir
=
/usr
;;
...
...
@@ -101,26 +111,28 @@ export TAR_EM_UP_PREFIX=$inst_dir
os
=
`
uname
|
tr
'[:upper:]'
'[:lower:]'
`
if
[[
$os
==
*
"mingw32"
*
]]
;
then
os
=
win
fi
if
[[
$os
==
"darwin"
]]
;
then
elif
[[
$os
==
"darwin"
]]
;
then
os
=
osx
fi
# Pick a default build target if none has been set.
if
[
$core
-eq
0
-a
$full
-eq
0
-a
$deb
-eq
0
-a
$inno
-eq
0
-a
$dmg
-eq
0
]
then
# Auto-detect the platform and pick an appropriate build target.
if
[
$any
-gt
0
]
;
then
if
[[
$os
==
"osx"
]]
;
then
dmg
=
1
elif
[[
$os
==
"win"
]]
;
then
inno
=
2
inno
=
$any
else
deb
=
2
deb
=
$any
inst_dir
=
${
inst_dir
:-
/usr
}
fi
fi
# Automagically disable Debian packaging when the Debian packaging tools are
# not available.
test
$deb
-eq
0
||
test
-x
/usr/bin/dpkg-deb
||
pkg
=
0
if
test
$deb
-gt
0
&&
test
$pkg
-gt
0
&&
!
test
-x
/usr/bin/dpkg-deb
;
then
pkg
=
0
;
echo
"Debian toolchain unavailable, Debian packaging disabled"
fi
# Fetch the nw.js binary if we haven't already. We want to fetch it even
# for building with no libs, so we do it regardless of the options
...
...
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