usr/bin/byobu-export

This commit is contained in:
Dustin Kirkland 2010-06-24 10:19:42 -05:00
commit 48f3615ba8
2 changed files with 14 additions and 4 deletions

1
debian/changelog vendored
View file

@ -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

View file

@ -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
continue install)
fi continue
;;
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