Relativistic Compression and Shaping of Intense Laser Pulses