]> git.draconx.ca Git - homepage.git/blobdiff - Rules
Add copyright license information.
[homepage.git] / Rules
diff --git a/Rules b/Rules
index 477d46dabc28c5c605813a4d700b70b14399a1a7..06f3a110b041d108383e37d6c4621b356da69761 100644 (file)
--- a/Rules
+++ b/Rules
@@ -21,14 +21,12 @@ preprocess do
         stdin.close
         val = stdout.gets
         stdout.close
         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|
     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
         end
     end
 end
@@ -41,6 +39,23 @@ compile '/**/*.md' do
     write to_xhtml
 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
 passthrough '/**/*'
 layout '/**/*.xsl', :xsl
 layout '/**/*', :erb