diff options
author | Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> | 2007-06-16 18:04:05 +0000 |
---|---|---|
committer | Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> | 2007-06-16 18:04:05 +0000 |
commit | 0b17dd664e9dbacd04092384f79f0455e0d2741c (patch) | |
tree | 3635c1507ef364c4cc9cc8ba5bac55dd48ac839a | |
parent | bbf7b2ed167a462eaca5396130bc5d48b0628f1d (diff) | |
download | crosstool-ng-0b17dd664e9dbacd04092384f79f0455e0d2741c.tar.gz crosstool-ng-0b17dd664e9dbacd04092384f79f0455e0d2741c.tar.bz2 crosstool-ng-0b17dd664e9dbacd04092384f79f0455e0d2741c.zip |
When searching a matching extension for a file, also check for the empty extension.
-rw-r--r-- | scripts/functions | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/scripts/functions b/scripts/functions index 6b26d120..e14cf35c 100644 --- a/scripts/functions +++ b/scripts/functions @@ -244,7 +244,10 @@ CT_GetFileExtension() { local got_it=1 CT_Pushd "${CT_TARBALLS_DIR}" - for ext in .tar.gz .tar.bz2 .tgz .tar; do + # we need to also check for an empty extension for those very + # peculiar components that don't have one (such as sstrip from + # buildroot). + for ext in .tar.gz .tar.bz2 .tgz .tar ''; do if [ -f "${file}${ext}" ]; then echo "${ext}" got_it=0 |