Changeset 00eeffa in mainline for meson/part/exports/copy-export.sh


Ignore:
Timestamp:
2025-04-25T15:43:19Z (2 weeks ago)
Author:
Matěj Volf <git@…>
Children:
33c08929
Parents:
715ae00b
git-author:
Matěj Volf <git@…> (2025-04-25 15:41:22)
git-committer:
Matěj Volf <git@…> (2025-04-25 15:43:19)
Message:

revert to major.minor versions, determine unversioned name automatically

File:
1 edited

Legend:

Unmodified
Added
Removed
  • meson/part/exports/copy-export.sh

    r715ae00b r00eeffa  
    4747        sharedlib)
    4848            filename="$(basename "$2")"
     49            major_versioned_name="$3"
     50            # strip the last `.123` part
     51            unversioned_name="$(echo "$major_versioned_name" | rev | cut -d. -f2- | rev)"
    4952            cp -L "$2" "${target_dir}/lib/$filename"
    50             ln -s "$filename" "${target_dir}/lib/$3"
     53            ln -s "$filename" "${target_dir}/lib/$major_versioned_name"
     54            ln -s "$filename" "${target_dir}/lib/$unversioned_name"
    5155            ;;
    5256        include)
Note: See TracChangeset for help on using the changeset viewer.