2a08691cf3
Signed-off-by: Stephen Gallagher <sgallagh@redhat.com>
15 lines
349 B
Bash
Executable File
15 lines
349 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# Get the version from the default Node.js
|
|
full_version=$(/usr/bin/node --version)
|
|
|
|
# Trim off the leading 'v'
|
|
full_version=${full_version:1}
|
|
|
|
# Get the different version components
|
|
split_version=(${full_version//\./ })
|
|
|
|
# Write out the Virtual Requires
|
|
echo "nodejs(abi${split_version[0]}) >= ${split_version[0]}.${split_version[1]}"
|
|
|