stdin.close
val = stdout.gets
stdout.close
- if result.value.success? then commit = val.chomp end
+ commit = val.chomp if result.value.success?
end
if commit then
@items.each do |item|
- if item_source(item) then
- item[:gitrev] = commit
- end
+ item[:gitrev] = commit if item_source(item)
end
end
end
write to_xhtml
end
+compile '/license/cc*.sgml' do
+ filter :sgml2xml
+ layout '/creativecommons.xsl'
+ layout '/default.xml'
+ layout '/default.xsl'
+ filter :relativize_paths, type: :xml
+ write to_xhtml
+end
+
+compile '/license/cc*.xhtml' do
+ layout '/creativecommons.xsl'
+ layout '/default.xml'
+ layout '/default.xsl'
+ filter :relativize_paths, type: :xml
+ write to_xhtml
+end
+
passthrough '/**/*'
layout '/**/*.xsl', :xsl
layout '/**/*', :erb