summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornesl247 <nesl247@d7aaf104-2d23-0410-ae22-9d23157bf5a3>2006-12-10 02:11:57 +0000
committernesl247 <nesl247@d7aaf104-2d23-0410-ae22-9d23157bf5a3>2006-12-10 02:11:57 +0000
commitc549afe2436a11f094e186d0bb4b76e7937a4a1b (patch)
tree53531e1e4d9d12f2f15595ed647474a04c65ea44
parentcc8c8ec3dfb1b6216e218437901e24f804243afa (diff)
downloadmarex-dev-c549afe2436a11f094e186d0bb4b76e7937a4a1b.tar.gz
marex-dev-c549afe2436a11f094e186d0bb4b76e7937a4a1b.tar.bz2
Redo import.sh. It's cleaner and should always install as root:root. Basically a fix for gentoo and others who don't build as root, but install as root
git-svn-id: file:///beryl/trunk@1632 d7aaf104-2d23-0410-ae22-9d23157bf5a3
-rwxr-xr-xemerald-themes/themes/import.sh25
1 files changed, 8 insertions, 17 deletions
diff --git a/emerald-themes/themes/import.sh b/emerald-themes/themes/import.sh
index 452404a..cc812bf 100755
--- a/emerald-themes/themes/import.sh
+++ b/emerald-themes/themes/import.sh
@@ -1,21 +1,12 @@
#!/bin/bash
-ITheme()
-{
- echo $1
- NAME="`echo $1 | sed -e 's/.emerald$//'`"
- if [ -d "$NAME" ]
- then
- mv -f -- "$NAME" __OLDTHEME__
- fi
- mkdir -p -- "$NAME"
- tar -xzf "$1" -C "./$NAME"
- rm -f -- "$1"
- rm -rf __OLDTHEME__ # workaround weird bugs
-}
-pushd $1$2
-for each in ./*.emerald
+pushd ${1}${2}
+for x in $(ls | grep emerald)
do
- ITheme "$each"
+ emerald=${x/.emerald/}
+ echo ${x}
+ mkdir -p ${emerald}
+ # Unpack to DESTDIR/datadir/emerald/themes
+ tar -xof ${x} -C ${emerald}
+ rm -f ${x}
done
-rm -rf ./scratch
popd