gdm-theme-settings/extractgst.sh
davedatum 23a7402a75 init
2019-11-04 23:10:47 +00:00

20 lines
424 B
Bash
Executable File

#!/bin/sh
gst=/usr/share/gnome-shell/gnome-shell-theme.gresource
workdir=${HOME}/Github/Manjaro/manjaro-gnome-theme/gnome-shell
if [ -d $workdir ]; then
rm -R $workdir
fi
for r in `gresource list $gst`; do
r=${r#\/org\/gnome\/shell/}
if [ ! -d $workdir/${r%/*} ]; then
mkdir -p $workdir/${r%/*}
fi
done
for r in `gresource list $gst`; do
gresource extract $gst $r >$workdir/${r#\/org\/gnome\/shell/}
done