V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
爱意满满的作品展示区。
initd

排序软件包名小工具 - 为构建而生

  •  
  •   initd · Apr 4, 2022 · 1749 views
    This topic created in 1487 days ago, the information mentioned may be changed or developed.

    排序软件包名

    解决写脚本时的格式化问题

    起因

    买了两个开发板, 准备学习嵌入式, 而构建系统镜像需要复杂的操作 裸机系统安装软件包未免太过难以管理 溯源 回滚. 想来 Docker 还是 最好的方案.

    排序方法

    JavaScript Array.prototype.sort()

    运行实例

    https://build.moz.one

    示例

    # 80 char
    asciidoc autoconf autotools-dev bash bc binutils build-essential bzip2 cpio curl  \
    cvs dblatex device-tree-compiler g++ gcc gcc-aarch64-linux-gnu  \
    gcc-arm-linux-gnueabihf genext2fs git gitk graphviz gzip intltool libdrm-dev  \
    libglade2-dev libglib2.0-dev libgtk2.0-dev libncurses5 libsigsegv2 libssl-dev  \
    libudev-dev libusb-1.0-0-dev m4 make mercurial mtools openssh-client parted  \
    patch perl python rsync sed subversion tar texinfo u-boot-tools unzip w3m wget  
    
    # 5 name
    asciidoc autoconf autotools-dev bash bc \
    binutils build-essential bzip2 cpio curl \
    cvs dblatex device-tree-compiler g++ gcc \
    gcc-aarch64-linux-gnu gcc-arm-linux-gnueabihf genext2fs git gitk \
    graphviz gzip intltool libdrm-dev libglade2-dev \
    libglib2.0-dev libgtk2.0-dev libncurses5 libsigsegv2 libssl-dev \
    libudev-dev libusb-1.0-0-dev m4 make mercurial \
    mtools openssh-client parted patch perl \
    python rsync sed subversion tar \
    texinfo u-boot-tools unzip w3m wget 
    

    贡献

    欢迎发现问题, 提出改进

    许可证

    MIT

    题外话

    学习 Linux 启动过程 , Arm 启动过程, 编译 Ubuntu 镜像 看什么书?

    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2660 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 30ms · UTC 12:05 · PVG 20:05 · LAX 05:05 · JFK 08:05
    ♥ Do have faith in what you're doing.