File: setversion

package info (click to toggle)
caspar 20180315-2
  • links: PTS
  • area: main
  • in suites: buster
  • size: 848 kB
  • sloc: sh: 566; makefile: 124
file content (22 lines) | stat: -rwxr-xr-x 817 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# This file is maintained at http://git.mdcc.cx/caspar

# This script is free software; you can distribute it and/or modify it
# under the terms of the GNU GPL.  See the file COPYING.

##if test -e stamp.day -a -e stamp.month -a -e stamp.year -a -e VERSION
##then
    # user has overwritten autogenerated version
    date=$( echo -n $(cat VERSION) )
    # echo 'm4_define([CASPAR_VERSION], ['$date'])' > VERSION.m4
    echo 'm4_define([AD1_VERSION], ['`date +%Y%m%d`'])' > VERSION.m4
##else
    echo 'm4_define([AD1_VERSION], ['`date +%Y%m%d`'])' > VERSION.m4
    # echo 'm4_define([CASPAR_VERSION], ['`date +%Y%m%d`'])' > VERSION.m4
    # compatibility with other mdcc.cx/ad1810 packages
    date +%Y%m%d > VERSION

    # zoem stuff
    date +%e > stamp.day
    date +%b > stamp.month
    date +%Y > stamp.year
##fi