File tree Expand file tree Collapse file tree 14 files changed +414
-73
lines changed
Expand file tree Collapse file tree 14 files changed +414
-73
lines changed Original file line number Diff line number Diff line change @@ -66,7 +66,8 @@ while true; do
6666 echo " 4) Deepin"
6767 echo " 5) Fedora"
6868 echo " 6) openSUSE"
69- echo " 7) $( tr CHOICE_RETURN) "
69+ echo " 7) Gentoo"
70+ echo " 8) $( tr CHOICE_RETURN) "
7071 echo -n $( tr REQUIRE_CHOICE)
7172
7273 read CHOICE
@@ -114,6 +115,13 @@ while true; do
114115 fi
115116 ;;
116117 7)
118+ ${DIR} /scripts/gentoo.sh
119+ STATUS=${?}
120+ if [ ${STATUS} -eq 9 ]; then
121+ BACK_TO_MENU=1
122+ fi
123+ ;;
124+ 8)
117125 break
118126 ;;
119127 * )
Load Diff This file was deleted.
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1+ #! /bin/sh
2+
3+ tr () {
4+ case ${1} in
5+ " CHANGE_INSTALL_DIR_OR_NOT" )
6+ echo " Select install location"
7+ ;;
8+ " CONFIRM_INSTALL_DIR_OR_NOT" )
9+ echo " Install to this directory?"
10+ ;;
11+ " WARN_DIR_NOT_EMPTY" )
12+ echo " The directory is not empty. Force install to this directory? (May destroy original files!)"
13+ ;;
14+ " NOTICE_INSTALL_DIR" )
15+ echo " ${DIST_FULLNAME} will be installed in ${INSTALL_DIR} "
16+ ;;
17+ " INSTALL_COMPLETE" )
18+ echo " ${DIST_FULLNAME} installation complete"
19+ ;;
20+ " INSTALL_FAILED_FETCH" )
21+ echo " Installation failed. fetch has returned ${STATUS} "
22+ ;;
23+ " INSTALL_FAILED_TAR" )
24+ echo " Installation failed. tar has returned ${STATUS} "
25+ ;;
26+ " SETTING_UP" )
27+ echo " Setting ${DIST_FULLNAME} "
28+ ;;
29+ * )
30+ echo ${1}
31+ ;;
32+ esac
33+ }
Original file line number Diff line number Diff line change 1+ #! /bin/sh
2+
3+ tr () {
4+ case ${1} in
5+ " CHANGE_INSTALL_DIR_OR_NOT" )
6+ echo " 选择安装位置"
7+ ;;
8+ " CONFIRM_INSTALL_DIR_OR_NOT" )
9+ echo " 是否确认安装到此位置?"
10+ ;;
11+ " WARN_DIR_NOT_EMPTY" )
12+ echo " 此路径非空,是否强制安装到此?(可能破坏原有文件!)"
13+ ;;
14+ " NOTICE_INSTALL_DIR" )
15+ echo " ${DIST_FULLNAME} 将被安装至 ${INSTALL_DIR} "
16+ ;;
17+ " INSTALL_COMPLETE" )
18+ echo " ${DIST_FULLNAME} 安装完成"
19+ ;;
20+ " INSTALL_FAILED_FETCH" )
21+ echo " 安装失败。fetch返回了${STATUS} "
22+ ;;
23+ " INSTALL_FAILED_TAR" )
24+ echo " 安装失败。tar返回了${STATUS} "
25+ ;;
26+ " SETTING_UP" )
27+ echo " 正在配置 ${DIST_FULLNAME} "
28+ ;;
29+ * )
30+ echo ${1}
31+ ;;
32+ esac
33+ }
Original file line number Diff line number Diff line change 1+ #! /bin/sh
2+
3+ tr () {
4+ case ${1} in
5+ " CHOOSE_GENTOO_TYPE" )
6+ echo " Choose Gentoo type: "
7+ ;;
8+ " RETURN" )
9+ echo " Return to previous menu"
10+ ;;
11+ " REQUIRE_CHOICE" )
12+ echo " Enter your choice: "
13+ ;;
14+ * )
15+ echo ${1}
16+ ;;
17+ esac
18+ }
Original file line number Diff line number Diff line change 1+ #! /bin/sh
2+
3+ tr () {
4+ case ${1} in
5+ " CHOOSE_GENTOO_TYPE" )
6+ echo " 请选择Gentoo类型:"
7+ ;;
8+ " RETURN" )
9+ echo " 返回上一级"
10+ ;;
11+ " REQUIRE_CHOICE" )
12+ echo " 输入选项:"
13+ ;;
14+ * )
15+ echo ${1}
16+ ;;
17+ esac
18+ }
Original file line number Diff line number Diff line change 88 " SOURCE_NOT_ADDED_OFFICIAL_AVALIABLE" )
99 echo " ustc sources not set, but official sources are avaliable."
1010 ;;
11- " SOURCE_NOT_ADDED_MAIN_ONLY" )
12- echo " ustc sources not set. Only jammy main avaliable."
13- ;;
1411 " ADD_SOURCE" )
1512 echo " Setting ustc sources"
1613 ;;
Original file line number Diff line number Diff line change 88 " SOURCE_NOT_ADDED_OFFICIAL_AVALIABLE" )
99 echo " ustc源未配置,但官方源可用。"
1010 ;;
11- " SOURCE_NOT_ADDED_MAIN_ONLY" )
12- echo " ustc源未配置,仅jammy main可用。"
13- ;;
1411 " ADD_SOURCE" )
1512 echo " 正在配置ustc源"
1613 ;;
Original file line number Diff line number Diff line change 1+ #! /bin/sh
2+
3+ tr () {
4+ case ${1} in
5+ " ADD_FEATURES" )
6+ echo " Adding make features to Gentoo"
7+ ;;
8+ " COPY_REPO_CONFIG" )
9+ echo " Copying repo config file"
10+ ;;
11+ " ADD_SOURCE_OR_NOT" )
12+ echo " Use ALL ustc sources?"
13+ ;;
14+ " SOURCE_NOT_ADDED_OFFICIAL_AVALIABLE" )
15+ echo " ustc sources not set, but official sources are avaliable."
16+ ;;
17+ " ADD_SOURCE" )
18+ echo " Setting ustc sources"
19+ ;;
20+ " INSTALL_VIM_OR_NOT" )
21+ echo " This package doesn't contain any editor. Install vim as your aditor?"
22+ ;;
23+ " INSTALL_VIM" )
24+ echo " Installing vim"
25+ ;;
26+ " NOTICE_NO_EDITOR" )
27+ echo " Notice: you may install an editor later or use editors in FreeBSD."
28+ ;;
29+ " SETUP_COMPLETE" )
30+ echo " All done."
31+ ;;
32+ " NOTICE_COMMAMD" )
33+ echo " Now you can switch to ${DIST_FULLNAME} using \" chroot ${INSTALL_DIR} /bin/bash\" "
34+ ;;
35+ * )
36+ echo ${1}
37+ ;;
38+ esac
39+ }
You can’t perform that action at this time.
0 commit comments