summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorJustin M. Forbes <jforbes@redhat.com>2016-12-29 09:29:39 -0600
committerJustin M. Forbes <jforbes@redhat.com>2016-12-29 09:29:39 -0600
commit6ff43e367a1ce69250cbd6e089c825de8d869177 (patch)
tree735035ec2cee8cbc1e0a59de2370eb3bec269ceb /scripts
parent12a945943d7c7f2a3c4d848683cc9bb76b6fe7af (diff)
downloadkernel-6ff43e367a1ce69250cbd6e089c825de8d869177.tar.gz
kernel-6ff43e367a1ce69250cbd6e089c825de8d869177.tar.xz
kernel-6ff43e367a1ce69250cbd6e089c825de8d869177.zip
Linux v4.10-rc1-17-g2d706e7
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/generate-git-snapshot.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/generate-git-snapshot.sh b/scripts/generate-git-snapshot.sh
index 972fd2148..242200ef6 100755
--- a/scripts/generate-git-snapshot.sh
+++ b/scripts/generate-git-snapshot.sh
@@ -16,11 +16,11 @@ if [ ! -d "$LINUX_GIT" ]; then
exit 1
fi
-VER=$(grep patch sources | head -n1 | awk '{ print $2 }' | sed s/patch-// | sed s/-git.*// | sed s/.xz//)
+VER=$(grep patch sources | head -n1 | awk '{ print $2 }' | sed s/patch-// | sed s/-git.*// | sed s/.xz// | sed s/[\(\)]//g)
if [ -z "$VER" ] ;
then
- VER=$(grep linux sources | head -1 | awk '{ print $2 }' | sed s/linux-// | sed s/.tar.xz//)
+ VER=$(grep linux sources | head -1 | awk '{ print $2 }' | sed s/linux-// | sed s/.tar.xz// | sed s/[\(\)]//g)
fi
OLDGIT=$(grep gitrev kernel.spec | head -n1 | sed s/%define\ gitrev\ //)