build.sh
changeset 4 de79ef5d609d
equal deleted inserted replaced
3:803cf5c97621 4:de79ef5d609d
       
     1 #! /bin/bash
       
     2 
       
     3 if [ ! -e build.sh ]; then
       
     4 	echo "Not in thg-debian repo."
       
     5 	exit
       
     6 fi
       
     7 if [ "$1" == "" ]; then
       
     8 	echo "Syntax: build.sh thg-repo-path"
       
     9 	exit
       
    10 fi
       
    11 thgrepo=$1
       
    12 
       
    13 rm build -rf
       
    14 mkdir -p build/src
       
    15 hg -R $thgrepo archive -r0.4rc2 build/src
       
    16 mkdir build/src/debian
       
    17 hg archive build/src/debian
       
    18 
       
    19 mkdir -p dist
       
    20 distdir=$(pwd)/dist
       
    21 pushd build/src/
       
    22 dpkg-buildpackage -rfakeroot
       
    23 fakeroot -- dpkg-deb --build debian/tortoisehg $distdir
       
    24 popd
       
    25