Mercurial > hg > config
comparison bin/example/self-writing.sh @ 322:19b5bf66ba4e
example
author | Jeff Hammel <jhammel@mozilla.com> |
---|---|
date | Sat, 08 Jun 2013 08:28:13 -0700 |
parents | c64406cdcee1 |
children | b2924a3ae4f3 |
comparison
equal
deleted
inserted
replaced
321:c64406cdcee1 | 322:19b5bf66ba4e |
---|---|
10 nonce="This script regenerated at " | 10 nonce="This script regenerated at " |
11 | 11 |
12 # avoiding -i for safety | 12 # avoiding -i for safety |
13 sed 's/\(echo \"'"${nonce}"'\).*\"/\1'"${datestamp}"'\"/' ${path} > ${tmp} | 13 sed 's/\(echo \"'"${nonce}"'\).*\"/\1'"${datestamp}"'\"/' ${path} > ${tmp} |
14 | 14 |
15 echo "This script regenerated at " | 15 # echo last and current generation times for example |
16 echo "This script last generated at (None)" | |
17 echo "Now: ${datestamp}" |