fetch aliases?
Darren Weber
dweber at macports.org
Thu May 7 16:07:07 PDT 2009
For a variant in the InsightToolkit, it would be useful to get all the data
files from here:
http://public.kitware.com/pub/itk/Data/BrainWeb/
ie:
[image: [DIR]]Parent Directory
<http://public.kitware.com/pub/itk/Data/> - [image:
[ ]]BrainPart1.tgz<http://public.kitware.com/pub/itk/Data/BrainWeb/BrainPart1.tgz>19-Mar-2002
10:12 5.6M [image: [
]]BrainPart1Rotated10Translated15.tgz<http://public.kitware.com/pub/itk/Data/BrainWeb/BrainPart1Rotated10Translated15.tgz>07-May-2002
18:11 4.9M [image: [
]]BrainPart1Rotated20Translated20.tgz<http://public.kitware.com/pub/itk/Data/BrainWeb/BrainPart1Rotated20Translated20.tgz>07-May-2002
18:11 4.3M [image: [
]]BrainPart2.tgz<http://public.kitware.com/pub/itk/Data/BrainWeb/BrainPart2.tgz>19-Mar-2002
10:12 5.3M [image: [
]]BrainPart2Rotated10Translated15.tgz<http://public.kitware.com/pub/itk/Data/BrainWeb/BrainPart2Rotated10Translated15.tgz>07-May-2002
18:11 4.6M [image: [
]]BrainPart2Rotated20Translated20.tgz<http://public.kitware.com/pub/itk/Data/BrainWeb/BrainPart2Rotated20Translated20.tgz>07-May-2002
18:11 4.1M [image: [
]]BrainPart3.tgz<http://public.kitware.com/pub/itk/Data/BrainWeb/BrainPart3.tgz>19-Mar-2002
10:12 5.8M [image: [
]]BrainPart3Rotated10Translated15.tgz<http://public.kitware.com/pub/itk/Data/BrainWeb/BrainPart3Rotated10Translated15.tgz>07-May-2002
18:11 5.1M [image: [
]]BrainPart3Rotated20Translated20.tgz<http://public.kitware.com/pub/itk/Data/BrainWeb/BrainPart3Rotated20Translated20.tgz>07-May-2002
18:11 4.5M
Is it possible to specify a fetch filename alias to get all the files like
"BrainPart*.tgz"?
Would you override the fetch phase in a variant, maybe something like:
variant braindata {
fetch {
exec wget -r -l1 --no-parent -A.tgz
http://public.kitware.com/pub/itk/Data/BrainWeb/
# some code to put these downloads in the right place, like
${distfiles}
}
}
Thanks in advance,
Darren
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-dev/attachments/20090507/995d08db/attachment.html>
More information about the macports-dev
mailing list