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
7d06611a
Commit
7d06611a
authored
7 years ago
by
Jeremy Soller
Browse files
Options
Downloads
Patches
Plain Diff
Update source, not build, as Cargo.lock is now committed
parent
2067c829
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
cook.sh
+13
-14
13 additions, 14 deletions
cook.sh
pkgutils
+1
-1
1 addition, 1 deletion
pkgutils
repo.sh
+2
-2
2 additions, 2 deletions
repo.sh
with
16 additions
and
17 deletions
cook.sh
+
13
−
14
View file @
7d06611a
...
...
@@ -37,7 +37,6 @@ function op {
case
"
$2
"
in
dist
)
op
$1
prepare
op
$1
update
op
$1
build
op
$1
stage
op
$1
tar
...
...
@@ -94,6 +93,19 @@ function op {
rm
-f
source.tar
fi
;;
update
)
pushd source
>
/dev/null
skip
=
0
if
[
"
$(
type
-t
recipe_update
)
"
=
"function"
]
then
recipe_update
fi
if
[
"
$skip
"
-eq
"0"
]
then
xargo update
fi
popd
>
/dev/null
;;
prepare
)
rm
-rf
sysroot
mkdir
sysroot
...
...
@@ -143,19 +155,6 @@ function op {
op
$1
version
fi
;;
update
)
pushd
build
>
/dev/null
skip
=
0
if
[
"
$(
type
-t
recipe_update
)
"
=
"function"
]
then
recipe_update
fi
if
[
"
$skip
"
-eq
"0"
]
then
xargo update
fi
popd
>
/dev/null
;;
build
)
pushd
build
>
/dev/null
skip
=
0
...
...
This diff is collapsed.
Click to expand it.
pkgutils
@
d3062a71
Compare
65291649
...
d3062a71
Subproject commit
65291649009fa64d5b1c40129068471cc57f0c0
d
Subproject commit
d3062a717c53601441c42cd4c974054f8084ee6
d
This diff is collapsed.
Click to expand it.
repo.sh
+
2
−
2
View file @
7d06611a
...
...
@@ -36,7 +36,7 @@ do
if
[
!
-f
"recipes/
$recipe
/stage.tar.gz"
]
then
echo
-e
"
\0
33[01;38;5;155mrepo - building
$recipe
\0
33[0m"
>
&2
./cook.sh
"
$recipe
"
update
build stage
tar
./cook.sh
"
$recipe
"
build stage
tar
else
TIME_BUILD
=
"
$(
$FIND
recipes/
$recipe
/build
-type
f
-not
-path
'*/.git*'
-printf
"%Ts
\n
"
|
sort
-nr
|
head
-n
1
)
"
TIME_STAGE
=
"
$(
$STAT
-c
"%Y"
recipes/
$recipe
/stage.tar.gz
)
"
...
...
@@ -44,7 +44,7 @@ do
if
[
"
$TIME_BUILD
"
-gt
"
$TIME_STAGE
"
-o
"
$TIME_RECIPE
"
-gt
"
$TIME_STAGE
"
]
then
echo
-e
"
\0
33[01;38;5;155mrepo - rebuilding
$recipe
\0
33[0m"
>
&2
./cook.sh
"
$recipe
"
untar unstage
update
build stage
tar
./cook.sh
"
$recipe
"
untar unstage build stage
tar
else
echo
-e
"
\0
33[01;38;5;155mrepo -
$recipe
up to date
\0
33[0m"
>
&2
fi
...
...
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