Skip to content

Latest commit

 

History

History
executable file
·
11 lines (9 loc) · 278 Bytes

updateversion.sh

File metadata and controls

executable file
·
11 lines (9 loc) · 278 Bytes
 
Feb 20, 2013
Feb 20, 2013
1
2
3
4
5
6
7
8
9
10
11
#!/bin/bash
changelog="qtc_packaging/debian_harmattan/changelog"
ver=`cat $changelog | sed -n -e '1p'| cut -d ' ' -f 2 | tr -d "()" | cut -d '-' -f 1`
echo -e \
"#ifndef VERSION_H\n"\
"#define VERSION_H\n"\
"const QString PROGRAM_VERSION=\"$ver\";\n"\
"#endif\n"\
> version.h