File: setversion

package info (click to toggle)
aephea 10.008-2
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 984 kB
  • sloc: sh: 774; makefile: 62
file content (28 lines) | stat: -rwxr-xr-x 609 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#!/bin/sh -e

# $Id: setversion,v 1.14 2006-03-21 11:10:01 flux Exp $
# called in bootstrap

# alias date='date -d "2007-11-29"'

# be verbose
set -x

TAG=1.002

VERSION=`date '+%y-%j'`
echo $VERSION > VERSION

cat > configure.ac <<EOT
# configure.ac - generated from configure.ac.in by setversion. do not edit
# configure.ac, but edit the master.
EOT

sed "s/setversion_VERSION/$VERSION/" configure.ac.in >> configure.ac

echo $TAG      >  mac/doc/stamp.tag
date '+%y-%j'  >  mac/doc/stamp.stamp
date '+%e'     >  mac/doc/stamp.day
date '+%b'     >  mac/doc/stamp.month
date '+%Y'     >  mac/doc/stamp.year