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
c6cbebda
Commit
c6cbebda
authored
8 years ago
by
Jeremy Soller
Browse files
Options
Downloads
Patches
Plain Diff
Repo directory
parent
867e02fb
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.gitignore
+1
-0
1 addition, 0 deletions
.gitignore
cook.sh
+15
-7
15 additions, 7 deletions
cook.sh
with
16 additions
and
7 deletions
.gitignore
+
1
−
0
View file @
c6cbebda
build
repo
stage
stage.tar
This diff is collapsed.
Click to expand it.
cook.sh
+
15
−
7
View file @
c6cbebda
...
...
@@ -4,6 +4,7 @@ export RUST_TARGET_PATH="$PWD/targets"
export
RUSTFLAGS
=
"--cfg redox"
export
CARGOFLAGS
=
TARGET
=
x86_64-unknown-redox
REPO
=
"
$PWD
/repo/
$TARGET
"
set
-e
...
...
@@ -23,7 +24,7 @@ function op {
popd
>
/dev/null
;;
unfetch
)
rm
-rf
build
rm
-rf
v
build
;;
update
)
pushd
build
>
/dev/null
...
...
@@ -48,18 +49,25 @@ function op {
popd
>
/dev/null
;;
unstage
)
rm
-rf
stage
rm
-rf
v
stage
;;
tar
)
pushd
stage
>
/dev/null
tar
cf ../stage.tar
.
tar
cf
v
../stage.tar
.
popd
>
/dev/null
;;
untar
)
rm
-rf
stage.tar
rm
-rfv
stage.tar
;;
publish
)
mkdir
-p
"
$REPO
"
cp
-v
stage.tar
"
$REPO
/
$1
.tar"
;;
unpublish
)
rm
-rfv
"
$REPO
/
$1
.tar"
;;
*
)
echo
"
$0
{package}
{build|clean|fetch|update}"
echo
"
cook.sh
$1
{build|clean|fetch|
unfetch|publish|unpublish|stage|unstage|tar|untar|
update}"
;;
esac
}
...
...
@@ -75,8 +83,8 @@ then
op
"
$1
"
"
$arg
"
done
else
echo
"
$0
: recipe '
$1
' not found"
echo
"
cook.sh
: recipe '
$1
' not found"
fi
else
echo
"
$0
{package} {build|clean|fetch|unfetch|stage|unstage|tar|untar|update}"
echo
"
cook.sh
{package} {build|clean|fetch|unfetch|
publish|unpublish|
stage|unstage|tar|untar|update}"
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