Complex sentence: The regiment spent their time building winter quarters, and tunnelling into the hillside to provide protection against shellfire, doing so until 27 November when they moved back into the front line.
Split into simpler sentences: The regiment spent their time building winter quarters, tunnelling into the hillside to provide protection against shellfire. Until 27 November when they moved back into the front line.