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
f1e261f8
Unverified
Commit
f1e261f8
authored
8 years ago
by
Ian Douglas Scott
Browse files
Options
Downloads
Patches
Plain Diff
Support downloading tar archive, instead of git repo
parent
c20fed78
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!4
Recipe for Lua
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
cook.sh
+29
-7
29 additions, 7 deletions
cook.sh
with
29 additions
and
7 deletions
cook.sh
+
29
−
7
View file @
f1e261f8
...
@@ -48,19 +48,41 @@ function op {
...
@@ -48,19 +48,41 @@ function op {
op
$1
unfetch
op
$1
unfetch
;;
;;
fetch
)
fetch
)
if
[
!
-d
build
]
if
[
-z
"
$GIT
"
]
then
then
git clone
--recursive
"
$GIT
"
build
if
[
!
-f
"
$(
basename
"
$SRC
"
)
"
]
then
wget
"
$SRC
"
fi
rm
-rf
build
tar
xvf
"
$(
basename
"
$SRC
"
)
"
mv
"
$DIR
"
build
else
if
[
!
-d
build
]
then
git clone
--recursive
"
$GIT
"
build
fi
pushd
build
>
/dev/null
git pull
git submodule
sync
git submodule update
--init
--recursive
popd
>
/dev/null
fi
if
[
-f
"patch"
]
then
patch
-p1
-d
build < patch
fi
fi
pushd
build
>
/dev/null
git pull
git submodule
sync
git submodule update
--init
--recursive
popd
>
/dev/null
;;
;;
unfetch
)
unfetch
)
rm
-rfv
build
rm
-rfv
build
if
[
!
-z
"
$SRC
"
]
then
rm
-f
"
$(
basename
"
$SRC
"
)
"
fi
;;
;;
version
)
version
)
pushd
build
>
/dev/null
pushd
build
>
/dev/null
...
...
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