Sudan’s generals, pro-democracy group ink deal to end crisis