mirror of
https://github.com/dustinkirkland/byobu
synced 2025-08-22 22:34:23 -07:00
usr/bin/byobu-export
This commit is contained in:
parent
dcdb0828f0
commit
48f3615ba8
2 changed files with 14 additions and 4 deletions
1
debian/changelog
vendored
1
debian/changelog
vendored
|
@ -11,6 +11,7 @@ byobu (2.81) unreleased; urgency=low
|
||||||
usr/bin/byobu-launcher-uninstall
|
usr/bin/byobu-launcher-uninstall
|
||||||
- usr/bin/byobu-launcher
|
- usr/bin/byobu-launcher
|
||||||
- usr/bin/byobu
|
- usr/bin/byobu
|
||||||
|
- usr/bin/byobu-export
|
||||||
|
|
||||||
* usr/bin/byobu-config, usr/share/doc/byobu/help.txt: improve help
|
* usr/bin/byobu-config, usr/share/doc/byobu/help.txt: improve help
|
||||||
text, per feedback from Turnkey Linux users
|
text, per feedback from Turnkey Linux users
|
||||||
|
|
|
@ -61,7 +61,14 @@ done
|
||||||
if [ -z "$file" ]; then
|
if [ -z "$file" ]; then
|
||||||
file="$TMP/$PKG.tar.gz"
|
file="$TMP/$PKG.tar.gz"
|
||||||
fi
|
fi
|
||||||
echo "$file" | grep -qs "\.tar\.gz$" || error "Target file must be a '.tar.gz' archive"
|
case "$file" in
|
||||||
|
*.tar.gz)
|
||||||
|
true
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
error "Target file must be a '.tar.gz' archive"
|
||||||
|
;;
|
||||||
|
esac
|
||||||
if [ -e "$file" ]; then
|
if [ -e "$file" ]; then
|
||||||
echo `gettext "File exists"` " [$file]"
|
echo `gettext "File exists"` " [$file]"
|
||||||
echo -n "`gettext 'Remove file? [y/N] '`"
|
echo -n "`gettext 'Remove file? [y/N] '`"
|
||||||
|
@ -95,9 +102,11 @@ ln -sf usr/share/$PKG/ec2/rates.us_ca "$DIR/.$PKG/ec2_rates"
|
||||||
|
|
||||||
# Some gardening; update paths to be $HOME-based
|
# Some gardening; update paths to be $HOME-based
|
||||||
for i in /usr/bin/$PKG-*; do
|
for i in /usr/bin/$PKG-*; do
|
||||||
if echo "$i" | grep -qs "install"; then
|
case "$i" in
|
||||||
|
install)
|
||||||
continue
|
continue
|
||||||
fi
|
;;
|
||||||
|
esac
|
||||||
bin=$(basename "$i")
|
bin=$(basename "$i")
|
||||||
sed -i "s:$bin:\$HOME/.$PKG$i:g" $(find $DIR -type f)
|
sed -i "s:$bin:\$HOME/.$PKG$i:g" $(find $DIR -type f)
|
||||||
done
|
done
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue