blob: 7a9a3363f73363a9ea3e7b41aa4f2178477f3682 (
plain)
1
2
3
4
5
6
7
8
9
10
|
#!/bin/bash
STARTDIR=.
if [ $# -ge 1 ]; then
STARTDIR="$1"
fi
find "${STARTDIR}" -name '*.xml' -and -not -empty -print0 \
| xargs -0 -I "{}" \
sh -c 'mv "{}" "{}.orig"; xsltproc identity_modulo_mtime.xsl "{}.orig" > "{}"; rm -- "{}.orig"'
|