+++ /dev/null
-#!/usr/bin/env bash
-
-top=$(pwd)
-
-usage()
-{
- echo 'Usage: t/configure-sampledata [--setup | --clean]'
-}
-
-if test "$#" -ne 1; then
- usage 1>&2; exit 1
-fi
-
-case "$1" in
- '--setup')
- (
- cd t/sampledata || exit $?
- ln -sf a b || exit $?
- ln -sf b c || exit $?
- ln -sf /etc . || exit $?
- ) || exit $?
- ;;
- '--clean')
- (
- cd t/sampledata || exit $?
- # test -e is false for dangling symlinks.
- if test -h b -o -e b; then rm b || exit $?; fi
- if test -h c -o -e c; then rm c || exit $?; fi
- if test -h etc -o -e etc; then rm etc || exit $?; fi
- )
- ;;
- *)
- usage 1>&2; exit 1
- ;;
-esac