Create package metadata file

This commit is contained in:
Ian Douglas Scott 2017-04-25 11:27:53 -07:00
parent cad99ecff5
commit a092814806
No known key found for this signature in database
GPG Key ID: 4924E10E199B5959

View File

@ -195,10 +195,14 @@ function op {
rm -rfv stage
;;
tar)
mkdir -p stage/etc/pkg.d
echo "name = \"$1\"" > "stage/etc/pkg.d/$1.toml"
echo "version = \"$(op $1 version)\"" >> "stage/etc/pkg.d/$1.toml"
echo "target = \"$TARGET\"" >> "stage/etc/pkg.d/$1.toml"
$ROOT/pkgutils/target/release/pkg create stage
;;
untar)
rm -rfv stage.tar
rm -rfv stage.tar stage.sig
;;
publish)
mkdir -p "$REPO"