===================================================================
--- fetch-program (revision 6860)
+++ fetch-program (working copy)
@@ -46,7 +46,18 @@
git clone $AB_GIT
elif [ "$AB_HG" != "" ] ; then
+ AB_JBTMP=(${AB_HG//[\'\"]/})
+ if [ -e "${AB_JBTMP[1]}/.hg" ] ; then
+ cd ${AB_JBTMP[1]}
+ echo "doing hg pull ${AB_JBTMP[0]}"
+ hg pull ${AB_JBTMP[0]}
+ echo "doing hg update -C "
+ hg update -C
+ cd ..
+ else
+ echo "doing hg clone $AB_HG"
hg clone $AB_HG
+ fi
elif [ "$AB_URL" != "" ] ; then
wget -U "GCCSDK Autobuilder for RISC OS" -nv $AB_URL
Hi
Please patch the autobuilder fetch-program as below.
This extends the AB_HG method in 2 ways:
1: it permits the reuse of existing .hg which is left if the autobuilder -D option was given, which had left the sources in place for debug. This is beneficial if a large repository is being used .. it takes 20+mins here every build otherwise...
2: if the hg command was enclosed in ' or " these are removed, which enables cloning or pulling of the repository into a specific subdirectory of the build directory
It may also be worth doing the same mods to some of the other fetch methods
Thanks
John
--
Stop press! Just announced -
Most Trusted Broadband Provider in the 2014 Moneywise Customer Services Awards
Most Trusted Broadband Provider in the 2014 Moneywise Customer Services Awards
For full details of see https://www.utilitywarehouse.co.uk/reviews?exref=095761
Intrigued? Call me
John Ballance C.Eng MIET - jwb@macpcrepair.co.uk - 07976 295923
No comments:
Post a Comment