Add files to hook up yaffs direct to u-boot
[yaffs2.git] / direct / u-boot / fs / yaffs2 / copy-code.sh
diff --git a/direct/u-boot/fs/yaffs2/copy-code.sh b/direct/u-boot/fs/yaffs2/copy-code.sh
new file mode 100755 (executable)
index 0000000..34520f6
--- /dev/null
@@ -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
+