summaryrefslogtreecommitdiffstats
path: root/konqueror/sidebar/move_konqsidebartng_entries.sh
blob: 83de07bf361af5e5bc830b4c45bf4e841a3de59e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/sh

prefix=$(kde-config --localprefix)
source="$prefix/share/apps/konqsidebartng"

[ -d "$source/entries" ] || exit 0

profiles="filemanagement webbrowsing"
for profile in $profiles; do
	dest="$source/$profile/entries"
	if [ ! -d "$dest" ]; then
		mkdir -p "$dest" || exit 1
		cp $source/entries/.version $dest/
		cp $source/entries/* $dest/
	fi
done

rm -rf $source/entries