scripts/build/tools/200-sstrip.sh
changeset 1133 ff9c81b84c42
parent 1126 1ab3d2e08c8b
child 1245 96d74832c40b
     1.1 --- a/scripts/build/tools/200-sstrip.sh	Mon Jan 05 23:02:43 2009 +0000
     1.2 +++ b/scripts/build/tools/200-sstrip.sh	Sun Jan 11 18:05:25 2009 +0000
     1.3 @@ -28,9 +28,16 @@
     1.4  
     1.5      buildroot)
     1.6          do_tools_sstrip_get() {
     1.7 -            # Note: the space between sstrip and .c is on purpose.
     1.8 -            CT_GetFile sstrip .c    \
     1.9 -                       "http://buildroot.uclibc.org/cgi-bin/viewcvs.cgi/*checkout*/trunk/buildroot/toolchain/sstrip/"
    1.10 +            # We have to retrieve sstrip.c from a viewVC web interface. This
    1.11 +            # is not handled by the common CT_GetFile, thus we must take all
    1.12 +            # steps taken by CT_GetFile ourselves:
    1.13 +
    1.14 +            CT_GetLocal sstrip .c && return 0 || true
    1.15 +            CT_TestAndAbort "File '${file}' not present locally, and downloads are not allowed" "${CT_FORBID_DOWNLOAD}" = "y"
    1.16 +            CT_DoLog EXTRA "Retrieving 'sstrip'"
    1.17 +            CT_DoGetFile "http://sources.busybox.net/index.py/trunk/buildroot/toolchain/sstrip/sstrip.c?view=co"
    1.18 +            mv "sstrip.c?view=co" "${CT_TARBALLS_DIR}/sstrip.c"
    1.19 +            CT_SaveLocal "${CT_TARBALLS_DIR}/sstrip.c"
    1.20          }
    1.21          do_tools_sstrip_extract() {
    1.22              # We'll let buildroot guys take care of sstrip maintenance and patching.