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
d1c72f4d
Commit
d1c72f4d
authored
7 years ago
by
Jeremy Soller
Browse files
Options
Downloads
Patches
Plain Diff
Add slashes after source and build to support symlinks
parent
b991094b
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
repo.sh
+5
-5
5 additions, 5 deletions
repo.sh
with
5 additions
and
5 deletions
repo.sh
+
5
−
5
View file @
d1c72f4d
...
@@ -13,19 +13,19 @@ fi
...
@@ -13,19 +13,19 @@ fi
for
recipe
in
$recipes
for
recipe
in
$recipes
do
do
if
[
!
-d
"recipes/
$recipe
/source"
]
if
[
!
-d
"recipes/
$recipe
/source
/
"
]
then
then
echo
-e
"
\0
33[01;38;5;215mrepo - fetching
$recipe
\0
33[0m"
>
&2
echo
-e
"
\0
33[01;38;5;215mrepo - fetching
$recipe
\0
33[0m"
>
&2
./cook.sh
"
$recipe
"
fetch
./cook.sh
"
$recipe
"
fetch
fi
fi
if
[
!
-d
"recipes/
$recipe
/build"
]
if
[
!
-d
"recipes/
$recipe
/build
/
"
]
then
then
echo
-e
"
\0
33[01;38;5;155mrepo - preparing
$recipe
\0
33[0m"
>
&2
echo
-e
"
\0
33[01;38;5;155mrepo - preparing
$recipe
\0
33[0m"
>
&2
./cook.sh
"
$recipe
"
prepare
./cook.sh
"
$recipe
"
prepare
else
else
TIME_SOURCE
=
"
$(
$FIND
recipes/
$recipe
/source
-type
f
-not
-path
'*/.git*'
-printf
"%Ts
\n
"
|
sort
-nr
|
head
-n
1
)
"
TIME_SOURCE
=
"
$(
$FIND
recipes/
$recipe
/source
/
-type
f
-not
-path
'*/.git*'
-printf
"%Ts
\n
"
|
sort
-nr
|
head
-n
1
)
"
TIME_BUILD
=
"
$(
$FIND
recipes/
$recipe
/build
-type
f
-not
-path
'*/.git*'
-printf
"%Ts
\n
"
|
sort
-nr
|
head
-n
1
)
"
TIME_BUILD
=
"
$(
$FIND
recipes/
$recipe
/build
/
-type
f
-not
-path
'*/.git*'
-printf
"%Ts
\n
"
|
sort
-nr
|
head
-n
1
)
"
if
[
"
$TIME_SOURCE
"
-gt
"
$TIME_BUILD
"
]
if
[
"
$TIME_SOURCE
"
-gt
"
$TIME_BUILD
"
]
then
then
echo
-e
"
\0
33[01;38;5;155mrepo - repreparing
$recipe
\0
33[0m"
>
&2
echo
-e
"
\0
33[01;38;5;155mrepo - repreparing
$recipe
\0
33[0m"
>
&2
...
@@ -38,7 +38,7 @@ do
...
@@ -38,7 +38,7 @@ do
echo
-e
"
\0
33[01;38;5;155mrepo - building
$recipe
\0
33[0m"
>
&2
echo
-e
"
\0
33[01;38;5;155mrepo - building
$recipe
\0
33[0m"
>
&2
./cook.sh
"
$recipe
"
build stage
tar
./cook.sh
"
$recipe
"
build stage
tar
else
else
TIME_BUILD
=
"
$(
$FIND
recipes/
$recipe
/build
-type
f
-not
-path
'*/.git*'
-printf
"%Ts
\n
"
|
sort
-nr
|
head
-n
1
)
"
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
)
"
TIME_STAGE
=
"
$(
$STAT
-c
"%Y"
recipes/
$recipe
/stage.tar.gz
)
"
TIME_RECIPE
=
"
$(
$FIND
recipes/
$recipe
/
{
recipe.sh,
*
.patch
}
-printf
'%Ts\n'
|
sort
-nr
|
head
-n
1
)
"
TIME_RECIPE
=
"
$(
$FIND
recipes/
$recipe
/
{
recipe.sh,
*
.patch
}
-printf
'%Ts\n'
|
sort
-nr
|
head
-n
1
)
"
if
[
"
$TIME_BUILD
"
-gt
"
$TIME_STAGE
"
-o
"
$TIME_RECIPE
"
-gt
"
$TIME_STAGE
"
]
if
[
"
$TIME_BUILD
"
-gt
"
$TIME_STAGE
"
-o
"
$TIME_RECIPE
"
-gt
"
$TIME_STAGE
"
]
...
...
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