12 lines
129 B
Bash
12 lines
129 B
Bash
|
#!/bin/sh
|
||
|
echo "update config.h"
|
||
|
if [ ! -f $2 ];then
|
||
|
mv -f $1 $2
|
||
|
else
|
||
|
diff $1 $2
|
||
|
if [ $? -eq 1 ];then
|
||
|
mv -f $1 $2
|
||
|
fi
|
||
|
fi
|
||
|
rm -f $1
|