Chop all the vegetables, add vinegar, sugar and spices and bring slowly to the boil, stirring now and again. If the courgettes have a tough skin, you can peel them and compost the skins.
Simmer for about two hours (don't forget to stir as it will stick) until thick.