projects
/
yaffs2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
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
+++ 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
+