Implement rotate in csspecgen.sh