首页 > 代码库 > 编译当天修改的所有C源码

编译当天修改的所有C源码

#!/bin/sh
#****************************************************************#
# ScriptName: gccmodify.sh
# Function: compile *.c which mtime is 0 (in 24 hours) in current dir
#***************************************************************#
for file in `find *.c -mtime 0 `
do
    gcc $file -lggw -o ${file%.*}
done