diff --git a/build.sh b/build.sh new file mode 100644 index 0000000000000000000000000000000000000000..643602a3ae3aba196ca59b41acdcdc5b576b5255 --- /dev/null +++ b/build.sh @@ -0,0 +1,51 @@ +#!/bin/bash +if [[ $# -ne 2 ]]; then + echo "The format is as follows:" + echo "bash build.sh buildpath installpath" + echo ":param buildpath: 应用构建绝对路径" + echo ":param installpath: 应用安装绝对路径" + exit 1 +fi + +[[ ! "$1" =~ ^/.* || "$1" = "/" ]] && echo "请输入正确的构建路径" && exit 1 +[[ ! "$2" =~ ^/.* || "$2" = "/" ]] && echo "请输入正确的安装路径" && exit 1 + +create_dir() +{ + local path=$1 + [[ "$path" =~ .*/$ ]] && path=${path%/*} + if [[ ! -d "$path" && ! -f "$path" ]]; then mkdir -p $path; else path=$path`date "+%y%m%d%H%M%S"` && mkdir -p $path; fi + echo $path +} + +buildpath=$(create_dir $1) +installpath=$(create_dir $2) + +yum install -y m4 environment-modules systemd-devel +source /etc/profile +module purge + +set -e +dep_dir="dependency" + +bash $dep_dir/bisheng-jdk1.8.0.sh $buildpath $installpath +module use $installpath/bisheng-jdk1.8.0_322 +module load $installpath/bisheng-jdk1.8.0_322/bisheng_jdk_modulefiles + +bash figtree-1.4.4.sh $buildpath $installpath + +mkdir -p pkg/figtree-1.4.4-hpc && cp -r $installpath/* pkg/figtree-1.4.4-hpc/ +cat>"pkg/figtree-1.4.4-hpc/run.sh"< /dev/null +current_dir=\$(cd "\$(dirname "\${BASH_SOURCE[0]}")" &> /dev/null && pwd) +for d in \$(ls \$current_dir) +do + [[ ! \$d =~ "figtree" && ! -f "\$current_dir/\$d" ]] && cd \$current_dir/\$d && module use \$(pwd) && module load \$(pwd)/*modulefiles +done +EOF +cd pkg/ && tar zcvf figtree-1.4.4-hpc.tar.gz figtree-1.4.4-hpc + +rm -rf $buildpath $installpath diff --git a/dependency/bisheng-jdk1.8.0.sh b/dependency/bisheng-jdk1.8.0.sh new file mode 100644 index 0000000000000000000000000000000000000000..509256e80d8124fbc43518337cd48c2e685c546d --- /dev/null +++ b/dependency/bisheng-jdk1.8.0.sh @@ -0,0 +1,42 @@ +#!/bin/bash + +if [[ $# -ne 2 ]]; then + echo "The format is as follows:" + echo "bash bisheng-jdk1.8.0.sh buildpath installpath" + echo ":param buildpath: 应用构建绝对路径" + echo ":param installpath: 应用安装绝对路径" + exit 1 +fi + +[[ ! "$1" =~ ^/.* || ! -d "$1" || "$1" = "/" ]] && echo "请输入正确的构建路径" && exit 1 +[[ ! "$2" =~ ^/.* || ! -d "$2" || "$2" = "/" ]] && echo "请输入正确的安装路径" && exit 1 + +buildpath=$1 +installpath=$2 +[[ "$buildpath" =~ .*/$ ]] && buildpath=${buildpath%/*} +[[ "$installpath" =~ .*/$ ]] && installpath=${installpath%/*} +[[ "$buildpath" == "$installpath" ]] && echo "构建路径与安装路径需为不同路径" && exit 1 +set -e +yum install -y wget tar environment-modules + +wget -t 0 -c -P $buildpath https://mirrors.huaweicloud.com/kunpeng/archive/compiler/bisheng_jdk/bisheng-jdk-8u322-linux-aarch64.tar.gz +tar -zxvf $buildpath/bisheng-jdk-8u322-linux-aarch64.tar.gz -C $buildpath && rm -rf $buildpath/bisheng-jdk-8u322-linux-aarch64.tar.gz +mkdir -p $installpath/bisheng-jdk1.8.0_322 && cp -r $buildpath/bisheng-jdk1.8.0_322/* $installpath/bisheng-jdk1.8.0_322/ + +cat>$installpath/bisheng-jdk1.8.0_322/bisheng_jdk_modulefiles< /dev/null ); then + chmod 600 "$errfile" + [ -x /sbin/restorecon ] && /sbin/restorecon $errfile + exec > "$errfile" 2>&1 + else + errfile=$(mktemp -q /tmp/xses-$USER.XXXXXX) + if [ $? -eq 0 ]; then + exec > "$errfile" 2>&1 + fi + fi +fi + +SWITCHDESKPATH=/usr/share/switchdesk + +# Mandatorily source xinitrc-common, which is common code shared between the +# Xsession and xinitrc scripts which has been factored out to avoid duplication +. /etc/X11/xinit/xinitrc-common + +# This Xsession.d implementation, is intended to obsolte and replace the +# various mechanisms present in the 'case' statement which follows, and to +# eventually be able to easily remove all hard coded window manager specific +# content from this script. See bug #142260 for additional explanation and +# details. All window manager rpm packages and desktop environment +# packages should be modified to provide the Xsession.d/Xsession.$wm scripts +# to start themselves up. In the future, the legacy switchdesk mechanisms +# and hard coded window managers and desktop environments will be removed from +# this script. +XCLIENTS_D=/etc/X11/xinit/Xclients.d +if [ "$#" -eq 1 ] && [ -x "$XCLIENTS_D/Xclients.$1.sh" ]; then + exec -l $SHELL -c "$CK_XINIT_SESSION $SSH_AGENT $XCLIENTS_D/Xclients.$1.sh" +else +# now, we see if xdm/gdm/kdm has asked for a specific environment +case $# in +1) + if [ -x "$SWITCHDESKPATH/Xclients.$1" ]; then + exec -l $SHELL -c "$SWITCHDESKPATH/Xclients.$1"; + fi; + + case "$1" in + failsafe) + exec -l $SHELL -c "xterm -geometry 80x24-0-0" + ;; + gnome|gnome-session) + # lack of SSH_AGENT is intentional, see #441123. though + # the whole thing should really happen in xinitrc.d anyway. + exec -l $SHELL -c gnome-session + exec /bin/sh -c "exec -l $SHELL -c \"gnome-session\"" + ;; + kde|kde1|kde2) + exec $CK_XINIT_SESSION $SSH_AGENT /bin/sh -c "exec -l $SHELL -c \"startkde\"" + ;; + twm) + # fall back to twm + exec $CK_XINIT_SESSION $SSH_AGENT /bin/sh -c "exec -l $SHELL -c \"twm\"" + ;; + *) + # GDM provies either a command line as the first argument or + # provides 'failsafe', 'default' or 'custom'. KDM will do the + # same at some point + if [ "$1" != "default" -a "$1" != "custom" ]; then + exec $CK_XINIT_SESSION $SSH_AGENT /bin/sh -c "exec -l $SHELL -c \"$1\"" + fi + ;; + esac +esac +fi + +# otherwise, take default action +if [ -x "$HOME/.xsession" ]; then + exec -l $SHELL -c "$CK_XINIT_SESSION $SSH_AGENT $HOME/.xsession" +elif [ -x "$HOME/.Xclients" ]; then + exec -l $SHELL -c "$CK_XINIT_SESSION $SSH_AGENT $HOME/.Xclients" +elif [ -x /etc/X11/xinit/Xclients ]; then + exec -l $SHELL -c "$CK_XINIT_SESSION $SSH_AGENT /etc/X11/xinit/Xclients" +else + # should never get here; failsafe fallback + exec -l $SHELL -c "xsm" +fi + diff --git "a/doc/Devkit\346\212\245\345\221\212/FigTree-1.4.4 Devkit\350\277\201\347\247\273\344\270\216\350\260\203\344\274\230\346\212\245\345\221\212.docx" "b/doc/Devkit\346\212\245\345\221\212/FigTree-1.4.4 Devkit\350\277\201\347\247\273\344\270\216\350\260\203\344\274\230\346\212\245\345\221\212.docx" new file mode 100644 index 0000000000000000000000000000000000000000..a5e8010bc5040df1a8bf5df4a57c13f8c69a766c Binary files /dev/null and "b/doc/Devkit\346\212\245\345\221\212/FigTree-1.4.4 Devkit\350\277\201\347\247\273\344\270\216\350\260\203\344\274\230\346\212\245\345\221\212.docx" differ diff --git "a/doc/Devkit\346\212\245\345\221\212/FigTree\346\272\220\347\240\201\345\210\206\346\236\220.html" "b/doc/Devkit\346\212\245\345\221\212/FigTree\346\272\220\347\240\201\345\210\206\346\236\220.html" new file mode 100644 index 0000000000000000000000000000000000000000..3bd3c1e49f0ac98d832f50aa3acf5e7f3d5f9af5 --- /dev/null +++ "b/doc/Devkit\346\212\245\345\221\212/FigTree\346\272\220\347\240\201\345\210\206\346\236\220.html" @@ -0,0 +1,506 @@ + + + + + + + + Document + + + + + +
+

