diff options
author | CoprDistGit <infra@openeuler.org> | 2025-01-10 07:14:00 +0000 |
---|---|---|
committer | CoprDistGit <infra@openeuler.org> | 2025-01-10 07:14:00 +0000 |
commit | 1cdebed8ca519a84ae406d50e5e5d02c08320430 (patch) | |
tree | 402f6a92c7db4e26b3aa4519a1be77da2f75d126 | |
parent | e902fed519610ca4442b910ab983a76fbf602665 (diff) |
automatic import of file-reorganize
-rw-r--r-- | file-reorganize.spec | 21 |
1 files changed, 8 insertions, 13 deletions
diff --git a/file-reorganize.spec b/file-reorganize.spec index ab240b0..9f9ce0a 100644 --- a/file-reorganize.spec +++ b/file-reorganize.spec @@ -18,21 +18,16 @@ Move files to the corresponding category directory according to file extension o %autosetup # 安装cangjie -type cjpm -if [[ $? -eq 0 ]]; then - echo "已经安装仓颉" +echo "安装仓颉" +if [[ `uname -m` == "x86_64" ]]; then + wget -O Cangjie-0.53.13-linux_x64.tar.gz "https://cangjie-lang.cn/v1/files/auth/downLoad?nsId=142267&fileName=Cangjie-0.53.13-linux_x64.tar.gz&objectKey=6719f1eb3af6947e3c6af327" + tar -xzvf Cangjie-0.53.13-linux_x64.tar.gz else - echo "安装仓颉" - if [[ `uname -m` == "x86_64" ]]; then - wget -O Cangjie-0.53.13-linux_x64.tar.gz "https://cangjie-lang.cn/v1/files/auth/downLoad?nsId=142267&fileName=Cangjie-0.53.13-linux_x64.tar.gz&objectKey=6719f1eb3af6947e3c6af327" - tar -xzvf Cangjie-0.53.13-linux_x64.tar.gz - else - wget -O Cangjie-0.53.13-linux_aarch64.tar.gz "https://cangjie-lang.cn/v1/files/auth/downLoad?nsId=142267&fileName=Cangjie-0.53.13-linux_aarch64.tar.gz&objectKey=6719f1ec3af6947e3c6af328" - tar -xzvf Cangjie-0.53.13-linux_aarch64.tar.gz - fi - mv cangjie /root/ - source /root/cangjie/envsetup.sh + wget -O Cangjie-0.53.13-linux_aarch64.tar.gz "https://cangjie-lang.cn/v1/files/auth/downLoad?nsId=142267&fileName=Cangjie-0.53.13-linux_aarch64.tar.gz&objectKey=6719f1ec3af6947e3c6af328" + tar -xzvf Cangjie-0.53.13-linux_aarch64.tar.gz fi +mv cangjie /root/ +source /root/cangjie/envsetup.sh %build source /root/cangjie/envsetup.sh |