diff options
author | Bryan Hundven <bryanhundven@gmail.com> | 2016-02-19 01:24:19 -0800 |
---|---|---|
committer | Bryan Hundven <bryanhundven@gmail.com> | 2016-02-19 01:24:19 -0800 |
commit | a9e5d4a12df065059deaa79dd814eeadb77174a7 (patch) | |
tree | 678e4f861211ce0eac6f7d1b01c63203442b24a9 /scripts/functions | |
parent | 8460611d5f28c9b4d8e1533238f048119a1f4a63 (diff) | |
download | crosstool-ng-a9e5d4a12df065059deaa79dd814eeadb77174a7.tar.gz crosstool-ng-a9e5d4a12df065059deaa79dd814eeadb77174a7.tar.bz2 crosstool-ng-a9e5d4a12df065059deaa79dd814eeadb77174a7.zip |
functions: use 'ln -sf' for softlinks
I should have just used ln -sf when I rewrote the custom locations
change. BSD based systems don't have 'cp -s', so switch to using 'ln
-sf'.
Signed-off-by: Bryan Hundven <bryanhundven@gmail.com>
Diffstat (limited to 'scripts/functions')
-rw-r--r-- | scripts/functions | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/functions b/scripts/functions index 8a803bf4..70c1ba61 100644 --- a/scripts/functions +++ b/scripts/functions @@ -671,7 +671,7 @@ CT_GetCustom() { elif [ "${component_location_type}" = "dir" ]; then CT_DoLog EXTRA "Got '${component_location}' from custom location" [ ! -d "${CT_SRC_DIR}/${component_name}-${component_version}" ] && \ - CT_DoExecLog DEBUG cp -as "${component_location}" \ + CT_DoExecLog DEBUG ln -sf "${component_location}" \ "${CT_SRC_DIR}/${component_name}-${component_version}" # Don't try to extract from source directory, it's extracted! |