Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
RiscOS
T
Tools
Sources
squeeze
Commits
017f31a5
Commit
017f31a5
authored
6 years ago
by
Ben Avison
Browse files
Options
Download
Email Patches
Plain Diff
Remove mk.sh script (obsoleted by Env 1.38)
parent
4e96f934
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
33 deletions
+0
-33
mk.sh
mk.sh
+0
-33
No files found.
mk.sh
deleted
100644 → 0
View file @
4e96f934
#!/bin/bash
# A script to simplify building a single component.
# Syntax: mk.sh [target] [environment]
# For more flexibility, use make directly.
TARGET
=
all
[[
"
$1
"
=
~
(
all|install|debug|clean|links
)
]]
&&
TARGET
=
$1
&&
shift
[
-z
"
$1
"
]
||
BUILD
=
$1
&&
shift
[
-n
"
$BUILD
"
]
||
BUILD
=
ROOL/CTools
[
-n
"
$RISCOS
"
]
||
RISCOS
=
../../../../..
cd
$(
dirname
$0
)
# Two ways of doing the same thing
if
[
-n
"
$BUILDUSINGSUBSHELL
"
]
;
then
HERE
=
`
pwd
`
cd
$RISCOS
if
[
$TARGET
==
"install"
]
;
then
Env/
$BUILD
.sh
"cd
$HERE
&& make install COMPONENT=squeeze INSTTYPE=tool INSTDIR=
$INSTALLDIR
/Library -I
\$
MAKEFILEDIR --no-print-directory"
Env/
$BUILD
.sh
"cd
$HERE
&& make install COMPONENT=squeeze INSTTYPE=app INSTDIR=
$INSTALLDIR
/Tools/Tools -I
\$
MAKEFILEDIR --no-print-directory"
else
Env/
$BUILD
.sh
"cd
$HERE
&& make
$TARGET
COMPONENT=squeeze -I
\$
MAKEFILEDIR --no-print-directory"
fi
else
pushd
$RISCOS
>
/dev/null
source
Env/
$BUILD
.sh
popd
>
/dev/null
if
[
$TARGET
==
"install"
]
;
then
make
install
COMPONENT
=
squeeze
INSTTYPE
=
tool
INSTDIR
=
$INSTALLDIR
/Library
-I
$MAKEFILEDIR
--no-print-directory
make
install
COMPONENT
=
squeeze
INSTTYPE
=
app
INSTDIR
=
$INSTALLDIR
/Tools/Tools
-I
$MAKEFILEDIR
--no-print-directory
else
make
$TARGET
COMPONENT
=
squeeze
-I
$MAKEFILEDIR
--no-print-directory
fi
fi
This diff is collapsed.
Click to expand it.
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