index
:
minetest.git
gpcf
lifo-fixes
release
modified minetest for gpcfs purposes
gpcf
about
summary
refs
log
tree
commit
diff
log msg
author
committer
range
path:
root
/
data
/
tool_steelaxe.png
diff options
context:
1
2
3
4
5
6
7
8
9
10
15
20
25
30
35
40
space:
include
ignore
#
# Random macros
#
# Not used ATM
MACRO
(
GETDATETIME RESULT
)
IF
(
WIN32
)
EXECUTE_PROCESS
(
COMMAND
"cmd"
/
C echo
%
date
% %
time
%
OUTPUT_VARIABLE
${RESULT}
)
string
(
REGEX REPLACE
"
\n
"
""
${RESULT}
"${${RESULT}}"
)
ELSEIF
(
UNIX
)
EXECUTE_PROCESS
(
COMMAND
"date"
"+%Y-%m-%d_%H:%M:%S"
OUTPUT_VARIABLE
${RESULT}
)
string
(
REGEX REPLACE
"
\n
"
""
${RESULT}
"${${RESULT}}"
)
ELSE
(
WIN32
)
MESSAGE
(
SEND_ERROR
"date not implemented"
)
SET
(
${RESULT}
"Unknown"
)
ENDIF
(
WIN32
)
string
(
REGEX REPLACE
" "
"_"
${RESULT}
"${${RESULT}}"
)
ENDMACRO
(
GETDATETIME
)