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
3536471c
Commit
3536471c
authored
7 years ago
by
Jeremy Soller
Browse files
Options
Downloads
Patches
Plain Diff
Add ability to get package information
parent
7d426b55
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
cook.sh
+11
-0
11 additions, 0 deletions
cook.sh
setup.sh
+5
-0
5 additions, 0 deletions
setup.sh
with
16 additions
and
0 deletions
cook.sh
+
11
−
0
View file @
3536471c
...
...
@@ -44,6 +44,17 @@ function op {
unfetch
)
rm
-rfv
build
;;
info
)
pushd
build
>
/dev/null
if
[
-e
Cargo.toml
]
then
package_version
=
"
$(
cargo config package.version |
tr
-d
'"'
)
"
else
package_version
=
"
$(
git rev-parse
--short
HEAD
)
"
fi
echo
"
$1_
${
package_version
}
"
popd
>
/dev/null
;;
update
)
pushd
build
>
/dev/null
skip
=
"0"
...
...
This diff is collapsed.
Click to expand it.
setup.sh
+
5
−
0
View file @
3536471c
...
...
@@ -10,6 +10,11 @@ echo "Update rust nightly"
rustup update nightly
echo
"Downloading rust source"
rustup component add rust-src
if
[
-z
"
$(
which cargo-config
)
"
]
then
echo
"Installing cargo-config"
cargo
install
-f
cargo-config
fi
if
[
-z
"
$(
which xargo
)
"
]
then
echo
"Installing xargo"
...
...
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