From CORALIE to HARPS. The way towards 1 m s-1 precision Doppler measurements