mirror of
https://github.com/dustinkirkland/byobu
synced 2025-08-21 14:03:18 -07:00
* debian/control:
- suggest pastebinit, drop w3m
This commit is contained in:
parent
07d0e86880
commit
3b2a4f64dc
3 changed files with 11 additions and 4 deletions
3
debian/changelog
vendored
3
debian/changelog
vendored
|
@ -1,6 +1,7 @@
|
||||||
byobu (5.104) unreleased; urgency=medium
|
byobu (5.104) unreleased; urgency=medium
|
||||||
|
|
||||||
* UNRELEASED
|
* debian/control:
|
||||||
|
- suggest pastebinit, drop w3m
|
||||||
|
|
||||||
-- Dustin Kirkland <kirkland@ubuntu.com> Sun, 28 Feb 2016 23:24:33 -0600
|
-- Dustin Kirkland <kirkland@ubuntu.com> Sun, 28 Feb 2016 23:24:33 -0600
|
||||||
|
|
||||||
|
|
2
debian/control
vendored
2
debian/control
vendored
|
@ -28,11 +28,11 @@ Suggests:
|
||||||
gnome-terminal,
|
gnome-terminal,
|
||||||
gnupg,
|
gnupg,
|
||||||
lsb-release,
|
lsb-release,
|
||||||
|
pastebinit,
|
||||||
po-debconf,
|
po-debconf,
|
||||||
ttf-ubuntu-font-family (>= 0.80-0ubuntu1~medium),
|
ttf-ubuntu-font-family (>= 0.80-0ubuntu1~medium),
|
||||||
update-notifier-common,
|
update-notifier-common,
|
||||||
vim,
|
vim,
|
||||||
w3m,
|
|
||||||
wireless-tools
|
wireless-tools
|
||||||
Provides:
|
Provides:
|
||||||
screen-profiles,
|
screen-profiles,
|
||||||
|
|
|
@ -19,11 +19,17 @@
|
||||||
|
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
|
if ! command -v pastebinit >/dev/null 2>&1; then
|
||||||
|
echo "ERROR: pastebinit not found. Hint:" 1>&2
|
||||||
|
echo " sudo apt install pastebinit" 1>&2
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
export_packages() {
|
export_packages() {
|
||||||
if [ "$OBJECT" = "-" ]; then
|
if [ "$OBJECT" = "-" ]; then
|
||||||
dpkg -l
|
dpkg -l
|
||||||
elif echo "$OBJECT" | grep -qs ".*://.*"; then
|
elif echo "$OBJECT" | grep -qs ".*://.*"; then
|
||||||
dpkg -l | lzma -9 -f -c | base64 | pastebinit -b "$OBJECT"
|
dpkg -l | gzip -9 | base64 | pastebinit -b "$OBJECT"
|
||||||
else
|
else
|
||||||
dpkg -l > "$OBJECT"
|
dpkg -l > "$OBJECT"
|
||||||
fi
|
fi
|
||||||
|
@ -33,7 +39,7 @@ import_packages() {
|
||||||
if [ "$OBJECT" = "-" ]; then
|
if [ "$OBJECT" = "-" ]; then
|
||||||
sudo apt install $(cat /dev/stdin | grep "^ii\s" | col2)
|
sudo apt install $(cat /dev/stdin | grep "^ii\s" | col2)
|
||||||
elif echo "$OBJECT" | grep -qs ".*://.*"; then
|
elif echo "$OBJECT" | grep -qs ".*://.*"; then
|
||||||
sudo apt install $(wget -q -O- "$OBJECT" | grep -A 999999999 '<div class="paste"><pre>' | grep -B 999999999 "^</pre>" | sed -e "s/.*<pre>//" -e "s/^<\/pre>.*//" | base64 -d | lzma -d | grep "^ii\s" | col2)
|
sudo apt install $(wget -q -O- "$OBJECT" | grep -A 999999999 '<div class="paste"><pre>' | grep -B 999999999 "^</pre>" | sed -e "s/.*<pre>//" -e "s/^<\/pre>.*//" | base64 -d | gunzip | grep "^ii\s" | col2)
|
||||||
else
|
else
|
||||||
sudo apt install $(cat "$OBJECT" | grep "^ii\s" | col2)
|
sudo apt install $(cat "$OBJECT" | grep "^ii\s" | col2)
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue