scripts/build/debug/template.sh
changeset 479 05c62432ec19
parent 478 6f84600ec8f8
child 480 1c38fee4a96a
     1.1 --- a/scripts/build/debug/template.sh	Fri May 02 21:55:57 2008 +0000
     1.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.3 @@ -1,50 +0,0 @@
     1.4 -# Template file for a debug utility
     1.5 -
     1.6 -# Check here wether your debug tool is enabled or not.
     1.7 -# This will get redefined over and over again for each tool, so don't
     1.8 -# count on it in the functions below.
     1.9 -is_enabled="${CT_FOOBAR}"
    1.10 -
    1.11 -# Small function to print the filename
    1.12 -# Note that this function gets redefined over and over for each tool
    1.13 -# It's of no use when building the toolchain proper, but shows all its
    1.14 -# usefullness when saving the toolchain and building the tarball.
    1.15 -# You shall not echo anything if you're not enabled!
    1.16 -# Echo the name of the file, without the extension, below.
    1.17 -do_print_filename() {
    1.18 -    # For example:
    1.19 -    # [ "${CT_FOOBAR}" = "y" ] || return 0
    1.20 -    # echo "foobar-${CT_FOOBAR_VERSION}"
    1.21 -    :
    1.22 -}
    1.23 -
    1.24 -# Put your download code here
    1.25 -do_debug_foobar_get() {
    1.26 -    # For example:
    1.27 -    # CT_GetFile "foobar-${CT_FOOBAR_VERSION}" http://foobar.com/releases/
    1.28 -    :
    1.29 -}
    1.30 -
    1.31 -# Put your extract code here
    1.32 -do_debug_foobar_extract() {
    1.33 -    # For example:
    1.34 -    # CT_ExtractAndPatch "foobar-${CT_FOOBAR_VERSION}"
    1.35 -    :
    1.36 -}
    1.37 -
    1.38 -# Put your build code here
    1.39 -do_debug_foobar_build() {
    1.40 -    # For example:
    1.41 -    # mkdir -p "${CT_BUILD_DIR}/build-foobar"
    1.42 -    # CT_Pushd "${CT_BUILD_DIR}/build-foobar"
    1.43 -    # "${CT_SRC_DIR}/foobar-${CT_FOOBAR_VERSION}/configure"   \
    1.44 -    #     --build=${CT_BUILD}                                 \
    1.45 -    #     --host=${CT_TARGET}                                 \
    1.46 -    #     --prefix=/usr                                       \
    1.47 -    #     --foobar-options
    1.48 -    # make
    1.49 -    # make DESTDIR="${CT_SYSROOT_DIR}" install
    1.50 -    # CT_Popd
    1.51 -    :
    1.52 -}
    1.53 -