diff options
author | Anne Nicolas <ennael@mageia.org> | 2013-08-04 16:06:48 +0000 |
---|---|---|
committer | Anne Nicolas <ennael@mageia.org> | 2013-08-04 16:06:48 +0000 |
commit | b8fca061848039c6bdb629308340e1de3205176b (patch) | |
tree | 53aee191f39de05bb00579c40bfa5127a3676dc7 /import-images.sh | |
parent | 8b76dcbf71fa379d25d3db83a386391f0b9bb3dc (diff) | |
parent | bc2ef72a8c1fc97811d450d0016c44392a43dc4b (diff) | |
download | theme-distro/mga3.tar theme-distro/mga3.tar.gz theme-distro/mga3.tar.bz2 theme-distro/mga3.tar.xz theme-distro/mga3.zip |
mageia 3 themedistro/mga3
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..e5be16d --- /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 |