tmux/tools/fix-ids.sh

9 lines
229 B
Bash
Raw Normal View History

2009-06-25 16:34:50 +00:00
# $Id: fix-ids.sh,v 1.2 2009-06-25 16:34:50 nicm Exp $
2009-06-25 16:21:32 +00:00
for i in *.[ch] tmux.1; do
(head -1 $i|grep '$OpenBSD' >/dev/null) || continue
mv $i $i~ || exit
2009-06-25 16:34:50 +00:00
sed 's/\$OpenBSD.* \$/$\Id $/' $i~ >$i || exit
2009-06-25 16:21:32 +00:00
echo $i
done