File: version.sh

package info (click to toggle)
quickplot 0.4.3-1
  • links: PTS
  • area: main
  • in suites: potato
  • size: 352 kB
  • ctags: 276
  • sloc: ansic: 4,124; makefile: 124; sh: 12
file content (15 lines) | stat: -rw-r--r-- 283 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#! /bin/sh

who=`whoami`
host=`hostname`
echo "/* DO NOT EDIT THIS FILE ***" 
echo " * It is generated from make"
echo " * with the script: $0 $*"
echo " */"
printf "#define _VERSION \"$1\""
echo
printf "#define _HOSTNAME  \"$host\""
echo
printf "#define _USERNAME  \"$who\""
echo
#