mirror of
https://github.com/dustinkirkland/byobu
synced 2025-08-21 14:03:18 -07:00
releasing 3.8
This commit is contained in:
parent
528e288ce9
commit
d99f8656e4
2 changed files with 20 additions and 11 deletions
6
debian/changelog
vendored
6
debian/changelog
vendored
|
@ -1,8 +1,8 @@
|
||||||
byobu (3.8) unreleased; urgency=low
|
byobu (3.8-0ubuntu1) natty; urgency=low
|
||||||
|
|
||||||
* UNRELEASED
|
* usr/bin/byobu-janitor: fix migration to XDG, LP: #673797, #673727
|
||||||
|
|
||||||
-- Dustin Kirkland <kirkland@ubuntu.com> Mon, 08 Nov 2010 18:24:15 -0600
|
-- Dustin Kirkland <kirkland@ubuntu.com> Wed, 10 Nov 2010 18:29:01 -0600
|
||||||
|
|
||||||
byobu (3.7-0ubuntu1) natty; urgency=low
|
byobu (3.7-0ubuntu1) natty; urgency=low
|
||||||
|
|
||||||
|
|
|
@ -26,8 +26,23 @@ PKG="byobu"
|
||||||
RUN="$SOCKETDIR/S-$USER"
|
RUN="$SOCKETDIR/S-$USER"
|
||||||
FLAG="$RUN/$PKG.reload-required"
|
FLAG="$RUN/$PKG.reload-required"
|
||||||
|
|
||||||
# Never hurts, always helps to do this
|
# Handle xdg migration
|
||||||
[ -d "$DATA" ] || mkdir -p "$DATA"
|
if [ -d "$HOME/.$PKG" ]; then
|
||||||
|
# Old dir exists
|
||||||
|
if [ ! -e "$DATA" ]; then
|
||||||
|
# New dir does not; rename and link back
|
||||||
|
mkdir -p $(dirname "$DATA")
|
||||||
|
mv -f "$HOME/.$PKG" "$DATA"
|
||||||
|
ln -sf "$DATA" "$HOME/.$PKG"
|
||||||
|
elif [ -d "$DATA" ]; then
|
||||||
|
# Old and new dir exist; migrate files from old to new
|
||||||
|
mv -f "$HOME/.$PKG/"* "$DATA" 2>/dev/null
|
||||||
|
rmdir "$HOME/.$PKG"
|
||||||
|
ln -sf "$DATA" "$HOME/.$PKG"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
# Make the directory just in case
|
||||||
|
mkdir -p "$DATA"
|
||||||
|
|
||||||
# Exit immediately, if we're not forced, and there is no reload flag
|
# Exit immediately, if we're not forced, and there is no reload flag
|
||||||
if [ "$1" != "--force" ] && [ ! -e "$FLAG" ]; then
|
if [ "$1" != "--force" ] && [ ! -e "$FLAG" ]; then
|
||||||
|
@ -40,12 +55,6 @@ PROFILE="$DATA/profile"
|
||||||
# Use gsed on non-Linux OS's
|
# Use gsed on non-Linux OS's
|
||||||
which gsed 2>/dev/null && SED="gsed" || SED="sed"
|
which gsed 2>/dev/null && SED="gsed" || SED="sed"
|
||||||
|
|
||||||
# If the old dir exists, but the xdg one doesn't, migrate
|
|
||||||
if [ -d "$HOME/.$PKG" ] && [ ! -e "$DATA" ]; then
|
|
||||||
mv -f "$HOME/.$PKG" "$DATA"
|
|
||||||
ln -sf "$DATA" "$HOME/.$PKG"
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Create byobu-exchange buffer file, with secure permissions, if it doesn't exist
|
# Create byobu-exchange buffer file, with secure permissions, if it doesn't exist
|
||||||
if [ -w "$RUN" ] && [ ! -e "$RUN/$PKG-exchange" ]; then
|
if [ -w "$RUN" ] && [ ! -e "$RUN/$PKG-exchange" ]; then
|
||||||
install -m 600 /dev/null "$RUN/$PKG-exchange"
|
install -m 600 /dev/null "$RUN/$PKG-exchange"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue