changelog shortlog tags branches changeset files revisions annotate raw help

Mercurial > hg > plan9front / rc/bin/diffy

changeset 7243: 34f64dcbbc25
parent: efddda59690a
author: cinap_lenrek@felloff.net
date: Fri, 17 May 2019 18:14:10 +0200
permissions: -rwxr-xr-x
description: 7l: don't hardcode 4k pagesize, use INITRND
1 #!/bin/rc
2 # diffy [diff-opts] file... - diff file against yesterday's version(s)
3 rfork e
4 diffopts=()
5 while(! ~ $#* 0 && ~ $1 -* && ! ~ $1 --){
6  diffopts=($diffopts $1)
7  shift
8 }
9 if(~ $1 --)
10  shift
11 if(! ~ $#* 1)
12  diffopts=($diffopts -m)
13 for(f)
14  diff $diffopts `{yesterday $f} $f