All pastes #138354 Raw Edit

Mine

public text v1 · immutable
#138354 ·published 2006-08-19 04:01 UTC
rendered paste body
# might be handy to set script to run as self (not root)

# run bitbake on first argument
# this could be while looped to handle multiple arguments 
if [ "$1" -ne "" ]; then
        echo "baking pkg"
        cd ~; bitbake $1 | grep -v 'Method already seen'
fi

# attempted to disable building locale packages in local.conf but it doesnt work
# so this section is currently needed
echo "removing locale ipks"

# method 1 - symlinks (not yet complete)
# create file listing desired ipks for ozfeed
#ls ~/tmp/deploy/ipk | grep -v locale > lsfeed.txt
# input file into loop that make symlinks for each desired ipk from ~/tmp/deploy/ipk to ~/ozfeed
#lsfeed.txt > ln -s ???

# method 2 - brute force strip them out
cd /stuff/build/tmp/deploy/ipk
mv *en-us* tmp/
rm -f *locale*
mv *8859-1_* tmp/
rm -f *gconv-*
rm -f *charmap*

# index the ipks in ozfeed and ssh remote command to Z that updates ipkg with new ipks
echo "baking pkg index and updating lists on Z"
cd /stuff/build; bitbake package-index | grep -v 'Method already seen'; ssh andy@169.12.31.9 'ipkg update'

# go back home
cd $PWD