On 2016/08/13 11:02, Jeremie Courreges-Anglas wrote:
> Stuart Henderson <[email protected]> writes:
>
> > On 2016/08/13 00:31, Jeremie Courreges-Anglas wrote:
> >> Almost, the PLIST needs manual intervention after running ''make plist''.
> >
> > Tip for python things: after 'make fake', do 'make REVISION=99 plist" to
> > avoid
> > the FULLPKGNAME bits in PLIST.
>
> duh... much better than
>
> $ typeset -f mvo
> mvo() {
> mv "$1"{.orig,}
> }
>
> Nice, thanks!
I came up with this the other day, after getting annoyed by having to
manually re-add @rcscript lines.
alias updplist='for j in `ls pkg|grep PLIST.*\.orig 2>/dev/null`; do
i=${j%.orig}; sdiff -o pkg/$i.new -w130 pkg/$i.orig pkg/$i; [ -r pkg/$i.new ]
&& (mv pkg/$i pkg/$i.int; mv pkg/$i.new pkg/$i); done'