pika-drivers/data/generate_package_info.sh
2024-02-23 20:03:49 +03:00

14 lines
333 B
Bash
Executable File

#! /bin/bash
if [[ $1 == "version" ]]
then
if [[ $2 == "pika-rocm-meta" ]]
then
apt-cache show rocm-core | grep Version: | cut -d":" -f2 | head -n1
else
apt-cache show $2 | grep Version: | cut -d":" -f2 | head -n1
fi
elif [[ $1 == "description" ]]
then
apt-cache show $2 | grep 'Description*' | cut -d":" -f2 | head -n1
fi