+ 2022/08/07 11:56:10 +

+
+ +

配置信息

+ +
+
+ 源码文件存放路径 + + /opt/portadv/portadmin/sourcecode/FigTree_v1.4.4 + +
+
+ 目标操作系统 + + openEuler 20.03 SP3 + +
+
+ 目标系统内核版本 + + 4.19.90 + +
+
+ 编译器版本 + + -- + +
+
+ 构建工具 + + -- + +
+
+ 编译命令 + + -- + +
+
+ 迁移结果 + + + + 源码迁移分析成功:您指定的分析路径/分析包中没有需要迁移的内容 + +
+
+ +
+
+
+

可兼容替换

+

0

+
+
+

待验证替换

+

0

+
+
+

依赖文件总数

+

0

+
+
+
+
+

源文件数

+

0

+
+
+

代码行数

+

0

+
+
+

源码迁移人力

+

0人月

+
+
+

+ 预估标准:1人月迁移工作量 = 500行 C/C++/Fortran/Go/构建文件等源码,或250行汇编代码 +

+
+
+
+ +
+
+ 与架构相关的依赖文件 +
+ +
+ +
+
+ + + + + + + + + + + +
序号依赖文件名文件类型 + 待下载软件包名称 + 分析结果处理建议
+
+
+ + + + + + + + + + + + + + + +
+
+
+ 未发现与架构相关的依赖文件 +
+
+
+
+ + +
+
+ 需要迁移的源码文件 +
+ +
+ +
+
+ + + + + + + + + + + +
序号文件名路径文件类型需修改的代码行
+
+
+ + + + + + + + + + + + + + +
+
+
+ 未发现需要迁移的源码文件 +
+
+
+
+ + +
+
+ 需要迁移的代码行数 +
+ +
+ +
+
+ + + + + + + + + +
文件名行号(起始行,结束行)关键字建议
+
+
+ + + + + + + + + + + + + +
+
+
+ 无数据 +
+
+
+
+ + +
+
+ + + + + + \ No newline at end of file diff --git "a/doc/Devkit\346\212\245\345\221\212/FigTree\350\275\257\344\273\266\350\277\201\347\247\273\350\257\204\344\274\260.html" "b/doc/Devkit\346\212\245\345\221\212/FigTree\350\275\257\344\273\266\350\277\201\347\247\273\350\257\204\344\274\260.html" new file mode 100644 index 0000000000000000000000000000000000000000..aaa86b7198cf8093a9f18aaf0e113dfd3f50aee5 --- /dev/null +++ "b/doc/Devkit\346\212\245\345\221\212/FigTree\350\275\257\344\273\266\350\277\201\347\247\273\350\257\204\344\274\260.html" @@ -0,0 +1,499 @@ + + + + + + + + Document + + + +
+

