diff options
author | Karl Berry <karl@freefriends.org> | 2006-12-08 00:25:19 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2006-12-08 00:25:19 +0000 |
commit | 7ff51640e2fd3e968488d312879dee70458f2926 (patch) | |
tree | 6b9ede61598bd09a713892640d2d41da6913e509 /Master/texmf-dist/source/eplain/base/add-date | |
parent | 8291b74ec6f858e3536a5919b74386a7df1dcc24 (diff) |
eplain 3.1 (5dec06)
git-svn-id: svn://tug.org/texlive/trunk@2630 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/source/eplain/base/add-date')
-rw-r--r-- | Master/texmf-dist/source/eplain/base/add-date | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/Master/texmf-dist/source/eplain/base/add-date b/Master/texmf-dist/source/eplain/base/add-date deleted file mode 100644 index 8465939b5b8..00000000000 --- a/Master/texmf-dist/source/eplain/base/add-date +++ /dev/null @@ -1,28 +0,0 @@ -#!/bin/sh -# This file is public domain. - -# Change placeholders to variations on the current date. Assumes -# various % constructs are recognized. - -if test $# -lt 1 -then - echo "Usage: $0 [<file> <file> ...]" - exit 1 -fi - -temp=${TMPDIR-/tmp}/adddate$$ - -for f in "$@"; do - sed -e s/REPLACE-WITH-MONTH-YEAR/"`date +'%B %Y'`"/ \ - -e s/REPLACE-WITH-DAY-MONTH-YEAR/"`date +'%e %B %Y'`"/ \ - -e s/REPLACE-WITH-DATE/"`date`"/ \ - <$f >$temp - if cmp -s $f $temp; then - echo "$f: No REPLACE-WITH-<date>." - exit 1 - fi - rm -f $f - mv $temp $f -done - -rm -f $temp |