Lines Matching refs:filename
125 # $contents. Store the filename in $filename.
128 filename=""
140 filename="$file"
141 if test -n "`echo $filename | grep ubuntu`"; then
149 if test -z "$filename"; then
155 filename='/etc/release'
167 if ! test -n "`echo $filename | grep ubuntu`"; then
168 name="`echo $filename | sed -e 's|/etc/||' -e 's|-*release$||' -e 's|[-_]version$||' -e 's|\.issue||' | tr '[A-Z]' '[a-z]' | tr -d '-'`"
178 if test -n "`grep debian $filename`"; then
180 elif test -n "`echo $filename | grep ubuntu`"; then
182 elif test -n "`grep -i caldera $filename`"; then
194 debian) version="`sed -e 's!\.!!'g -e 's!^testing/!-!' $filename`" ;;
198 rocklinux) version="`sed -e 's!^.*Linux \([0-9]\.[0-9]\.*[0-9]*\).*$!\1!' $filename | tr -d '.' | sed -e 's!0$!!'`" ;;
199 slackware) version="`sed -e 's!\.!!g' -e 's!\([0-9]*\).*$!\1!' -e 's!\([0-9][0-9]*\)0$!\1!' $filename`" ;;
214 elif test -n "`echo $filename | grep ubuntu`"; then
217 elif test -n "`echo $filename | grep debian`"; then
219 case "`cat $filename`" in
264 if test -n "`echo $filename | grep debian`"; then
266 elif test -n "`echo $filename | grep ubuntu`"; then
268 elif test -n "`echo $filename | grep slackware`"; then