#!/bin/bash
function ergodic(){
echo $1
for file in ` ls $1`
do
if [ -d $1"/"$file ] #如果 file存在且是一个目录则为真
then
ergodic $1"/"$file
else
local_path=$1"/"$file #得到文件的完整的目录
local_name=$file #得到文件的名字
armv7=$1"/../armv7/"$file
armv7s=$1"../armv7s/"$file
combile=$1"../combile/"$file
echo $local_path
echo $local_name
echo $armv7
echo $armv7s
echo $combile
pod_command='lipo -create '$local_path' '$armv7' '$armv7s' -output '$combile
`$pod_command`
fi
done
}
INIT_PATH="/Users/qin/Documents/gmccgz/GMCCGZ/ios-sx-stack/sxbango/branches/1.0/sxbango/thirdparties/iphone/lib/arm64/"
ergodic $INIT_PATH