Mercurial > audlegacy
annotate contrib/migrate_config.sh @ 3336:904c58081f0a trunk
removed Disconnect method and Disconnected signal as they have been removed from the spec.
author | Ben Tucker <ben.tucker@gmail.com> |
---|---|
date | Sat, 11 Aug 2007 22:17:13 -0700 |
parents | 37e46a06a8d4 |
children |
rev | line source |
---|---|
2328 | 1 #!/bin/sh |
2 # | |
3 # This script is used to convert the old $HOME/.audacious config dir | |
4 # to the new XDG basedir equivalent. | |
5 # | |
6 | |
2349 | 7 : ${BMP_RCPATH:=".audacious"} |
8 : ${XDG_CONFIG_HOME:="$HOME/.config"} | |
9 : ${XDG_DATA_HOME:="$HOME/.local/share"} | |
10 : ${XDG_CACHE_HOME:="$HOME/.cache"} | |
2328 | 11 |
12 rm -fr "$XDG_CONFIG_HOME/audacious" | |
13 rm -fr "$XDG_DATA_HOME/audacious" | |
14 rm -fr "$XDG_CACHE_HOME/audacious" | |
15 | |
16 mkdir -p "$XDG_CONFIG_HOME/audacious" | |
2506
630910fd140f
[svn] - changed plugin directory to ~/.local/share/audacious/Plugins (seems more logical to me)
mf0102
parents:
2350
diff
changeset
|
17 mkdir -p "$XDG_DATA_HOME/audacious/Plugins" |
2328 | 18 mkdir -p "$XDG_DATA_HOME/audacious/Skins" |
19 mkdir -p "$XDG_CACHE_HOME/audacious/thumbs" | |
20 | |
2506
630910fd140f
[svn] - changed plugin directory to ~/.local/share/audacious/Plugins (seems more logical to me)
mf0102
parents:
2350
diff
changeset
|
21 mv "$HOME/$BMP_RCPATH/config" "$XDG_CONFIG_HOME/audacious/" |
2328 | 22 mv "$HOME/$BMP_RCPATH/playlist.xspf" "$XDG_CONFIG_HOME/audacious/" |
2506
630910fd140f
[svn] - changed plugin directory to ~/.local/share/audacious/Plugins (seems more logical to me)
mf0102
parents:
2350
diff
changeset
|
23 mv "$HOME/$BMP_RCPATH/Plugins" "$XDG_DATA_HOME/audacious/" |
630910fd140f
[svn] - changed plugin directory to ~/.local/share/audacious/Plugins (seems more logical to me)
mf0102
parents:
2350
diff
changeset
|
24 mv "$HOME/$BMP_RCPATH/Skins" "$XDG_DATA_HOME/audacious/" |
630910fd140f
[svn] - changed plugin directory to ~/.local/share/audacious/Plugins (seems more logical to me)
mf0102
parents:
2350
diff
changeset
|
25 mv "$HOME/$BMP_RCPATH/accels" "$XDG_CONFIG_HOME/audacious/" |
630910fd140f
[svn] - changed plugin directory to ~/.local/share/audacious/Plugins (seems more logical to me)
mf0102
parents:
2350
diff
changeset
|
26 mv "$HOME/$BMP_RCPATH/log" "$XDG_CONFIG_HOME/audacious/" |
2328 | 27 |
28 echo "Conversion done. Please move the remaining files manually." |