Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
C
cookbook
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
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
redox-os
cookbook
Commits
8e326db1
Verified
Commit
8e326db1
authored
6 years ago
by
jD91mZM2
Browse files
Options
Downloads
Patches
Plain Diff
Resolve symlinks in 'stage'
parent
2179beb1
No related branches found
Branches containing commit
No related tags found
1 merge request
!174
Resolve symlinks in 'stage'
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
cook.sh
+6
-5
6 additions, 5 deletions
cook.sh
with
6 additions
and
5 deletions
cook.sh
+
6
−
5
View file @
8e326db1
...
@@ -341,15 +341,16 @@ function op {
...
@@ -341,15 +341,16 @@ function op {
stage
)
stage
)
op
$1
unstage
op
$1
unstage
mkdir
-p
stage
mkdir
-p
stage
stage
=
"
$(
realpath
stage
)
"
pushd
build
>
/dev/null
pushd
build
>
/dev/null
skip
=
0
skip
=
0
if
[
"
$(
type
-t
recipe_stage
)
"
=
"function"
]
if
[
"
$(
type
-t
recipe_stage
)
"
=
"function"
]
then
then
recipe_stage
../
stage
recipe_stage
"
$
stage
"
fi
fi
if
[
"
$skip
"
-eq
"0"
]
if
[
"
$skip
"
-eq
"0"
]
then
then
#TODO xargo install --root "
../
stage" $CARGOFLAGS
#TODO xargo install --root "
$
stage" $CARGOFLAGS
if
[
"
$DEBUG
"
==
1
]
if
[
"
$DEBUG
"
==
1
]
then
then
build
=
debug
build
=
debug
...
@@ -370,14 +371,14 @@ function op {
...
@@ -370,14 +371,14 @@ function op {
then
then
echo
"
$(
tput bold
)
Note
$(
tput sgr0
)
: No binaries detected, using example binaries"
echo
"
$(
tput bold
)
Note
$(
tput sgr0
)
: No binaries detected, using example binaries"
fi
fi
mkdir
-p
"
../
stage/
$BINDIR
"
mkdir
-p
"
$
stage
/
$BINDIR
"
for
bin
in
$bins
for
bin
in
$bins
do
do
if
[
"
$DEBUG
"
==
1
]
if
[
"
$DEBUG
"
==
1
]
then
then
cp
-v
"
$bin
"
"
../
stage/
$BINDIR
/
$(
basename
$bin
)
"
cp
-v
"
$bin
"
"
$
stage
/
$BINDIR
/
$(
basename
$bin
)
"
else
else
strip
-v
"
$bin
"
-o
"
../
stage/
$BINDIR
/
$(
basename
$bin
)
"
strip
-v
"
$bin
"
-o
"
$
stage
/
$BINDIR
/
$(
basename
$bin
)
"
fi
fi
done
done
else
else
...
...
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