<commit_before>#!/bin/bash

# Split into "noarch" "arch" and "machine" section
# build "noarch" for only one machine, build "arch" *one* time for each arch and build "machine" for each machine

DO_UCLIBC=0

do_build() {
	#echo "MACHINE = \"$BUILD_MACHINE\"" > conf/auto.conf

	BUILD_MODE="glibc"
	if [ "$BUILD_CLEAN" != "" ]
	then
		MACHINE=$BUILD_MACHINE bitbake -c clean $BUILD_CLEAN
	fi

	for target in $BUILD_TARGETS
	do
		MACHINE=$BUILD_MACHINE bitbake $target && do_report_success
	done

	if [ $DO_UCLIBC = 1 ]
	then
		BUILD_MODE="uclibc"
		
		if [ "$BUILD_CLEAN" != "" ]
        	then
                	ANGSTROM_MODE=uclibc MACHINE=$BUILD_MACHINE bitbake -c clean $BUILD_CLEAN
        	fi
		
		for target in $BUILD_TARGETS
		do
			ANGSTROM_MODE=uclibc MACHINE=$BUILD_MACHINE bitbake $target && do_report_success
		done
	fi
}

do_report_success() {

	echo "$(date -u +%s) $target $BUILD_MODE $machine" >> autobuilder-feed.log
}

# noarch packages (e.g. PACKAGE_ARCH=all in OE)

BUILD_MACHINE="beagleboard"
BUILD_CLEAN=""
BUILD_TARGETS=""
do_build

# arch packages (no machine specific (sub)packages)

# Architectures:
# * arm-oabi:  simpad
# * armv4t:    om-gta01
# * armv5te:   c7x0
# * armv6:     nokia800
# * armv7a:    beagleboard
# * ppc405:    dht-walnut
# * ppc603e:   efika
# * i586:      qemux86

for machine in simpad om-gta01 c7x0 nokia800 beagleboard dht-walnut efika qemux86
do
	BUILD_MACHINE=$machine
	BUILD_CLEAN="qmake-native qmake2-native qt-x11-free python python-native python-pygtk gnome-icon-theme"
	BUILD_TARGETS=" \
              abiword \
		      aircrack-ng \
		      angstrom-zeroconf-audio \
		      apache2 \
		      asterisk \
		      atomic \
		      autoconf \
		      automake \
		      binutils \
		      bison \
		      bluez-gnome \
		      boa \
		      camera-assistant \
		      checkers \
		      cherokee \
		      claws-mail \
		      cvs \
              distcc \
		      dsniff \
		      duke3d \
		      e-uae \
              e-wm \
		      empathy \ 
		      epdfview \
		      epiphany \
		      evince \
		      exo \
              fakeroot \
		      fennec \
		      ffmpeg \
		      fftw \
		      fftwf \
		      fftwl \
		      findutils \
		      firefox \
		      fish \
		      flex \
		      flite \
		      frameworkd \
		      freenote \
		      froot \
		      gcc \
		      gdal \
		      gdb \
		      gdbserver \
		      gimp \
		      glider \
		      gmp \
		      gnome-games \
		      gnome-mplayer \
		      gnome-panel \
		      gnome-system-monitor \
		      gnumeric \
		      gnuplot \
		      gnuradio \
		      gpe-bluetooth \
		      gpe-gallery \
		      gpe-login \
		      gpe-mini-browser \
		      gpe-mini-browser2 \
		      gpe-scap \
		      gpe-sketchbook \
		      git \
              gperf \
		      gphoto2 \
		      gpsdrive \
		      gqview \
		      gsm0710muxd \
		      gtk+ \
		      gzip \
		      hal \
		      hexatrolic \
		      i2c-tools \
		      iaimaster \
		      icebloxx \
		      imagemagick \
		      inkwp \
		      ioquake3 \
		      ipaq-sleep \
		      iperf \
		      iptables \
		      irssi \<commit_msg>angstrom feed builder: add gspcav1<commit_after>#!/bin/bash

# Split into "noarch" "arch" and "machine" section
# build "noarch" for only one machine, build "arch" *one* time for each arch and build "machine" for each machine

