<commit_before>#!/bin/sh

export ISAOS=$(uname)
if [ "$ISAOS" != "Linux" ] ; then
  echo "Host:`hostname` with $ISAOS cannot compile for Linux"
  exit 1
fi

export LINUX_DISTRIB=""
grep Ubuntu /etc/lsb-release > /dev/null
if [ "$?" -eq 0 ] ; then
    LINUX_DISTRIB=$(/usr/bin/awk -F = '
                       /DISTRIB_ID/        {d_id = $2} 
                       /DISTRIB_CODENAME/  {d_codename = $2}
                       END {print d_id "_" d_codename}' /etc/lsb-release)
else
    echo "Unsupported Linux distribution."
    exit 1
fi


export HAVE_LIBV4L=""
if [ "$LINUX_DISTRIB" = "Ubuntu_hardy" ] ; then
   HAVE_LIBV4L=""
else
   HAVE_LIBV4L="libv4l-dev"
fi

export LIBXVID=""
# renamed since Ubuntu lucid
if [ "$LINUX_DISTRIB" = "Ubuntu_karmic" ] ; then
   LIBXVID="libxvidcore4-dev"
else
   LIBXVID="libxvidcore-dev"
fi


apt-get install -y itcl3 itk3 iwidgets4 
apt-get install -y xutils-dev make gcc g++  libc6-dev libx11-dev nasm yasm m4
apt-get install -y libxmu-dev libxaw7-dev zlib1g-dev libjpeg62-dev libssl-dev
apt-get install -y sun-java6-jdk 
apt-get install -y libbogl-dev libpng12-dev libtiff4-dev openssh-server liblcms1-dev libasound2-dev libgl1-mesa-dev libglu1-mesa-dev
apt-get install -y freeglut3-dev libxfixes-dev libxvmc-dev libgsm1-dev libmp3lame-dev libspeex-dev libopencore-amrnb-dev libopencore-amrwb-dev libx264-dev portaudio19-dev

apt-get install -y  $LIBXVID $HAVE_LIBV4L


exit 0




<commit_msg>Patched devel target in the main Makefile to install sun-java6-jdk in oneiric.<commit_after>#!/bin/sh

export ISAOS=$(uname)
if [ "$ISAOS" != "Linux" ] ; then
  echo "Host:`hostname` with $ISAOS cannot compile for Linux"
  exit 1
fi

export LINUX_DISTRIB=""
grep Ubuntu /etc/lsb-release > /dev/null
if [ "$?" -eq 0 ] ; then
    LINUX_DISTRIB=$(/usr/bin/awk -F = '
                       /DISTRIB_ID/        {d_id = $2} 
                       /DISTRIB_CODENAME/  {d_codename = $2}
                       END {print d_id "_" d_codename}' /etc/lsb-release)
else
    echo "Unsupported Linux distribution."
    exit 1
fi


export HAVE_LIBV4L=""
if [ "$LINUX_DISTRIB" = "Ubuntu_hardy" ] ; then
   HAVE_LIBV4L=""
else
   HAVE_LIBV4L="libv4l-dev"
fi

export LIBXVID=""
# renamed since Ubuntu lucid
if [ "$LINUX_DISTRIB" = "Ubuntu_karmic" ] ; then
   LIBXVID="libxvidcore4-dev"
else
   LIBXVID="libxvidcore-dev"
fi


apt-get install -y itcl3 itk3 iwidgets4 
apt-get install -y xutils-dev make gcc g++  libc6-dev libx11-dev nasm yasm m4
apt-get install -y libxmu-dev libxaw7-dev zlib1g-dev libjpeg62-dev libssl-dev

if [ "$LINUX_DISTRIB" = "Ubuntu_oneiric" ] ; then
   add-apt-repository -r -y ppa:ferramroberto/java
   add-apt-repository -y ppa:ferramroberto/java
   apt-get update -y
fi
apt-get install -y sun-java6-jdk

apt-get install -y libbogl-dev libpng12-dev libtiff4-dev openssh-server liblcms1-dev libasound2-dev libgl1-mesa-dev libglu1-mesa-dev
apt-get install -y freeglut3-dev libxfixes-dev libxvmc-dev libgsm1-dev libmp3lame-dev libspeex-dev libopencore-amrnb-dev libopencore-amrwb-dev libx264-dev portaudio19-dev

apt-get install -y  $LIBXVID $HAVE_LIBV4L


exit 0





{'fraction_non_alphanumeric': 0.1154712126085558, 'fraction_numerical': 0.02541009971051785, 'mean_word_length': 3.119205298013245, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3370055', 'n_tokens_mistral': 1345, 'n_tokens_neox': 1242, 'n_words': 296}