Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
oemaker
提交
ae575430
O
oemaker
项目概览
openeuler
/
oemaker
通知
22
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
O
oemaker
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
ae575430
编写于
8月 07, 2020
作者:
O
openeuler-ci-bot
提交者:
Gitee
8月 07, 2020
浏览文件
操作
浏览文件
下载
差异文件
!3 add help param and info
Merge pull request !3 from zhuchunyi/master
上级
9b9387ff
fe66a86c
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
46 addition
and
19 deletion
+46
-19
README.md
README.md
+4
-1
init.sh
init.sh
+41
-16
oemaker.sh
oemaker.sh
+1
-2
未找到文件。
README.md
浏览文件 @
ae575430
...
...
@@ -21,7 +21,7 @@ Generally, the disk space is more than 50g.
#### Contribution
oemaker
<font
color=
#0000FF
>
_[-t Type] [-p Product] [-v Version] [-r RELEASE] [-s REPOSITORY]_
</font>
oemaker
<font
color=
#0000FF
>
_[-
h] [-
t Type] [-p Product] [-v Version] [-r RELEASE] [-s REPOSITORY]_
</font>
optional arguments:
-t Type
...
...
@@ -38,3 +38,6 @@ oemaker <font color=#0000FF >_[-t Type] [-p Product] [-v Version] [-r RELEASE] [
-s REPOSITORY
source dnf repository address link(may be listed multiple times)
-h
show the help message and exit
init.sh
浏览文件 @
ae575430
...
...
@@ -16,6 +16,21 @@
#!/bin/bash
set
-e
function
oemaker_usage
()
{
cat
<<
EOF
Usage: oemaker [-h] [-t Type] [-p Product] [-v Version] [-r RELEASE] [-s REPOSITORY]
optional arguments:
-t Type ISO Type, include standard debug and source
-p Product Product Name, such as: openEuler
-v Version version identifier
-r RELEASE release information
-s REPOSITORY source dnf repository address link(may be listed multiple times)
-h show the help message and exit
EOF
}
function
parse_cmd_line
()
{
#param init
...
...
@@ -34,16 +49,33 @@ function parse_cmd_line()
ISOTYPE
=
"standard"
# parse input params
while
getopts
":p:v:r:s:t:"
opt
while
getopts
":p:v:r:s:t:
h
"
opt
do
case
"
$opt
"
in
p
)
PRODUCT
=
"
$OPTARG
"
;;
v
)
VERSION
=
"
$OPTARG
"
;;
r
)
RELEASE
=
"
$OPTARG
"
;;
s
)
REPOS1
=
"
$OPTARG
"
;;
t
)
ISOTYPE
=
"
$OPTARG
"
;;
?
)
printf
"Usage: %s: [-f config_file] args
\n
"
"
$0
"
return
1
;;
p
)
PRODUCT
=
"
$OPTARG
"
;;
v
)
VERSION
=
"
$OPTARG
"
;;
r
)
RELEASE
=
"
$OPTARG
"
;;
s
)
REPOS1
=
"
$OPTARG
"
;;
t
)
ISOTYPE
=
"
$OPTARG
"
;;
h
)
oemaker_usage
exit
0
;;
?
)
echo
"error: please check the params."
oemaker_usage
return
1
;;
esac
done
...
...
@@ -101,14 +133,7 @@ function global_var_init()
set
-e
return
0
}
#######################################
# copy config.
# Arguments:
# None
# Returns:
# Success: 0
# Failed: 1
#######################################
function
init_config
()
{
[
-f
"
${
BUILD
}
"
/isopackage.sdf
]
&&
cp
"
${
BUILD
}
"
/isopackage.sdf
"
${
BUILD
}
"
/iso/
...
...
oemaker.sh
浏览文件 @
ae575430
...
...
@@ -37,10 +37,9 @@ function mkclean()
function
mk_euleros_main
()
{
echo
"Parsing cmd line..."
parse_cmd_line
"
$@
"
if
[
$?
-ne
0
]
;
then
echo
"parse params
error
"
echo
"parse params
failed
"
return
1
fi
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录