Skip to content

Commit 44fbff6

Browse files
committed
Add Gentoo
1 parent 54d7f7a commit 44fbff6

File tree

14 files changed

+414
-73
lines changed

14 files changed

+414
-73
lines changed

compatmgr.sh

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff 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
*)

i18n/scripts/basic_sh/en_US.sh

Lines changed: 0 additions & 33 deletions
This file was deleted.

i18n/scripts/basic_sh/zh_CN.sh

Lines changed: 0 additions & 33 deletions
This file was deleted.
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
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+
}
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
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+
}

i18n/scripts/gentoo_sh/en_US.sh

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
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+
}

i18n/scripts/gentoo_sh/zh_CN.sh

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
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+
}

i18n/scripts/setup/fedora/setup_sh/en_US.sh

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,6 @@ tr () {
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
;;

i18n/scripts/setup/fedora/setup_sh/zh_CN.sh

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,6 @@ tr () {
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
;;
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
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+
}

0 commit comments

Comments
 (0)