Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
nvidia_linux-4.8_rc2: Put modules in correct directory
Adapt the script to take the extra version into account, and put the modules into the correct directory. * before: /usr/share/nvidia/kernel/4.8.0.mx64.95 * after: /usr/share/nvidia/kernel/4.8.0-rc2.mx64.95 Here are some examples used for testing. ``` $ test=$(beeversion --format "%V.mx64.%r" linux-4.8_rc2-95.x86_64); if [[ $test =~ ^([0-9]+\.[0-9]+)_?(.*)(\.mx64.*) ]]; then echo "${BASH_REMATCH[1]}.0-${BASH_REMATCH[2]}${BASH_REMATCH[3]}"; fi 4.8.0-rc2.mx64.95 test=$(beeversion --format "%V.mx64.%r" linux-4.8-95.x86_64); if [[ $test =~ ^([0-9]+\.[0-9]+)_?(.*)(\.mx64.*) ]]; then echo "${BASH_REMATCH[1]}.0-${BASH_REMATCH[2]}${BASH_REMATCH[3]}"; fi 4.8.0-.mx64.95 $ test=$(beeversion --format "%V.mx64.%r" linux-4.8_rc2-95.x86_64); if [[ $test =~ ^([0-9]+\.[0-9]+)(_?.*)(\.mx64.*) ]]; then echo "${BASH_REMATCH[1]}.0${BASH_REMATCH[2]}${BASH_REMATCH[3]}"; fi 4.8.0_rc2.mx64.95 $ test=$(beeversion --format "%V.mx64.%r" linux-4.8-95.x86_64); if [[ $test =~ ^([0-9]+\.[0-9]+)(_?.*)(\.mx64.*) ]]; then echo "${BASH_REMATCH[1]}.0${BASH_REMATCH[2]}${BASH_REMATCH[3]}"; fi 4.8.0.mx64.95 ``` As you can see, it currently doesn’t work, when the package has no extra version.
- Loading branch information