Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
core
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
LibreOffice
core
Commits
89a4c0e1
Kaydet (Commit)
89a4c0e1
authored
Mar 02, 2015
tarafından
Michael Stahl
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
remove unused frobnicate-icons.php before the PHP plague spreads
Change-Id: Idb77df08d25887a96cc1cf3b07fa0fd6e0239464
üst
1586b91e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
41 deletions
+0
-41
frobnicate-icons.php
icon-themes/industrial/cmd/frobnicate-icons.php
+0
-41
No files found.
icon-themes/industrial/cmd/frobnicate-icons.php
deleted
100755 → 0
Dosyayı görüntüle @
1586b91e
#!/usr/bin/php4
<?php
#$renderer = "rsvg";
$renderer
=
"inkscape"
;
/*
If you're a hacker, please look away
*/
$render_sizes
=
array
(
"16"
=>
"sc_"
,
"24"
=>
"lc_"
);
$render_dpis
=
array
(
"16"
=>
"60"
,
"24"
=>
"90"
);
$svgs
=
`find . -name "*.svg"`
;
$svgs
=
explode
(
"
\n
"
,
$svgs
);
echo
"* rendering PNGs
\n\n
"
;
foreach
(
$svgs
as
$line
)
{
if
(
$line
)
{
$file
=
eregi_replace
(
"^./lc_(.*)\.svg"
,
"
\\
1"
,
$line
);
//echo "\n" . $file . "\n\n";
foreach
(
$render_sizes
as
$size
=>
$prefix
)
{
$SVG
=
"lc_
$file
.svg"
;
$PNG
=
"
$prefix$file
.png"
;
//delete older version
if
(
file_exists
(
$PNG
))
unlink
(
$PNG
);
echo
"
$SVG
=>
$PNG
\n
"
;
if
(
$renderer
==
"inkscape"
)
{
$exec
=
"inkscape -z -e
$PNG
-f
$SVG
"
;
$exec
.=
"-w
$size
-h
$size
"
;
exec
(
$exec
);
}
else
{
exec
(
"rsvg -w
$size
-h
$size
$SVG
$PNG
\n
"
);
}
}
}
}
exit
;
?>
Write
Preview
Markdown
is supported
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