pika-drivers/data/generate_package_info.sh

14 lines
333 B
Bash
Raw Normal View History

2023-06-30 13:36:00 +03:00
#! /bin/bash
if [[ $1 == "version" ]]
then
2023-08-14 15:41:42 +03:00
if [[ $2 == "pika-rocm-meta" ]]
then
2024-02-21 22:35:49 +03:00
apt-cache show rocm-core | grep Version: | cut -d":" -f2 | head -n1
2023-08-14 15:41:42 +03:00
else
2024-02-21 22:35:49 +03:00
apt-cache show $2 | grep Version: | cut -d":" -f2 | head -n1
2023-08-14 15:41:42 +03:00
fi
2023-10-29 17:55:47 +03:00
elif [[ $1 == "description" ]]
then
apt-cache show $2 | grep 'Description*' | cut -d":" -f2 | head -n1
fi