setup
changeset 1 5c0e067d6b4f
parent 0 9b555bfd927e
child 2 c519f8c9083a
equal deleted inserted replaced
0:9b555bfd927e 1:5c0e067d6b4f
     1 #! /bin/bash
     1 #! /bin/bash
     2 
     2 
     3 command -v rsync || {
     3 tmp=$(getopt -n setup -o n -l nothing -- "$@") \
       
     4 	|| cat >&2 <<_
       
     5 Usage: $0 [-n|--nothing]
       
     6 _
       
     7 
       
     8 set -- $tmp
       
     9 
       
    10 while : 
       
    11 do
       
    12 	opt="$1"; shift
       
    13 	case "$opt" in
       
    14 		-n|--nothing)	opt_n=-n;;
       
    15 		--)		break;;
       
    16 	esac
       
    17 done
       
    18 
       
    19 command -v rsync &>/dev/null || {
     4 	zypper -n install rsync
    20 	zypper -n install rsync
     5 }
    21 }
       
    22 
       
    23 rsync  $opt_n -iav --exclude setup --exclude .hg . /