Annotation of badi/public_scripts/parallelstarter/setup_parallelstarter, revision 1.1

1.1     ! adi         1: #!/bin/sh
        !             2: 
        !             3: if [ -z "$1" ]; then
        !             4:        echo "Please give one of these libs as an argument:"
        !             5:        ls -l /usr/local/lib/parallelstarter/ | grep "^d" | awk '{ print $9 }'
        !             6:        exit 0
        !             7: fi
        !             8: 
        !             9: echo "Setting up parallelstarter to use with $1 in this directory."
        !            10: echo "Press CTRL-C now to stop or wait 5s to continue."
        !            11: sleep 5
        !            12: echo
        !            13: 
        !            14: if [ ! -e parallelstarter.setup ]; then
        !            15:        echo -n "Copying "
        !            16:        cp -v "/usr/local/lib/parallelstarter/$1/parallelstarter.setup" .
        !            17: else
        !            18:        echo "parallelstarter.setup already exists; it won't be overwritten. You may find the default file in /usr/local/lib/parallelstarter/$1."
        !            19: fi
        !            20: if [ -e parallelstarter.prepare_process_start ]; then
        !            21:        rm -v "parallelstarter.prepare_process_start"
        !            22: fi
        !            23: echo -n "Linking "
        !            24: ln -sv "/usr/local/lib/parallelstarter/$1/parallelstarter.prepare_process_start"
        !            25: 
        !            26: if [ -e parallelstarter.cleanup ]; then
        !            27:        rm -v "parallelstarter.cleanup"
        !            28: fi
        !            29: echo -n "Linking "
        !            30: ln -sv "/usr/local/lib/parallelstarter/$1/parallelstarter.cleanup"
        !            31: 
        !            32: echo "done."
        !            33: 
        !            34: echo
        !            35: echo "Edit parallelstarter.setup to your needs, please."

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>