Mercurial > repo
changeset 12506:4e21820a85a7 draft
<wib_jonas> `` set -e; f=/hackenv/bin/datei; hg cat -r 11945 "$f" >"$f"; chmod a+x "$f"
author | HackEso <hackeso@esolangs.org> |
---|---|
date | Wed, 03 Jul 2024 17:59:16 +0100 |
parents | 64f8b628d17c |
children | 2c465d82bec1 |
files | bin/datei |
diffstat | 1 files changed, 2 insertions(+), 14 deletions(-) [+] |
line wrap: on
line diff
--- a/bin/datei Wed Jul 03 17:59:06 2024 +0100 +++ b/bin/datei Wed Jul 03 17:59:16 2024 +0100 @@ -1,14 +1,2 @@ -hg cat [OPTION]... FILE... - -output the current or given revision of files - -options ([+] can be repeated): - - -o --output FORMAT print output to file with formatted name - -r --rev REV print the given revision - --decode apply any matching decode filter - -I --include PATTERN [+] include names matching the given patterns - -X --exclude PATTERN [+] exclude names matching the given patterns - -T --template TEMPLATE display with template - -(use 'hg cat -h' to show more help) +#!/bin/sh +exec date ${1:+-d "$1"} "+%Y-%m-%d %H:%M:%S.%3N %z %Z %B %-e %A %G-W%V-%u"