Merge remote branch 'origin/master'
[yaffs2.git] / direct / u-boot / fs / yaffs2 / copy-code.sh
1 #! /bin/sh
2 if [ "$1" = "copy" ] ; then
3         cp ../../../*.[ch] .
4 elif [ "$1" = "clean" ] ; then
5         for i in `ls ../../../*.[ch]` ; do
6                 f=`echo $i | sed -e "sx../xxg"`
7                 rm $f
8         done
9 else
10         echo "please specify copy or clean"
11         exit 1
12 fi
13