diff options
author | Olivier Blin <oblin@mandriva.com> | 2007-10-16 10:21:12 +0000 |
---|---|---|
committer | Olivier Blin <oblin@mandriva.com> | 2007-10-16 10:21:12 +0000 |
commit | fe39c718b7f23d47fef10224a6bdbf9098e7527f (patch) | |
tree | ba790a5de10b8d9ad5ec642f44c7078fa8efe347 /import-images.sh | |
parent | d4d86b3289a1d4579589998a8e5c38d51608e080 (diff) | |
download | theme-fe39c718b7f23d47fef10224a6bdbf9098e7527f.tar theme-fe39c718b7f23d47fef10224a6bdbf9098e7527f.tar.gz theme-fe39c718b7f23d47fef10224a6bdbf9098e7527f.tar.bz2 theme-fe39c718b7f23d47fef10224a6bdbf9098e7527f.tar.xz theme-fe39c718b7f23d47fef10224a6bdbf9098e7527f.zip |
add script to import theme images
Diffstat (limited to 'import-images.sh')
-rwxr-xr-x | import-images.sh | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/import-images.sh b/import-images.sh new file mode 100755 index 0000000..2d8f06c --- /dev/null +++ b/import-images.sh @@ -0,0 +1,19 @@ +#!/bin/sh + +mode=$1 +shift +theme=$1 +shift + +if [ -z "$mode" -o -z "$theme" ]; then + echo "usage: $0 [bootsplash|background] <theme name> [files ...]" +fi + +prefix=background/$theme +[ "$mode" = "bootsplash" ] && prefix=bootsplash/data/bootsplash + +for f in "$@"; do + r=`identify -format '%wx%h' $f` + d=$theme/$prefix-$r.png + cp -af $f $d +done |