Add tup recipes articles

This commit is contained in:
Fabien Freling 2019-10-28 13:36:42 +01:00
parent 257e39bbc0
commit 092b6def05

19
articles/tup_recipes.md Normal file
View file

@ -0,0 +1,19 @@
---
title: Tup recipes
date: 2019-10-28
---
As of writing, tup is at version
[0.7.8](https://github.com/gittup/tup/releases/tag/v0.7.8).
Access root of project
----------------------
Add `&root = .` in your `Tuprules.tup` at the root of your project.
You can then reference it with `&(root)` in Tupfiles.
Define default behavior
-----------------------
You can define default behavior with a `Tupdefault`. `Tupdefault` files in child
directory take precedence of the one in the parent directory.