| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108 | #!/bin/shoutputfile=outputdir=domain=messagesspliteq() {	arg=$1	echo "${arg#*=}"	#alternatives echo "$arg" | cut -d= -f2-	# or echo "$arg" | sed 's/[^=]*=//'}syntax() {	printf "%s\n" "Usage: xgettext [OPTION] [INPUTFILE]..."	exit 1}show_version() {	printf "%s\n", "these are not (GNU gettext-tools) 99.9999.9999\n"	exit 0}while true ; do	case $1 in	#--files-from=*) readfile `spliteq "$1"`;;	#-f) expectfilefrom=1;;	--version) show_version;;	-V) show_version;;	--default-domain=*) domain=`spliteq "$1"` ;;	-d) shift ; domain="$1" ;;	--files-from=*) : ;;	-f) shift ;;	--directory=*) : ;;	-D) shift ;;	-o) shift ; outputfile="$1" ;;	--output=*) outputfile=`spliteq "$1"` ;;	--output-dir=*) outputdir=`spliteq "$1"` ;;	-p) shift ; outputdir=`spliteq "$1"` ;;	--language=*) : ;;	-L) shift ;;	--C) : ;;	--c++) : ;;	--from-code=*) : ;;	--join-existing) : ;;	-j) : ;;	--exclude-file=*) : ;;	-x) shift;;	--add-comments=*) : ;;	-cTAG) shift;;	--add-comments) : ;;	-c) : ;;	--extract-all) : ;;	-a) : ;;	--keyword=*) : ;;	-k*) : ;;	--keyword) : ;;	-k) : ;;	--flag=*) : ;;	--trigraphs) : ;;	-T) : ;;	--qt) : ;;	--kde) : ;;	--boost) : ;;	--debug) : ;;	--color) : ;;	--color=*) : ;;	--style=*) : ;;	--no-escape) : ;;	-e) : ;;	--escape) : ;;	-E) : ;;	--force-po) force=1 ;;	--indent) : ;;	-i) : ;;	--no-location) : ;;	--add-location) : ;;	-n) : ;;	--strict) : ;;	--properties-output) : ;;	--stringtable-output) : ;;	--width=*) : ;;	-w) : ;;	--no-wrap) : ;;	--sort-output) : ;;	-s) : ;;	--sort-by-file) : ;;	-F) : ;;	--omit-header) : ;;	--copyright-holder=*) : ;;	--foreign-user) : ;;	--package-name=*) : ;;	--package-version=*) : ;;	--msgid-bugs-address=*) : ;;	--msgstr-prefix*) : ;;	-m*) : ;;	--msgstr-suffix*) : ;;	-M*) : ;;	--help) syntax ;;	-h) syntax ;;	*) break ;;	esac	shiftdone[ "$outputfile" = "-" ] && exit 0[ -z "$outputdir" ] && outputdir=.[ -z "$outputfile" ] && outputfile=${domain}.potouch $outputdir/$outputfile
 |