OESF Portables Forum

Model Specific Forums => Sharp Zaurus => Zaurus - pdaXrom => Topic started by: Jose Ronnick on December 02, 2005, 03:27:48 pm

Title: Pdaxrom Builder
Post by: Jose Ronnick on December 02, 2005, 03:27:48 pm
So I'm working with the rc12 pdaXrom builder, and I've noticed a lot of the remote download sources aren't available anymore for the packages.

So, here's a little script I wrote to help do a 'make get'

It will try to get from the standard sources, but if they fail, it will get from pdaXrom's rc12 src tree, and re-try the 'make get'

It's helpful for me, and I figured it might be of use to someone else who is using the same builder package..

Code: [Select]
loki pdaXrom-builder # ls -l fetch_sources.sh
-rwxr-xr-x  1 root root 217 Dec  2 12:15 fetch_sources.sh
loki pdaXrom-builder # cat fetch_sources.sh
#!/bin/bash
make get 2>/tmp/error.log
cd src
FILE=`tail -n 2 /tmp/error.log | grep Error | sed -e 's/^.*\/\(.*\)\].*$/http:\/\/212.10.30.205\/rc12\/src\/\1/g'`
wget $FILE
cd ..
echo "restarting..."
./fetch_sources.sh
loki pdaXrom-builder #
Title: Pdaxrom Builder
Post by: sashz on December 02, 2005, 04:01:07 pm
you can simply update all sources from site with next:

create in Choices directory file pdaXrom.cfg and put there:
Code: [Select]
BUILDER_HOME="SOURCE_URL="http://mail.pdaxrom.org/rc12/src/"
than run:

Code: [Select]
scripts/bin/get_sources.sh
that will check and download source (if sources downloaded once and md5sum is ok, that will skipped - only new sources downloading)
Title: Pdaxrom Builder
Post by: Jose Ronnick on December 02, 2005, 04:07:51 pm
thanks sashz, that works even better..