2024-07-24 01:06:18 +02:00
|
|
|
#! /bin/bash
|
|
|
|
|
|
|
|
set -e
|
|
|
|
|
|
|
|
source ./version.sh
|
|
|
|
|
|
|
|
mv ./nvidia-graphics-drivers-#DRIVER_VERSION_MAJOR# ./nvidia-graphics-drivers-"$DRIVER_VERSION_MAJOR"
|
|
|
|
|
|
|
|
for f in $(find ./nvidia-graphics-drivers-"$DRIVER_VERSION_MAJOR" -type f)
|
|
|
|
do
|
|
|
|
mv "$f" "$(echo "$f" | sed s/#DRIVER_VERSION_MAJOR#/"$DRIVER_VERSION_MAJOR"/)" || true
|
|
|
|
done
|
|
|
|
|
|
|
|
for f in $(find ./nvidia-graphics-drivers-"$DRIVER_VERSION_MAJOR" -type f)
|
|
|
|
do
|
|
|
|
sed -i s/#DRIVER_VERSION_MAJOR#/"$DRIVER_VERSION_MAJOR"/g "$f" || true
|
|
|
|
sed -i s/#DRIVER_VERSION_FULL#/"$DRIVER_VERSION_FULL"/g "$f" || true
|
|
|
|
sed -i s/#DRIVER_ARCH#/"$DRIVER_ARCH"/g "$f" || true
|
|
|
|
done
|
2024-07-24 02:51:47 +02:00
|
|
|
|
|
|
|
rm -f ./create-from-template.sh
|