anchor.diff:      "sles") rpm_filename ;;
       "fedora") rpm_filename ;;
       "solaris2") svr4_filename ;;
  +    "aix") aix_filename ;;
       *) shell_filename ;;
     esac
   fi
  
positive.code: os=`uname -s`
  
  # Retrieve Platform and Platform Version
  if [ -f "/etc/lsb-release" ] && grep -q DISTRIB_ID /etc/lsb-release;
  then
    platform=`grep DISTRIB_ID /etc/lsb-release | cut -d "=" -f 2 | tr '[A-Z]' '[a-z]'`
    platform_version=`grep DISTRIB_RELEASE /etc/lsb-release | cut -d "=" -f 2`
  elif [ -f "/etc/debian_version" ];
  then
    platform="debian"
    platform_version=`cat /etc/debian_version`
  elif [ -f "/etc/redhat-release" ];
  then
    platform=`sed 's/^\(.\+\) release.*/\1/' /etc/redhat-release | tr '[A-Z]' '[a-z]'`
    platform_version=`sed 's/^.\+ release \([.0-9]\+\).*/\1/' /etc/redhat-release`
  
  
negative.code: url="<%= locals[:download_url] %>?v=${version}&prerelease=${prerelease}&p=${platform}&pv=${platform_version}&m=${machine}"
  
  if [ "x$TMPDIR" = "x" ]; then
    tmp="/tmp"
  else
    tmp=$TMPDIR
  fi
  
  # secure-ish temp dir creation without having mktemp available (DDoS-able but not expliotable)
  