3 # Change the version recorded in src/clinfo.c and man/clinfo.1 to
4 # the current highest OpenCL supported standard followed by current
12 test -n "$(git status --porcelain | grep -v '??')" && abort "Uncommited changes, aborting"
14 DATE=$(date +%Y-%m-%d)
15 MAJOR=$(awk '/^OpenCL/ { print $NF ; quit }' man/clinfo.1)
16 SUBV=$(date +%y.%m.%d)
20 sed -i -e "/clinfo version/ s/version \S\+\"/version $VERSION\"/" src/clinfo.c
21 sed -i -e "1 s/\".\+$/\"$DATE\" \"clinfo $VERSION\"/" man/clinfo.1
23 git commit -m "Version $VERSION" -e -a && git tag $VERSION