Browse files

Remove timestamp checking and filename printing from template build f…

…unction.
  • Loading branch information...
1 parent d77fa01 commit f90b994dea63d3b87b7a2e59c7f3a514502505f9 @flaviusb committed Dec 8, 2011
Showing with 2 additions and 3 deletions.
  1. +2 −3 genx.ik
View
5 genx.ik
@@ -34,13 +34,12 @@ GenX = Origin mimic do(
case(task key,
Pair, context = task key key. fromFile = task key value,
Text, context = "". fromFile = task key)
- #[Generating "#{fromFile}" from "#{task value}"] println
+ #[Generating "#{fromFile}" from a template"] println
time = ""
mktime = fn(x, time = x)
timeMod = ""
unless(context[:modified],
- Shell out(printer: mktime, "stat", "-c", "%y", task value)
- timeMod = time replace(#/([0-9]{4}-[0-9][0-9]-[0-9][0-9]) (.*)\..*([-+Z].*)/, "$1T$2$3") replace(#/([0-9]{2})([0-9]{2})$/, "$1:$2"),
+ timeMod = "",
timeMod = context[:modified])
built << { file: fromFile, modified: timeMod }
case(fromFile,

0 comments on commit f90b994

Please sign in to comment.