cocos2dx build_native.sh拷贝资源的语句详解
来源:互联网 发布:跟兄弟连学php 视频 编辑:程序博客网 时间:2024/04/29 17:31
游戏的资源目录用的是assets
# make sure assets is existif [ -d "$APP_ANDROID_ROOT"/assets ]; then rm -rf "$APP_ANDROID_ROOT"/assetsfimkdir "$APP_ANDROID_ROOT"/assets
-d代表判断文件夹是否存在, -f代表判断文件是否存在
上面的意思是如果存在assets文件夹, 就删掉重建, 用于完全更新资源, 避免有漏删漏更的问题
# copy resourcesfor file in "$APP_ROOT"/Resources/*doif [ -d "$file" ]; then cp -rf "$file" "$APP_ANDROID_ROOT"/assetsfiif [ -f "$file" ]; then cp "$file" "$APP_ANDROID_ROOT"/assetsfidone
上面的语句对外部的资源进行全拷贝, 有文件夹就强制拷贝文件夹, 有文件就拷贝文件
http://www.cnblogs.com/sunyubo/archive/2011/10/17/2282047.html
这里列觉了很多需要的参数
-a file exists.
-b file exists and is a block special file.
-c file exists and is a character special file.
-d file exists and is a directory.
-e file exists (just the same as -a).
-f file exists and is a regular file.
-g file exists and has its setgid(2) bit set.
-G file exists and has the same group ID as this process.
-k file exists and has its sticky bit set.
-L file exists and is a symbolic link.
-n string length is not zero.
-o Named option is set on.
-O file exists and is owned by the user ID of this process.
-p file exists and is a first in, first out (FIFO) special file or
named pipe.
-r file exists and is readable by the current process.
-s file exists and has a size greater than zero.
-S file exists and is a socket.
-t file descriptor number fildes is open and associated with a
terminal device.
-u file exists and has its setuid(2) bit set.
-w file exists and is writable by the current process.
-x file exists and is executable by the current process.
-z string length is zero.
- cocos2dx build_native.sh拷贝资源的语句详解
- 解决方案:cygwin编译cocos2dx中build_native.sh 出现permission denied
- compiling build_native.sh
- ./build_native.sh执行错误
- cygwin 批处理 运行 build_native.sh
- build_native.sh运行出错案例
- ./build_native.sh: COCOS2DX_ROOT: command not found
- 修改cocos2d-x提供build_native.sh经验
- 修改cocos2d-x提供build_native.sh经验
- mac运行build_native.sh生成.so文件
- build_native.sh文件记录(1)
- build_native.sh文件记录(2)
- mac终端执行类似 .build_native.sh 报错-bash: ./build_native.sh: Permission denied
- 安卓编译运行build_native.sh,报permission denied
- cocos2dx将资源目录(Resources)文件拷贝到可写路径
- cocos2dx 资源加载的问题
- cocos2dx 项目拷贝遇到的一些问题
- svn_getallvers.sh 拷贝出所有的目录版本用于比较
- android canvas 操作 test
- java SSH + extj 项目过程中遇到的问题及注意点(二)
- 黑马程序员——List集合中ArrayList、linkedList、Vector的数据结构及特点
- 会下金蛋的鹅还是集市上的火鸡——2015年关于SaaS的八大市场预测
- jQuery stop()
- cocos2dx build_native.sh拷贝资源的语句详解
- 关于贝叶斯和频率派的区别
- JS正则表达式大全
- 【译】UNIVERSAL IMAGE LOADER.PART 2---ImageLoaderConfiguration详解
- Mongodb后台daemon方式启动
- Android按键拦截处理最佳实践范例(以Back事件为例)
- LEETCODE: Next Permutation
- ubuntu linux GAIM QQ
- Nexy3开发板Verilog Demo