Skip to content
Snippets Groups Projects
Commit 9930e92f authored by Jeremy Soller's avatar Jeremy Soller
Browse files

Change info to version number, echo to stderr

parent f2f54873
No related branches found
No related tags found
No related merge requests found
......@@ -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
;;
......
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
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment