From 399840bcf1e0fe6c332aa9619613fd78fd3e0d3a Mon Sep 17 00:00:00 2001 From: Maxim Likhachev Date: Tue, 25 Feb 2020 18:37:45 +0300 Subject: [PATCH] use: get USE flag description --- README.md | 1 + use | 10 ++++++++++ 2 files changed, 11 insertions(+) create mode 100755 use diff --git a/README.md b/README.md index 570fc62..3559e4c 100644 --- a/README.md +++ b/README.md @@ -74,6 +74,7 @@ will create the symbolic link for each script in the \ directory. - [defgroups](defgroups) adds a user to default system groups. - [passgen](passgen) creates the strong passwords. - [sync-date](sync-date) sets system time according to Google. +- [use](use) shows Gentoo USE flag's description. ## Development tools diff --git a/use b/use new file mode 100755 index 0000000..539c5d4 --- /dev/null +++ b/use @@ -0,0 +1,10 @@ +#!/bin/bash + +#Создан: Вт 25 фев 2020 18:24:10 +#Изменён: Вт 25 фев 2020 18:30:29 + +# Show Gentoo USE flag description + +curl -sq "https://packages.gentoo.org/useflags/${1?USAGE: $(basename "$0") [use flag]}" \ + | awk '/class="lead"/{getline; gsub(/^[ \t]+/, "", $0); print}' +