/[gentoo-projects]/pax-utils/symtree.sh
Gentoo

Diff of /pax-utils/symtree.sh

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.2 Revision 1.3
66 fi 66 fi
67} 67}
68 68
69SET_X=false 69SET_X=false
70 70
71([[ $1 == "" ]] || [[ $1 == --help ]]) && usage 1 71while getopts hx OPT ; do
72opts="hx"
73getopt -Q -- "${opts}" "$@" || exit 1
74eval set -- $(getopt -- "${opts}" "$@")
75while [[ -n $1 ]] ; do
76 case $1 in 72 case ${OPT} in
77 -x) SET_X=true;; 73 x) SET_X=true;;
78 -h) usage;; 74 h) usage;;
79 --) shift; break;;
80 -*) usage 1;; 75 *) usage 1;;
81 esac 76 esac
82 shift
83done 77done
78shift $((OPTIND - 1))
79[[ -z $1 ]] && usage 1
84 80
85${SET_X} && set -x 81${SET_X} && set -x
86 82
87ret=0 83ret=0
88for elf in "$@" ; do 84for elf in "$@" ; do

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.3

  ViewVC Help
Powered by ViewVC 1.1.20