hgbook

diff fr/fixsvg @ 1114:527b86d55d4a

inotify: update installation information

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
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/fr/fixsvg	Sun Dec 13 16:35:56 2009 +0900
     1.3 @@ -0,0 +1,29 @@
     1.4 +#!/bin/bash
     1.5 +
     1.6 +test -d hello || hg clone http://hg.serpentine.com/tutorial/hello
     1.7 +
     1.8 +set -e
     1.9 +
    1.10 +for i in 0 1 2 3 4
    1.11 +do
    1.12 +  export REV$i=$(hg --cwd hello log -r $i --template '{node|short}' | cut -c1-4)
    1.13 +done
    1.14 +export REV_my_hello=$(cat /tmp/REV5.my-hello)
    1.15 +export REV_my_new_hello=$(cat /tmp/REV5.my-new-hello)
    1.16 +export REV6_my_new_hello=$(cat /tmp/REV6.my-new-hello)
    1.17 +export REV7_my_new_hello=$(cat /tmp/REV7.my-new-hello)
    1.18 +
    1.19 +FILE=$1
    1.20 +OUTFILE=$FILE-tmp.svg
    1.21 +rm -f $OUTFILE
    1.22 +echo "Fixing $FILE"
    1.23 +cp $FILE $OUTFILE
    1.24 +perl -p -i -e "s#REV0#$REV0#" $OUTFILE
    1.25 +perl -p -i -e "s#REV1#$REV1#" $OUTFILE
    1.26 +perl -p -i -e "s#REV2#$REV2#" $OUTFILE
    1.27 +perl -p -i -e "s#REV3#$REV3#" $OUTFILE
    1.28 +perl -p -i -e "s#REV4#$REV4#" $OUTFILE
    1.29 +perl -p -i -e "s#REV_my_hello#$REV_my_hello#" $OUTFILE
    1.30 +perl -p -i -e "s#REV_my_new_hello#$REV_my_new_hello#" $OUTFILE
    1.31 +perl -p -i -e "s#REV6_my_new_hello#$REV6_my_new_hello#" $OUTFILE
    1.32 +perl -p -i -e "s#REV7_my_new_hello#$REV7_my_new_hello#" $OUTFILE