当前位置: 技术问答>linux和unix
昨天公司给了几个文件让我看~ 一窍不通~不知道什么意思~~~ 一个 clean.sh 的代码
来源: 互联网 发布时间:2015-12-07
本文导语: #!/bin/sh export SCREEN=320x240 #export SCREEN=480x272 export ARCH=frv export RELEASE=svn #export RELEASE=release-1.1 #export BRANCHES=rc4-branch export module=$1 if [ $1 = all ] ; then make distclean else make clean fi | 很基本的sh...
#!/bin/sh
export SCREEN=320x240
#export SCREEN=480x272
export ARCH=frv
export RELEASE=svn
#export RELEASE=release-1.1
#export BRANCHES=rc4-branch
export module=$1
if [ $1 = all ] ; then
make distclean
else
make clean
fi
export SCREEN=320x240
#export SCREEN=480x272
export ARCH=frv
export RELEASE=svn
#export RELEASE=release-1.1
#export BRANCHES=rc4-branch
export module=$1
if [ $1 = all ] ; then
make distclean
else
make clean
fi
|
很基本的sh脚本啊
#!/bin/sh
指明用/bin/sh程序来解析执行本脚本
export SCREEN=320x240
传递变量SCREEN之后的所有sh环境中供其他程序调用,其值是320X240
#export SCREEN=480x272
注释
export ARCH=frv
export RELEASE=svn
#export RELEASE=release-1.1
#export BRANCHES=rc4-branch
export module=$1
if [ $1 = all ] ; then
如果参数=all 那么 ($1是传入本脚本程序的第一个参数)
make distclean
用这么编译命令
else
make clean
否则用这个便宜命令
fi
if语句结束标志
#!/bin/sh
指明用/bin/sh程序来解析执行本脚本
export SCREEN=320x240
传递变量SCREEN之后的所有sh环境中供其他程序调用,其值是320X240
#export SCREEN=480x272
注释
export ARCH=frv
export RELEASE=svn
#export RELEASE=release-1.1
#export BRANCHES=rc4-branch
export module=$1
if [ $1 = all ] ; then
如果参数=all 那么 ($1是传入本脚本程序的第一个参数)
make distclean
用这么编译命令
else
make clean
否则用这个便宜命令
fi
if语句结束标志
|
thinking in baidu or google