-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathprogress-on-windows-.html
161 lines (115 loc) · 5.05 KB
/
progress-on-windows-.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
<!DOCTYPE html>
<html lang="english">
<head>
<meta charset="utf-8">
<title>Just a blog - Progress on Windows</title>
<meta name="description" content="">
<meta name="author" content="Torfinn Ingolfsen">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<!-- Le HTML5 shim, for IE6-8 support of HTML elements -->
<!--[if lt IE 9]>
<script src="https://tingox.github.io/theme/html5.js"></script>
<![endif]-->
<!-- Le styles -->
<link href="https://tingox.github.io/theme/bootstrap.min.css" rel="stylesheet">
<link href="https://tingox.github.io/theme/bootstrap.min.responsive.css" rel="stylesheet">
<link href="https://tingox.github.io/theme/local.css" rel="stylesheet">
<link href="https://tingox.github.io/theme/pygments.css" rel="stylesheet">
<!-- So Firefox can bookmark->"abo this site" -->
<link href="https://tingox.github.io/feeds/all.atom.xml" rel="alternate" title="Just a blog" type="application/atom+xml">
</head>
<body>
<div class="navbar">
<div class="navbar-inner">
<div class="container">
<a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</a>
<a class="brand" href="https://tingox.github.io">Just a blog</a>
<div class="nav-collapse">
<ul class="nav">
</ul>
</div>
</div>
</div>
</div>
<div class="container">
<div class="content">
<div class="row">
<div class="span9">
<div class='article'>
<div class="content-title">
<h1>Progress on Windows</h1>
Tue 13 February 2018
by <a class="url fn" href="https://tingox.github.io/author/torfinn-ingolfsen.html">Torfinn Ingolfsen</a>
</div>
<div><p>Ok, I have figured out how to get date the Makefile in Windows, using powershell and a powershell script.
The script is simple</p>
<div class="highlight"><pre><span></span><span class="err">get-date -UFormat '%Y-%m-%d %H:%M:%S'</span>
</pre></div>
<p>yes, that is all. From the Makefile, I run it as </p>
<div class="highlight"><pre><span></span><span class="err">powershell -File .\ScriptDate.ps1</span>
</pre></div>
<p>the Makefile fragment looks like this</p>
<div class="highlight"><pre><span></span><span class="err">DATE := $(shell powershell -File .\ScriptDate.ps1)</span>
</pre></div>
<p>very satisfying to finally figure this out.</p>
<p>The problem with extra dashes ('-') still exists, the only improvement I have managed is to remove the dash in front.</p></div>
<hr>
</div>
</div>
<div class="span3">
<div class="well" style="padding: 8px 0; background-color: #FBFBFB;">
<ul class="nav nav-list">
<li class="nav-header">
Site
</li>
<li><a href="https://tingox.github.io/archives.html">Archives</a>
<li><a href="https://tingox.github.io/tags.html">Tags</a>
<li><a href="https://tingox.github.io/feeds/all.atom.xml" rel="alternate">Atom feed</a></li>
</ul>
</div>
<div class="well" style="padding: 8px 0; background-color: #FBFBFB;">
<ul class="nav nav-list">
<li class="nav-header">
Categories
</li>
<li><a href="https://tingox.github.io/category/blog.html">blog</a></li>
<li><a href="https://tingox.github.io/category/misc.html">misc</a></li>
</ul>
</div>
<div class="well" style="padding: 8px 0; background-color: #FBFBFB;">
<ul class="nav nav-list">
<li class="nav-header">
Links
</li>
<li><a href="http://getpelican.com/">Pelican</a></li>
<li><a href="http://python.org/">Python.org</a></li>
<li><a href="http://jinja.pocoo.org/">Jinja2</a></li>
<li><a href="http://heim.bitraf.no/tingo/">Torfinn @heim</a></li>
</ul>
</div>
<div class="social">
<div class="well" style="padding: 8px 0; background-color: #FBFBFB;">
<ul class="nav nav-list">
<li class="nav-header">
Social
</li>
<li><a href="https://www.linkedin.com/in/torfinn-ingolfsen-9816a93/">LinkedIn profile</a></li>
<li><a href="#">Another social link</a></li>
</ul>
</div>
</div>
</div>
</div> </div>
<footer>
<br />
<p><a href="https://tingox.github.io">Just a blog</a> © Torfinn Ingolfsen 2020</p>
</footer>
</div> <!-- /container -->
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>
<script src="https://tingox.github.io/theme/bootstrap-collapse.js"></script>
</body>
</html>