usbloadergx/buildtype.sh

15 lines
234 B
Bash
Raw Normal View History

2009-11-18 10:28:44 +01:00
#!/bin/bash
if [ ! -z "$1" ];
then
if [ ! -s source/buildtype.h ];
then
echo "#define $1" > source/buildtype.h
fi
else
if [[ ! -f source/buildtype.h || -s source/buildtype.h ]];
then
cp /dev/null source/buildtype.h
fi
fi