summaryrefslogtreecommitdiff
path: root/emerald-themes/themes/import.sh
blob: 54fa9ced025fe50158a532df4c1c66b1879817df (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/bash
pushd ${1}${2}
for x in $(ls | grep emerald)
do
       emerald=${x/.emerald/}
       echo ${x}
       mkdir -p ${emerald}
       # Unpack to DESTDIR/datadir/emerald/themes
       tar -xof ${x} -C ${emerald}
       rm -f ${x}
	   chmod 0755 ${emerald}
	   chmod 0644 ${emerald}/*
done
popd