技术控

    今日:49| 主题:57815
收藏本版 (1)
最新软件应用技术尽在掌握

[其他] Tup – A file-based build system for Linux, OSX, and Windows

[复制链接]
曾那么需要你 投递于 2016-10-2 20:08:08
377 7
Home

  What is tup?

  Tup is a file-based build system for Linux, OSX, and Windows. It inputs a list of file changes and a directed acyclic graph (DAG), then processes the DAG to execute the appropriate commands required to update dependent files. Updates are performed with very little overhead since tup implements powerful build algorithms to avoid doing unnecessary work. This means you can stay focused on your project rather than on your build system.
  Get tup

  Git Repository

  1. $ git clone git://github.com/gittup/tup.git
  2. $ cd tup
  3. tup$ ./bootstrap.sh
  4. tup$ man ./tup.1
复制代码
Windows

  
       
  • Download latest version   
  • List of previous versions  
  Linux Ubuntu

  If you don't want to install tup from the git tree, you can use the unofficial tup PPA repository that works for Debian-based distributions (e.g. Ubuntu 10.04+).
  1. sudo apt-add-repository 'deb http://ppa.launchpad.net/anatol/tup/ubuntu precise main'
  2. sudo apt-get update
  3. sudo apt-get install tup
复制代码
MacOSX

   If you use the Homebrew package manager you can install tup as follows:
  1. brew tap homebrew/fuse
  2. brew install homebrew/fuse/tup
复制代码
If you useMacPortsinstall tup as:
  1. sudo port install tup
复制代码
Why tup?

   You can use tup anywhere you would use another build system (like make, or any of its derivatives). One reason you would want to use tup is if you like to update things very quickly. For example, if you typically execute a build in a subdirectory because it takes too long to figure out what to do when you execute the build from the top, you might want to look into tup. Unfortunately, tup is so fast that your chair mounted jousting might suffer. I apologize in advance if someone besmirches your honor and you are unable to properly defend yourself as a result.
  Wha tup?

  Nothing much, just writing some web pages. What's up with you?
  Why is it so awesome?

  
       
  • It isvery fast.   
  • It will automatically clean-up old files.   
  • It will detect if your build description isn't parallel-safe, and tell you.  
  What this means is:
  
       
  • Your edit/compile/test cycle is quick, even if your project is large. You just run: tup upd   
  • You don't have to outsmart your build system by starting it in a subdirectory to make it go faster. Anywhere in the tree: tup upd   
  • Your version control lets you rename a file. Does your build system? tup upd   
  • Fresh checkouts: gone.
    'clean' builds: gone.
    Worries: gone.
    What remains: tup upd  
  How is it so awesome?

  In a typical build system, the dependency arrows go down. Although this is the way they would naturally go due to gravity, it is unfortunately also where the enemy's gate is. This makes it very inefficient and unfriendly. In tup, the arrows go up. This is obviously true because it rhymes. See how the dependencies differ in make and tup:
                    Make
      

Tup – A file-based build system for Linux, OSX, and Windows

Tup – A file-based build system for Linux, OSX, and Windows-1-技术控-Tup,you,build,the,system
                     Tup
      

Tup – A file-based build system for Linux, OSX, and Windows

Tup – A file-based build system for Linux, OSX, and Windows-2-技术控-Tup,you,build,the,system
              See the difference? The arrows go up. This makes it very fast. In fact, in at least one case, tup is optimal. See the Build System Rules and Algorithms (PDF) paper for more detailed information.



上一篇:DOM编程之API学习总结篇
下一篇:javascript笔记基础总结篇
黄强 投递于 2016-10-2 22:00:17
众里寻他千百度,蓦然回首在这里!
回复 支持 反对

使用道具 举报

雅霜 投递于 2016-10-3 03:28:10
楼主,你说,你几个意思?
回复 支持 反对

使用道具 举报

远昼 投递于 2016-10-6 02:57:34
土豪,交个朋友
回复 支持 反对

使用道具 举报

无视ABC的李树彬 投递于 2016-11-11 13:55:55
沙发是我的,谁也不要抢!
回复 支持 反对

使用道具 举报

笨阿本 投递于 2016-11-12 17:08:35
别人的钱财乃我的身外之物.
回复 支持 反对

使用道具 举报

新儿 投递于 2016-11-17 20:13:13
看帖要回,回帖才健康
回复 支持 反对

使用道具 举报

ashui001 投递于 2016-11-21 06:44:37
围观 围观 沙发在哪里!!!
回复 支持 反对

使用道具 举报

我要投稿

推荐阅读


回页顶回复上一篇下一篇回列表
手机版/CoLaBug.com ( 粤ICP备05003221号 | 文网文[2010]257号 | 粤公网安备 44010402000842号 )

© 2001-2017 Comsenz Inc.

返回顶部 返回列表