File: create_version_file.sh

package info (click to toggle)
libguytools2 2.1.0-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, sid
  • size: 296 kB
  • sloc: cpp: 2,675; ansic: 288; makefile: 47; sh: 4
file content (6 lines) | stat: -rwxr-xr-x 227 bytes parent folder | download | duplicates (3)
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