1 Star 0 Fork 12

hehedaddd/libraw

forked from openKylin/libraw 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
clist2html.pl 1.11 KB
一键复制 编辑 原始数据 按行查看 历史
LLL 提交于 2022-06-27 14:42 . Import Upstream version 0.19.5
#!/usr/bin/perl
use Data::Dumper;
@makes=( "AgfaPhoto", "Canon", "Casio", "Digital Bolex", "Epson", "Fujifilm", "Imacon",
"Mamiya", "Minolta", "Motorola", "Kodak", "Konica", "Leica", "Hasselblad",
"Nikon", "Nokia", "Olympus", "Pentax", "Phase One", "Ricoh",
"Samsung", "Sigma", "Sinar", "Sony" );
MAINLOOP:
while(<>)
{
chomp;
$cname = $_;
$cname=~s/^\s+//g;
$cname=~s/\s+$//g;
for my $camera (@makes)
{
if ($cname=~/\Q$camera\E\s+(.*)/)
{
$model = $1;
push @{$cameralist->{$camera}},$model;
next MAINLOOP;
}
}
if($cname=~/(\S+)\s+(.*)/)
{
($make,$model) = ($1,$2);
push @{$cameralist->{$make}},$model;
next MAINLOOP;
}
push @{$cameralist->{$make}},"NO MODEL";
}
my $havenx1=0;
print "<ul>\n";
for my $make (sort keys %$cameralist)
{
if( $#{$cameralist->{$make}} < 1)
{
print "<li>$make $cameralist->{$make}->[0]</li>\n";
}
else
{
print "<li>$make\n<ul>\n";
for my $model (@{$cameralist->{$make}})
{
print " <li>$model</li>\n";
}
print "</ul>\n</li>\n";
}
}
print "</ul>\n";
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/hehedaddd/libraw.git
git@gitee.com:hehedaddd/libraw.git
hehedaddd
libraw
libraw
openkylin/yangtze

搜索帮助