ack/util/int/M.trap_msg
1994-06-24 11:31:16 +00:00

22 lines
287 B
Bash
Executable file

#!/bin/sh
# $Id$
(
echo '/* This file is generated from '$1'; do not edit */'
cat $1 |
sed '
s/..//
s/.*/ "&",/
'
) >\#trap_msg
if # the new one unchanged
cmp -s \#trap_msg trap_msg
then # throw it away
rm \#trap_msg
else # overwrite old version
mv \#trap_msg trap_msg
fi