DO_UCLIBC=0

do_build() {
	#echo "MACHINE = \"$BUILD_MACHINE\"" > conf/auto.conf

	BUILD_MODE="glibc"
	if [ "$BUILD_CLEAN" != "" ]
	then
		MACHINE=$BUILD_MACHINE bitbake -c clean $BUILD_CLEAN
	fi

	for target in $BUILD_TARGETS
	do
		MACHINE=$BUILD_MACHINE bitbake $target && do_report_success
	done

	if [ $DO_UCLIBC = 1 ]
	then
		BUILD_MODE="uclibc"
		
		if [ "$BUILD_CLEAN" != "" ]
        	then
                	ANGSTROM_MODE=uclibc MACHINE=$BUILD_MACHINE bitbake -c clean $BUILD_CLEAN
        	fi
		
		for target in $BUILD_TARGETS
		do
			ANGSTROM_MODE=uclibc MACHINE=$BUILD_MACHINE bitbake $target && do_report_success
		done
	fi
}

do_report_success() {

	echo "$(date -u +%s) $target $BUILD_MODE $machine" >> autobuilder-feed.log
}

# noarch packages (e.g. PACKAGE_ARCH=all in OE)

BUILD_MACHINE="beagleboard"
BUILD_CLEAN=""
BUILD_TARGETS=""
do_build

# arch packages (no machine specific (sub)packages)

# Architectures:
# * arm-oabi:  simpad
# * armv4t:    om-gta01
# * armv5te:   c7x0
# * armv6:     nokia800
# * armv7a:    beagleboard
# * ppc405:    dht-walnut
# * ppc603e:   efika
# * i586:      qemux86

for machine in simpad om-gta01 c7x0 nokia800 beagleboard dht-walnut efika qemux86
do
	BUILD_MACHINE=$machine
	BUILD_CLEAN="qmake-native qmake2-native qt-x11-free python python-native python-pygtk gnome-icon-theme"
	BUILD_TARGETS=" \
              abiword \
		      aircrack-ng \
		      angstrom-zeroconf-audio \
		      apache2 \
		      asterisk \
		      atomic \
		      autoconf \
		      automake \
		      binutils \
		      bison \
		      bluez-gnome \
		      boa \
		      camera-assistant \
		      checkers \
		      cherokee \
		      claws-mail \
		      cvs \
              distcc \
		      dsniff \
		      duke3d \
		      e-uae \
              e-wm \
		      empathy \ 
		      epdfview \
		      epiphany \
		      evince \
		      exo \
              fakeroot \
		      fennec \
		      ffmpeg \
		      fftw \
		      fftwf \
		      fftwl \
		      findutils \
		      firefox \
		      fish \
		      flex \
		      flite \
		      frameworkd \
		      freenote \
		      froot \
		      gcc \
		      gdal \
		      gdb \
		      gdbserver \
		      gimp \
		      glider \
		      gmp \
		      gnome-games \
		      gnome-mplayer \
		      gnome-panel \
		      gnome-system-monitor \
		      gnumeric \
		      gnuplot \
		      gnuradio \
		      gpe-bluetooth \
		      gpe-gallery \
		      gpe-login \
		      gpe-mini-browser \
		      gpe-mini-browser2 \
		      gpe-scap \
		      gpe-sketchbook \
		      git \
              gperf \
		      gphoto2 \
		      gpsdrive \
		      gqview \
		      gsm0710muxd \
		      gspcav1 \
              gtk+ \
		      gzip \
		      hal \
		      hexatrolic \
		      i2c-tools \
		      iaimaster \
		      icebloxx \
		      imagemagick \
		      inkwp \
		      ioquake3 \
		      ipaq-sleep \
		      iperf \
		      iptables \
		      irssi \
{'fraction_non_alphanumeric': 0.09069212410501193, 'fraction_numerical': 0.014956245027844072, 'mean_word_length': 1.440217391304348, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4799773', 'n_tokens_mistral': 2690, 'n_tokens_neox': 2229, 'n_words': 455}