annotate migrate_config.sh @ 2485:5ce3c51d4499 trunk

[svn] - add window class player.Audacious to audacious player window
author giacomo
date Wed, 07 Feb 2007 18:38:48 -0800
parents 54cb84d3a581
children 630910fd140f
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
2328
d88558b0de0a [svn] - Added script for migration to XDG basedir.
js
parents:
diff changeset
1 #!/bin/sh
d88558b0de0a [svn] - Added script for migration to XDG basedir.
js
parents:
diff changeset
2 #
d88558b0de0a [svn] - Added script for migration to XDG basedir.
js
parents:
diff changeset
3 # This script is used to convert the old $HOME/.audacious config dir
d88558b0de0a [svn] - Added script for migration to XDG basedir.
js
parents:
diff changeset
4 # to the new XDG basedir equivalent.
d88558b0de0a [svn] - Added script for migration to XDG basedir.
js
parents:
diff changeset
5 #
d88558b0de0a [svn] - Added script for migration to XDG basedir.
js
parents:
diff changeset
6
2349
aa15ae72f7fb [svn] Replaced intricate part.
js
parents: 2328
diff changeset
7 : ${BMP_RCPATH:=".audacious"}
aa15ae72f7fb [svn] Replaced intricate part.
js
parents: 2328
diff changeset
8 : ${XDG_CONFIG_HOME:="$HOME/.config"}
aa15ae72f7fb [svn] Replaced intricate part.
js
parents: 2328
diff changeset
9 : ${XDG_DATA_HOME:="$HOME/.local/share"}
aa15ae72f7fb [svn] Replaced intricate part.
js
parents: 2328
diff changeset
10 : ${XDG_CACHE_HOME:="$HOME/.cache"}
2328
d88558b0de0a [svn] - Added script for migration to XDG basedir.
js
parents:
diff changeset
11
d88558b0de0a [svn] - Added script for migration to XDG basedir.
js
parents:
diff changeset
12 rm -fr "$XDG_CONFIG_HOME/audacious"
d88558b0de0a [svn] - Added script for migration to XDG basedir.
js
parents:
diff changeset
13 rm -fr "$XDG_DATA_HOME/audacious"
d88558b0de0a [svn] - Added script for migration to XDG basedir.
js
parents:
diff changeset
14 rm -fr "$XDG_CACHE_HOME/audacious"
d88558b0de0a [svn] - Added script for migration to XDG basedir.
js
parents:
diff changeset
15
d88558b0de0a [svn] - Added script for migration to XDG basedir.
js
parents:
diff changeset
16 mkdir -p "$XDG_CONFIG_HOME/audacious"
d88558b0de0a [svn] - Added script for migration to XDG basedir.
js
parents:
diff changeset
17 mkdir -p "$XDG_CONFIG_HOME/audacious/Plugins"
d88558b0de0a [svn] - Added script for migration to XDG basedir.
js
parents:
diff changeset
18 mkdir -p "$XDG_DATA_HOME/audacious/Skins"
d88558b0de0a [svn] - Added script for migration to XDG basedir.
js
parents:
diff changeset
19 mkdir -p "$XDG_CACHE_HOME/audacious/thumbs"
d88558b0de0a [svn] - Added script for migration to XDG basedir.
js
parents:
diff changeset
20
d88558b0de0a [svn] - Added script for migration to XDG basedir.
js
parents:
diff changeset
21 mv "$HOME/$BMP_RCPATH/config" "$XDG_CONFIG_HOME/audacious/"
d88558b0de0a [svn] - Added script for migration to XDG basedir.
js
parents:
diff changeset
22 mv "$HOME/$BMP_RCPATH/playlist.xspf" "$XDG_CONFIG_HOME/audacious/"
2350
54cb84d3a581 [svn] D'oh. I was really too tired when I wrote this. Fixed stupid bugs.
js
parents: 2349
diff changeset
23 mv "$HOME/$BMP_RCPATH/Plugins" "$XDG_CONFIG_HOME/audacious/"
54cb84d3a581 [svn] D'oh. I was really too tired when I wrote this. Fixed stupid bugs.
js
parents: 2349
diff changeset
24 mv "$HOME/$BMP_RCPATH/Skins" "$XDG_DATA_HOME/audacious/"
54cb84d3a581 [svn] D'oh. I was really too tired when I wrote this. Fixed stupid bugs.
js
parents: 2349
diff changeset
25 mv "$HOME/$BMP_RCPATH/accels" "$XDG_CONFIG_HOME/audacious/"
54cb84d3a581 [svn] D'oh. I was really too tired when I wrote this. Fixed stupid bugs.
js
parents: 2349
diff changeset
26 mv "$HOME/$BMP_RCPATH/log" "$XDG_CONFIG_HOME/audacious/"
2328
d88558b0de0a [svn] - Added script for migration to XDG basedir.
js
parents:
diff changeset
27
d88558b0de0a [svn] - Added script for migration to XDG basedir.
js
parents:
diff changeset
28 echo "Conversion done. Please move the remaining files manually."