X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs2.git;a=blobdiff_plain;f=direct%2Fu-boot%2Ffs%2Fyaffs2%2Fcopy-code.sh;fp=direct%2Fu-boot%2Ffs%2Fyaffs2%2Fcopy-code.sh;h=34520f65b432f8a133f80c91b7341462e526a8bf;hp=0000000000000000000000000000000000000000;hb=80f85303d264f804ea288e1995280345804ec01c;hpb=95ff7ef3e08cf76d07b08cce3470d4840b27a8ea diff --git a/direct/u-boot/fs/yaffs2/copy-code.sh b/direct/u-boot/fs/yaffs2/copy-code.sh new file mode 100755 index 0000000..34520f6 --- /dev/null +++ b/direct/u-boot/fs/yaffs2/copy-code.sh @@ -0,0 +1,13 @@ +#! /bin/sh +if [ "$1" = "copy" ] ; then + cp ../../../*.[ch] . +elif [ "$1" = "clean" ] ; then + for i in `ls ../../../*.[ch]` ; do + f=`echo $i | sed -e "sx../xxg"` + rm $f + done +else + echo "please specify copy or clean" + exit 1 +fi +