2016-05-12 | Paul Boddie | file changeset files shortlog | Adjusted the height and introduced the missing break in the PCB support. |
paul@73 | 1 | #!/bin/sh |
paul@73 | 2 | |
paul@73 | 3 | VERSION=$1 |
paul@73 | 4 | |
paul@73 | 5 | if [ ! "$VERSION" ]; then |
paul@73 | 6 | cat 1>&2 <<EOF |
paul@73 | 7 | Need a version to retrieve from the history. Maybe try one of the following: |
paul@73 | 8 | |
paul@73 | 9 | EOF |
paul@73 | 10 | hg tags 1>&2 |
paul@73 | 11 | exit 1 |
paul@73 | 12 | fi |
paul@73 | 13 | |
paul@73 | 14 | hg cat -r "$VERSION" cartridge.scad \ |
paul@73 | 15 | | sed 's/module cartridge/module cartridge_old/;s/cartridge()/cartridge_old()/' \ |
paul@73 | 16 | > cartridge-old.scad |