mirror of
https://gitlab.redox-os.org/redox-os/redox.git
synced 2026-06-24 05:44:17 +08:00
Change info to version number, echo to stderr
This commit is contained in:
parent
f2f5487313
commit
9930e92fc7
10
cook.sh
10
cook.sh
@ -15,7 +15,7 @@ export CARGOFLAGS=
|
||||
set -e
|
||||
|
||||
function op {
|
||||
echo -e "\033[01;38;5;215mcook - $1 $2\033[0m"
|
||||
echo -e "\033[01;38;5;215mcook - $1 $2\033[0m" >&2
|
||||
case "$2" in
|
||||
dist)
|
||||
op $1 fetch
|
||||
@ -44,16 +44,16 @@ function op {
|
||||
unfetch)
|
||||
rm -rfv build
|
||||
;;
|
||||
info)
|
||||
version)
|
||||
pushd build > /dev/null
|
||||
skip="0"
|
||||
if [ "$(type -t recipe_info)" = "function" ]
|
||||
if [ "$(type -t recipe_version)" = "function" ]
|
||||
then
|
||||
recipe_info || skip="1"
|
||||
recipe_version || skip="1"
|
||||
fi
|
||||
if [ "$skip" -eq "0" ]
|
||||
then
|
||||
echo "$1_$(cargo config package.version | tr -d '"')"
|
||||
cargo config package.version | tr -d '"'
|
||||
fi
|
||||
popd > /dev/null
|
||||
;;
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
GIT=https://github.com/redox-os/orbdata.git
|
||||
|
||||
function recipe_info {
|
||||
echo "orbdata_0.0.1"
|
||||
function recipe_version {
|
||||
echo "0.0.1"
|
||||
return 1
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user