mirror of
https://gitee.com/an-tao/drogon.git
synced 2024-12-02 11:47:56 +08:00
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
|