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
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
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
Wildan Mubarok
cookbook
Commits
362af486
Commit
362af486
authored
7 years ago
by
Jeremy Soller
Browse files
Options
Downloads
Patches
Plain Diff
Ignore git directory, move fetch logic into seperate file
parent
ca8ba79a
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
fetch.sh
+16
-0
16 additions, 0 deletions
fetch.sh
repo.sh
+1
-7
1 addition, 7 deletions
repo.sh
with
17 additions
and
7 deletions
fetch.sh
0 → 100755
+
16
−
0
View file @
362af486
#!/bin/bash -e
source
config.sh
if
[
$#
=
0
]
then
recipes
=
"
$(
ls
-1
recipes
)
"
else
recipes
=
"
$@
"
fi
for
recipe
in
$recipes
do
echo
-e
"
\0
33[01;38;5;215mfetch - fetching
$recipe
\0
33[0m"
>
&2
./cook.sh
"
$recipe
"
fetch
done
This diff is collapsed.
Click to expand it.
repo.sh
+
1
−
7
View file @
362af486
...
...
@@ -11,18 +11,12 @@ fi
for
recipe
in
$recipes
do
if
[
!
-d
"recipes/
$recipe
/source"
]
then
echo
-e
"
\0
33[01;38;5;215mrepo - fetching and updating
$recipe
\0
33[0m"
>
&2
./cook.sh
"
$recipe
"
fetch
fi
if
[
!
-f
"recipes/
$recipe
/stage.tar"
]
then
echo
-e
"
\0
33[01;38;5;215mrepo - building
$recipe
\0
33[0m"
>
&2
./cook.sh
$recipe
update build stage
tar
else
TIME_SOURCE
=
"
$(
find recipes/
$recipe
/source
-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_STAGE
=
"
$(
stat
-c
"%Y"
recipes/
$recipe
/stage.tar
)
"
if
[
"
$TIME_SOURCE
"
-ge
"
$TIME_STAGE
"
]
then
...
...
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