# HG changeset patch # User "Heiko Schlittermann " # Date 1338733999 -7200 # Node ID 5c0e067d6b4f9c21d500e9bf24213243e3b607e3 # Parent 9b555bfd927e5fae2514e350820703002acb1c9f added option -n to setup script diff -r 9b555bfd927e -r 5c0e067d6b4f setup --- a/setup Sun Jun 03 15:55:21 2012 +0200 +++ b/setup Sun Jun 03 16:33:19 2012 +0200 @@ -1,5 +1,23 @@ #! /bin/bash -command -v rsync || { +tmp=$(getopt -n setup -o n -l nothing -- "$@") \ + || cat >&2 <<_ +Usage: $0 [-n|--nothing] +_ + +set -- $tmp + +while : +do + opt="$1"; shift + case "$opt" in + -n|--nothing) opt_n=-n;; + --) break;; + esac +done + +command -v rsync &>/dev/null || { zypper -n install rsync } + +rsync $opt_n -iav --exclude setup --exclude .hg . /