Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Fjen Undso
pidgin-rageset
Commits
ec0e8f50
Commit
ec0e8f50
authored
Jun 30, 2014
by
Fjen Undso
Browse files
show iconsize in theme name
parent
45703722
Changes
2
Hide whitespace changes
Inline
Side-by-side
create.sh
View file @
ec0e8f50
...
@@ -9,25 +9,25 @@
...
@@ -9,25 +9,25 @@
# terms of the Do What The Fuck You Want To Public License, Version 2,
# terms of the Do What The Fuck You Want To Public License, Version 2,
# as published by Sam Hocevar. See the COPYING file for more details.
# as published by Sam Hocevar. See the COPYING file for more details.
cd
images/
for
dir
in
ready/
*
;
do
for
dir
in
../ready/
*
;
do
size
=
${
dir
##*/
}
size
=
${
dir
##*/
}
echo
"Directory
$size
found. Starting to work on it..."
echo
"Directory
$size
found. Starting to work on it..."
rm
-r
$dir
/
*
rm
-r
$dir
/
*
# resize
# resize
for
img
in
*
.png
;
do
for
img
in
images/
*
.png
;
do
convert
-trim
-strip
-resize
x
$size
$img
$dir
/
$img
convert
-trim
-strip
-resize
x
$size
$img
$dir
/
$
{
img
#images/
}
done
done
# make things small
# make things small
oldsize
=
$(
du
-s
$dir
|
cut
-f
1
)
oldsize
=
$(
du
-s
$dir
|
cut
-f
1
)
pngquant
--ext
.png
-f
$dir
/
*
.png
pngquant
--ext
.png
-f
$dir
/
*
.png
advpng
-z
-4
$dir
/
*
.png
>
/dev/null
advpng
-z
-4
$dir
/
*
.png
>
/dev/null
optipng
-o
7
$dir
/
*
.png
>
/dev/null
optipng
-o
7
$dir
/
*
.png
2
> /dev/null
newsize
=
$(
du
-s
$dir
|
cut
-f
1
)
newsize
=
$(
du
-s
$dir
|
cut
-f
1
)
echo
"Saved
$((
$oldsize
-
$newsize
))
kB by optimizing."
echo
"Saved
$((
$oldsize
-
$newsize
))
kB by optimizing."
cp
../theme
$dir
/
echo
"Name=f7u12 set
$size
"
>
$dir
/theme
cat
theme
>>
$dir
/theme
echo
"Directory
$size
ready!"
echo
"Directory
$size
ready!"
done
done
theme
View file @
ec0e8f50
Name=f7u12 set
Description=Pidgin Rage Smilies
Description=Pidgin Rage Smilies
Icon=f7u12.png
Icon=f7u12.png
Author=fjen and ci3nt
Author=fjen and ci3nt
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment