Help - Search - Members - Calendar
Full Version: Pdaxrom Builder
OESF Forums > Distros, Development, and Model Specific Forums > Distro Support and Discussion > pdaXrom
Jose Ronnick
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
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 #
sashz
you can simply update all sources from site with next:

create in Choices directory file pdaXrom.cfg and put there:
CODE
BUILDER_HOME="<path to builder, for example: /home/sash/pdaXrom-builder"
SOURCE_URL="http://mail.pdaxrom.org/rc12/src/"


than run:

CODE
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)
Jose Ronnick
thanks sashz, that works even better.. biggrin.gif
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2014 Invision Power Services, Inc.