+ 2022/08/07 10:33:35

+
+ +

+ 配置信息

+
+
+ 软件安装包存放路径或软件包名称 + /opt/portadv/portadmin/package/figtree-1.4.4 +
+ +
+ 目标操作系统 + openEuler 20.03 SP3 +
+
+ 目标系统内核版本 +

+ 4.19.90 +

+
+ +
+ 评估结果 +

+ + 软件迁移评估成功:您指定的分析路径/分析包中没有需要评估的内容 +

+
+ +
+
+ +
+

可兼容替换

+

0

+
+ +
+

待验证替换

+

0

+
+ +
+

依赖文件总数

+

0

+
+ +
+ +
+
+ +
+
+ 与架构相关的依赖文件 +
+
+ +
+
+ + + + + + + + + + + + + + +
序号依赖文件名文件类型软件包存放路径待下载软件包名称分析结果处理建议
+
+
+ + + + + + + + + + + + + + + + + + + +
+
+
+ 未发现与架构相关的依赖文件
+
+
+
+ + +
+
+ + + + \ No newline at end of file diff --git "a/doc/FigTree-1.4.4\345\272\224\347\224\250\346\265\213\350\257\225\346\212\245\345\221\212.docx" "b/doc/FigTree-1.4.4\345\272\224\347\224\250\346\265\213\350\257\225\346\212\245\345\221\212.docx" new file mode 100644 index 0000000000000000000000000000000000000000..e26e8960d7a9e3f2a91a0e96932ad6cfb134f7d9 Binary files /dev/null and "b/doc/FigTree-1.4.4\345\272\224\347\224\250\346\265\213\350\257\225\346\212\245\345\221\212.docx" differ diff --git "a/doc/FigTree-1.4.4\345\272\224\347\224\250\347\247\273\346\244\215\346\214\207\345\215\227.docx" "b/doc/FigTree-1.4.4\345\272\224\347\224\250\347\247\273\346\244\215\346\214\207\345\215\227.docx" new file mode 100644 index 0000000000000000000000000000000000000000..6e26fbeb02f746c929982a9680ba95ce7d4ed591 Binary files /dev/null and "b/doc/FigTree-1.4.4\345\272\224\347\224\250\347\247\273\346\244\215\346\214\207\345\215\227.docx" differ diff --git a/figtree-1.4.4.sh b/figtree-1.4.4.sh new file mode 100644 index 0000000000000000000000000000000000000000..c7161b78e67585c29268fcccf3e064a11cb0dee1 --- /dev/null +++ b/figtree-1.4.4.sh @@ -0,0 +1,26 @@ +#!/bin/bash + +if [[ $# -ne 2 ]]; then + echo "The format is as follows:" + echo "bash FigTree-1.4.4.sh buildpath installpath" + echo ":param buildpath: 应用构建绝对路径" + echo ":param installpath: 应用安装绝对路径" + exit 1 +fi + +[[ ! "$1" =~ ^/.* || ! -d "$1" || "$1" = "/" ]] && echo "请输入正确的构建路径" && exit 1 +[[ ! "$2" =~ ^/.* || ! -d "$2" || "$2" = "/" ]] && echo "请输入正确的安装路径" && exit 1 + +buildpath=$1 +installpath=$2 +[[ "$buildpath" =~ .*/$ ]] && buildpath=${buildpath%/*} +[[ "$installpath" =~ .*/$ ]] && installpath=${installpath%/*} +[[ "$buildpath" == "$installpath" ]] && echo "构建路径与安装路径需为不同路径" && exit 1 +yum install -y environment-modules csh time patch libatomic perl-Data-Dumper autoconf automake libtool numactl binutils systemd-devel valgrind flex wget +set -e + +wget -t 0 -c -P $buildpath https://github.com/rambaut/figtree/releases/download/v1.4.4/FigTree_v1.4.4.tgz +tar xf $buildpath/FigTree_v1.4.4.tgz -C $buildpath && rm -rf $buildpath/FigTree_v1.4.4.tgz +mkdir -p $installpath/figtree-1.4.4 && cp -r $buildpath/FigTree_v1.4.4/* $installpath/figtree-1.4.4 + +rm -rf $buildpath/FigTree_v1.4.4