Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Remove timestamp checking and filename printing from template build f…

…unction.
  • Loading branch information...
commit f90b994dea63d3b87b7a2e59c7f3a514502505f9 1 parent d77fa01
Justin Marsh (:flaviusb) authored

Showing 1 changed file with 2 additions and 3 deletions. Show diff stats Hide diff stats

  1. +2 3 genx.ik
5 genx.ik
@@ -34,13 +34,12 @@ GenX = Origin mimic do(
34 34 case(task key,
35 35 Pair, context = task key key. fromFile = task key value,
36 36 Text, context = "". fromFile = task key)
37   - #[Generating "#{fromFile}" from "#{task value}"] println
  37 + #[Generating "#{fromFile}" from a template"] println
38 38 time = ""
39 39 mktime = fn(x, time = x)
40 40 timeMod = ""
41 41 unless(context[:modified],
42   - Shell out(printer: mktime, "stat", "-c", "%y", task value)
43   - 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"),
  42 + timeMod = "",
44 43 timeMod = context[:modified])
45 44 built << { file: fromFile, modified: timeMod }
46 45 case(fromFile,

0 comments on commit f90b994

Please sign in to comment.
Something went wrong with that request. Please try again.