File: compileinfo.sh

package info (click to toggle)
guymager 0.8.3-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 1,684 kB
  • ctags: 2,463
  • sloc: cpp: 17,137; makefile: 24; sh: 17
file content (11 lines) | stat: -rwxr-xr-x 544 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
#!/bin/bash

echo '// Automatically generated file. See project file and compileinfo.sh for further information.'
date --utc '+const char *pCompileInfoTimestamp = "%Y-%m-%d-%H.%M.%S";' -d "$(dpkg-parsechangelog -S Date)"
head -qn 1 debian/changelog 2>/dev/null | awk '{
                                    Version = $2
                                    gsub ("\\(", "", Version)
                                    gsub ("\\)", "", Version)
                                    print "const char *pCompileInfoVersion   = \"" Version "\";"}'