Commit 9a2f5e6c7c07fabb4e989b67edb56daf067a426e

Authored by Silvan Calarco
1 parent 6de5fc2b9c
Exists in master

kde5-migrate-user-conf: added akonadi files migration

Showing 1 changed file with 20 additions and 2 deletions Side-by-side Diff

bin/kde5-migrate-user-conf
... ... @@ -2,8 +2,8 @@
2 2 # openmamba simple kde4->kde5 user config migration script
3 3 if [ "$1" = "-f" ]; then
4 4 FORCE=1
5   -else
6   - [ -e ~/.kde4/share/config/ -a ! -e ~/.kde4/share/.kde5_conf_migrated ] || exit 0
  5 +#else
  6 +# [ -e ~/.kde4/share/config/ -a ! -e ~/.kde4/share/.kde5_conf_migrated ] || exit 0
7 7 fi
8 8 for p in ~/.kde4/share/config/*; do
9 9 [ -L $p ] && continue
... ... @@ -20,6 +20,24 @@
20 20 echo "Migrating $p -> ~/.config/$f"
21 21 mv $p ~/.config/ || exit 1
22 22 ln -s ../../../.config/$f $p || exit 1
  23 + fi
  24 +done
  25 +
  26 +for p in ~/.config/akonadi/*; do
  27 + [ -L $p ] && continue
  28 + f=`basename $p`
  29 + if [ -e ~/.config/$f ]; then
  30 + if [ "$FORCE" ]; then
  31 + echo "Migrating $p -> ~/.config/$f [forced]"
  32 + mv ~/.config/$f ~/.config/$f.bak
  33 + mv $p ~/.config/ || exit 1
  34 + ln -s ../$f $p || exit 1
  35 + fi
  36 + #echo "SKIPPED: $p"
  37 + else
  38 + echo "Migrating $p -> ~/.config/$f"
  39 + mv $p ~/.config/ || exit 1
  40 + ln -s ../$f $p || exit 1
23 41 fi
24 42 done
25 43