For a river flowing on a slope, the resistive force is $R = av$ and gravitational force, $F = bh$. The flow speed adjusts itself to $av=bh \implies v=\frac{b}{a}h$. For the mass conservation law,
$$h_t + (hv)_x = r.$$
substituting for $v$, one gets $$u_t +uu_x =f \;\text{(inviscid Burgers' equation)}$$ with $u=2\frac{b}{a}h$ and $f=2\frac{b}{a}r$. How is the author getting the second equation (and $u$, $f$ values) from the first equation?