File: create_version_file.sh

package info (click to toggle)
libguytools2 2.0.5-3
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 288 kB
  • sloc: cpp: 2,615; ansic: 288; makefile: 45; sh: 4
file content (6 lines) | stat: -rwxr-xr-x 227 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
#!/bin/bash
TOOLS_VERSION=`cat changelog debian/changelog 2>/dev/null | head -qn 1 `
TOOLS_VERSION="${TOOLS_VERSION%%)*}"
TOOLS_VERSION="${TOOLS_VERSION##*(}"
echo "VERSION = ${TOOLS_VERSION%%-*}" >libguytools_version.pro.inc