Lines Matching refs:contents
124 # Find the contents from the appropriate file, and store it in
125 # $contents. Store the filename in $filename.
127 contents=""
131 OpenBSD|FreeBSD|NetBSD|CYGWIN*) contents="`uname -a`" ;;
142 contents="`cat /etc/issue`"
144 contents="`cat $file`"
154 contents="`cat /etc/release`"
195 ubuntu) version="`echo $contents | awk '{print $2}'`" ;;
200 solaris) version="`echo $contents | sed -e 's!^European !!' -e 's!^Solaris \([0-9]\.*[0-9]*\) .*$!\1!' -e 's!\.!!g'`" ;;
203 version="`echo $contents | sed -n '1,1'p | sed -e 's!.*\([0-9][0-9]*\.[0-9][0-9]*[a-z]*\).*!\1!' -e 's!\([0-9][0-9]*\)\.\([0-9][0-9]*[a-z]*\)!\1\2!'`" ;;
212 if test -n "`echo $contents | sed -e 's!(GENERIC)!!' -e 's!(native, .*)!!' -e 's!(i[3456]86)!!' | egrep "^.* \(.*\).*$"`"; then
213 codename="`echo $contents | sed -e 's!.*(\(.*\)).*$!\1!'`"
215 # For ubuntu, steal it out of the contents report
216 codename="`echo $contents | awk -F\\\" '{print $2}'`"
262 name="`echo $contents | sed -e 's![0-9].*$!!' -e 's![\ ]*release[\ ]*!!' -e 's![\ ][\ ]*$!!g'`"
281 release="`echo $contents | sed -e 's!^[A-Za-z\ ]*\([0-9]\.*[0-9]*\.*[0-9]*[a-z]*\).*$!\1!'`"