1
0
Fork 0
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

16 lines
220 B

#!/bin/sh
FILE=$1
if [ -z $FILE ]
then
exit 0
fi
OLD="$FILE.old"
cp -f $FILE $OLD
awk '$0 !~ /#define _BUILD/ { print $0 }
$0 ~ /#define _BUILD/ { n = $3 + 1; print $1 " " $2 " " n }' $OLD>$FILE
rm -f $OLD