hgbook
annotate fr/fixsvg @ 1114:527b86d55d4a
inotify: update installation information
inotify is shipped in Mercurial since 1.0, which greatly simplifies the installation process
inotify is shipped in Mercurial since 1.0, which greatly simplifies the installation process
author | Nicolas Dumazet <nicdumz.commits@gmail.com> |
---|---|
date | Sun Dec 13 16:35:56 2009 +0900 (2009-12-13) |
parents | 028543f67bea |
children |
rev | line source |
---|---|
hg@307 | 1 #!/bin/bash |
hg@307 | 2 |
bos@309 | 3 test -d hello || hg clone http://hg.serpentine.com/tutorial/hello |
bos@309 | 4 |
bos@309 | 5 set -e |
hg@307 | 6 |
hg@307 | 7 for i in 0 1 2 3 4 |
hg@307 | 8 do |
bos@309 | 9 export REV$i=$(hg --cwd hello log -r $i --template '{node|short}' | cut -c1-4) |
hg@307 | 10 done |
bos@309 | 11 export REV_my_hello=$(cat /tmp/REV5.my-hello) |
bos@309 | 12 export REV_my_new_hello=$(cat /tmp/REV5.my-new-hello) |
bos@309 | 13 export REV6_my_new_hello=$(cat /tmp/REV6.my-new-hello) |
bos@309 | 14 export REV7_my_new_hello=$(cat /tmp/REV7.my-new-hello) |
hg@307 | 15 |
hg@307 | 16 FILE=$1 |
bos@309 | 17 OUTFILE=$FILE-tmp.svg |
bos@309 | 18 rm -f $OUTFILE |
hg@307 | 19 echo "Fixing $FILE" |
bos@309 | 20 cp $FILE $OUTFILE |
bos@309 | 21 perl -p -i -e "s#REV0#$REV0#" $OUTFILE |
bos@309 | 22 perl -p -i -e "s#REV1#$REV1#" $OUTFILE |
bos@309 | 23 perl -p -i -e "s#REV2#$REV2#" $OUTFILE |
bos@309 | 24 perl -p -i -e "s#REV3#$REV3#" $OUTFILE |
bos@309 | 25 perl -p -i -e "s#REV4#$REV4#" $OUTFILE |
bos@309 | 26 perl -p -i -e "s#REV_my_hello#$REV_my_hello#" $OUTFILE |
bos@309 | 27 perl -p -i -e "s#REV_my_new_hello#$REV_my_new_hello#" $OUTFILE |
bos@309 | 28 perl -p -i -e "s#REV6_my_new_hello#$REV6_my_new_hello#" $OUTFILE |
bos@309 | 29 perl -p -i -e "s#REV7_my_new_hello#$REV7_my_new_hello#" $OUTFILE |