make changes to snapshot tool

el9
Leigh Scott 11 years ago
parent 8fb8df8d27
commit c3824ade6a

2
.gitignore vendored

@ -1,3 +1 @@
NVIDIA-Linux-armv7l-gnueabihf-337.25.run
NVIDIA-Linux-x86-337.25.run
NVIDIA-Linux-x86_64-337.25.run NVIDIA-Linux-x86_64-337.25.run

@ -16,10 +16,6 @@ nvspec=$(ls ${pwd}/xorg-x11-drv-nvidia*.spec)
version=$(grep ^Version: ${nvspec} | awk '{print $2}') version=$(grep ^Version: ${nvspec} | awk '{print $2}')
arches="$(grep ^ExclusiveArch: ${nvspec} | awk '{print $2,$3,$4}')" arches="$(grep ^ExclusiveArch: ${nvspec} | awk '{print $2,$3,$4}')"
#Avoid to re-create an existing tarball
[ -e ${pwd}/nvidia-kmod-data-${version}.tar.xz ] && exit 0
for arch in ${arches} ; do for arch in ${arches} ; do
nvarch=${arch} nvarch=${arch}
[ ${arch} == i686 ] && nvarch=x86 [ ${arch} == i686 ] && nvarch=x86
@ -27,8 +23,5 @@ for arch in ${arches} ; do
if [ ! -e NVIDIA-Linux-${nvarch}-${version}.run ] ; then if [ ! -e NVIDIA-Linux-${nvarch}-${version}.run ] ; then
spectool --gf -S ${nvspec} spectool --gf -S ${nvspec}
fi fi
sh NVIDIA-Linux-${nvarch}-${version}.run --extract-only --target nvidiapkg-${arch}
done done
tar Jcf nvidia-kmod-data-${version}.tar.xz nvidiapkg-*/LICENSE nvidiapkg-*/kernel

@ -1,3 +1 @@
37ac863b8cd5fb902f4252704e3b210d NVIDIA-Linux-armv7l-gnueabihf-337.25.run
2a217632ced8952e21000a51065f85b8 NVIDIA-Linux-x86-337.25.run
25a93e4f9e1888142082f4e1046eaa11 NVIDIA-Linux-x86_64-337.25.run 25a93e4f9e1888142082f4e1046eaa11 NVIDIA-Linux-x86_64-337.25.run

Loading…
Cancel
Save