1
0
Fork 0
Browse Source

Fájlok feltöltése a következőre: 'tools'

master
Varga Pál 3 years ago
parent
commit
4914ae213e
  1. 16
      tools/post-build.sh

16
tools/post-build.sh

@ -0,0 +1,16 @@
#!/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
Loading…
Cancel
Save