contrib/buildrpm
changeset 21640 4bfb721de6dd
parent 21639 57e0f053e529
child 21641 977e5bd6eb76
equal deleted inserted replaced
21639:57e0f053e529 21640:4bfb721de6dd
    16 fi
    16 fi
    17 
    17 
    18 if [ ! -d .hg ]; then
    18 if [ ! -d .hg ]; then
    19     echo 'You are not inside a Mercurial repository!' 1>&2
    19     echo 'You are not inside a Mercurial repository!' 1>&2
    20     exit 1
    20     exit 1
    21 fi
       
    22 
       
    23 if $HG id -i | grep '+$' > /dev/null 2>&1; then
       
    24     echo -n "Your local changes will NOT be in the RPM. Continue [y/n] ? "
       
    25     read answer
       
    26     if echo $answer | grep -iv '^y'; then
       
    27         exit
       
    28     fi
       
    29 fi
    21 fi
    30 
    22 
    31 # build local hg and use it
    23 # build local hg and use it
    32 python setup.py build_py -c -d .
    24 python setup.py build_py -c -d .
    33 HG="$PWD/hg"
    25 HG="$PWD/hg"