summaryrefslogtreecommitdiff
path: root/scripts/build/tools/sstrip.sh
diff options
context:
space:
mode:
authorYann E. MORIN" <yann.morin.1998@anciens.enib.fr>2007-06-16 18:08:14 (GMT)
committerYann E. MORIN" <yann.morin.1998@anciens.enib.fr>2007-06-16 18:08:14 (GMT)
commit37cce18efa5466b2b7d6b7cd23e7dd782987a6a0 (patch)
tree4e648db8841c369a64a4a95e8bb974c4d161b0fc /scripts/build/tools/sstrip.sh
parent0b17dd664e9dbacd04092384f79f0455e0d2741c (diff)
Add a function to print each component's filename: this eases building the tarball of the generated toolchain.
Hard-link the libfloat tarball instead of soft-link: this also eases building the afore-mentioned tarball.
Diffstat (limited to 'scripts/build/tools/sstrip.sh')
-rw-r--r--scripts/build/tools/sstrip.sh29
1 files changed, 24 insertions, 5 deletions
diff --git a/scripts/build/tools/sstrip.sh b/scripts/build/tools/sstrip.sh
index 5555451..f274997 100644
--- a/scripts/build/tools/sstrip.sh
+++ b/scripts/build/tools/sstrip.sh
@@ -4,6 +4,9 @@ is_enabled="${CT_SSTRIP}"
case "${CT_SSTRIP_FROM}" in
ELFkickers)
+ do_print_filename() {
+ echo "ELFkickers-${CT_SSTRIP_ELFKICKERS_VERSION}"
+ }
do_tools_sstrip_get() {
CT_GetFile "ELFkickers-${CT_SSTRIP_ELFKICKERS_VERSION}" \
http://www.muppetlabs.com/~breadbox/pub/software
@@ -29,16 +32,17 @@ case "${CT_SSTRIP_FROM}" in
buildroot)
sstrip_url='http://buildroot.uclibc.org/cgi-bin/viewcvs.cgi/trunk/buildroot/toolchain/sstrip/sstrip.c'
+ do_print_filename() {
+ echo "sstrip.c"
+ }
do_tools_sstrip_get() {
# With this one, we must handle the download by ourselves,
# we can't leave the job to the classic CT_GetFile.
- if [ -f "${CT_SRC_DIR}/sstrip/sstrip.c" ]; then
+ if [ -f "${CT_TARBALLS_DIR}/sstrip.c" ]; then
return 0
fi
- CT_Pushd "${CT_SRC_DIR}"
+ CT_Pushd "${CT_TARBALLS_DIR}"
CT_DoLog EXTRA "Retrieving \"sstrip\" (from buildroot's svn)"
- mkdir -p sstrip
- cd sstrip
http_data=`lynx -dump "${sstrip_url}"`
link=`echo -en "${http_data}" \
|egrep '\[[[:digit:]]+\]download' \
@@ -52,7 +56,8 @@ case "${CT_SSTRIP_FROM}" in
}
do_tools_sstrip_extract() {
# We'll let buildroot guys take care of sstrip maintenance and patching.
- :
+ mkdir -p "${CT_SRC_DIR}/sstrip"
+ cp -v "${CT_TARBALLS_DIR}/sstrip.c" "${CT_SRC_DIR}/sstrip" |CT_DoLog ALL
}
do_tools_sstrip_build() {
CT_DoStep INFO "Installing sstrip"
@@ -68,4 +73,18 @@ case "${CT_SSTRIP_FROM}" in
CT_EndStep
}
;;
+
+ *) do_print_filename() {
+ :
+ }
+ do_tools_sstrip_get() {
+ :
+ }
+ do_tools_sstrip_extract() {
+ :
+ }
+ do_tools_sstrip_build() {
+ :
+ }
+ ;;
esac