From 4bc06c7fcb8c939f50d0c423a337dfbc48d986da Mon Sep 17 00:00:00 2001 From: mutoo Date: Tue, 19 Feb 2013 12:20:02 +0800 Subject: [PATCH] changed fileformat of list.sh to unix list.sh doesn't work in linux/mac due to its fileformat --- samples/Cpp/HelloCpp/proj.android/jni/list.sh | 46 +++++++++---------- .../Cpp/SimpleGame/proj.android/jni/list.sh | 46 +++++++++---------- 2 files changed, 46 insertions(+), 46 deletions(-) diff --git a/samples/Cpp/HelloCpp/proj.android/jni/list.sh b/samples/Cpp/HelloCpp/proj.android/jni/list.sh index b95448ebbb..b29f678cb8 100644 --- a/samples/Cpp/HelloCpp/proj.android/jni/list.sh +++ b/samples/Cpp/HelloCpp/proj.android/jni/list.sh @@ -1,23 +1,23 @@ -#!/bin/bash - -append_str=' \' - -list_alldir() -{ - for file in $1/* - do - if [ -f $file ]; then - echo $file$append_str | grep .cpp - fi - - if [ -d $file ]; then - list_alldir $file - fi - done -} - -if [ $# -gt 0 ]; then - list_alldir "$1" -else - list_alldir "." -fi \ No newline at end of file +#!/bin/bash + +append_str=' \' + +list_alldir() +{ + for file in $1/* + do + if [ -f $file ]; then + echo $file$append_str | grep .cpp + fi + + if [ -d $file ]; then + list_alldir $file + fi + done +} + +if [ $# -gt 0 ]; then + list_alldir "$1" +else + list_alldir "." +fi diff --git a/samples/Cpp/SimpleGame/proj.android/jni/list.sh b/samples/Cpp/SimpleGame/proj.android/jni/list.sh index b95448ebbb..b29f678cb8 100644 --- a/samples/Cpp/SimpleGame/proj.android/jni/list.sh +++ b/samples/Cpp/SimpleGame/proj.android/jni/list.sh @@ -1,23 +1,23 @@ -#!/bin/bash - -append_str=' \' - -list_alldir() -{ - for file in $1/* - do - if [ -f $file ]; then - echo $file$append_str | grep .cpp - fi - - if [ -d $file ]; then - list_alldir $file - fi - done -} - -if [ $# -gt 0 ]; then - list_alldir "$1" -else - list_alldir "." -fi \ No newline at end of file +#!/bin/bash + +append_str=' \' + +list_alldir() +{ + for file in $1/* + do + if [ -f $file ]; then + echo $file$append_str | grep .cpp + fi + + if [ -d $file ]; then + list_alldir $file + fi + done +} + +if [ $# -gt 0 ]; then + list_alldir "$1" +else + list_alldir "." +fi