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
c3fb7649
Commit
c3fb7649
authored
8 years ago
by
Jeremy Soller
Browse files
Options
Downloads
Patches
Plain Diff
Add staging command
parent
a8c48d18
No related branches found
No related tags found
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
.gitignore
+1
-0
1 addition, 0 deletions
.gitignore
cook.sh
+13
-15
13 additions, 15 deletions
cook.sh
recipes/smith/root/.crates.toml
+0
-0
0 additions, 0 deletions
recipes/smith/root/.crates.toml
recipes/smith/root/bin/smith
+0
-0
0 additions, 0 deletions
recipes/smith/root/bin/smith
with
14 additions
and
15 deletions
.gitignore
+
1
−
0
View file @
c3fb7649
build
stage
This diff is collapsed.
Click to expand it.
cook.sh
+
13
−
15
View file @
c3fb7649
...
...
@@ -11,45 +11,43 @@ if [ -n "$1" ]
then
if
[
-d
"recipes/
$1
"
]
then
push
d
"recipes/
$1
"
c
d
"recipes/
$1
"
source
recipe.sh
for
arg
in
"
${
@
:2
}
"
do
case
"
$arg
"
in
build
)
push
d
build
c
d
build
xargo build
--target
"
$TARGET
"
$CARGOFLAGS
popd
;;
clean
)
push
d
build
c
d
build
xargo clean
popd
;;
install
)
mkdir
-p
root/bin
pushd
build
#TODO xargo install --root "../root" $CARGOFLAGS
cp
-v
$(
find target/x86_64-unknown-redox/debug/
-maxdepth
1
-type
f
!
-name
"*.*"
)
../root/bin
popd
;;
fetch
)
git clone
--recursive
"
$GIT
"
build
;;
stage
)
mkdir
-p
stage/bin
cd
build
#TODO xargo install --root "../stage" $CARGOFLAGS
cp
-v
$(
find target/x86_64-unknown-redox/debug/
-maxdepth
1
-type
f
!
-name
"*.*"
)
../stage/bin
;;
unstage
)
rm
-rf
stage
;;
unfetch
)
rm
-rf
build
;;
update
)
push
d
build
c
d
build
xargo update
popd
;;
*
)
echo
"
$0
{package} {build|clean|fetch|update}"
;;
esac
done
popd
else
echo
"
$0
: recipe '
$1
' not found"
fi
...
...
This diff is collapsed.
Click to expand it.
recipes/smith/root/.crates.toml
deleted
100644 → 0
+
0
−
0
View file @
a8c48d18
This diff is collapsed.
Click to expand it.
recipes/smith/root/bin/smith
deleted
100755 → 0
+
0
−
0
View file @
a8c48d18
File deleted
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