If you lick, knock, or whip someone or something into shape, you use whatever methods are necessary to change or improve them so that they are in the condition that you want them to be in.
You'll have four months in which to lick the recruits into shape.
Few people doubt his ability to whip the economy into shape.