Last change
on this file since 910 was
910,
checked in by kbut, 5 years ago
|
Script now set version correctly
|
-
Property svn:executable set to
*
|
File size:
474 bytes
|
Line | |
---|
1 | #!/bin/bash |
---|
2 | DATE=$(date +%y%m%d) |
---|
3 | VERSION="16.${DATE}" |
---|
4 | LASTVERSION=$(dpkg-parsechangelog --show-field Version) |
---|
5 | rc=0 |
---|
6 | dpkg --compare-versions $VERSION gt $LASTVERSION && rc=1 |
---|
7 | if [ "$rc" = "0" ]; then |
---|
8 | SUBVERSION=${LASTVERSION##*.} |
---|
9 | if [ "$LASTVERSION" = "$VERSION" ]; then |
---|
10 | VERSION="${VERSION}.1" |
---|
11 | else |
---|
12 | VERSION="${VERSION}.$(( SUBVERSION + 1 ))" |
---|
13 | fi |
---|
14 | fi |
---|
15 | DEBFULLNAME="LliureX Team" DEBEMAIL="lliurex@gva.es" dch -v ${VERSION} --distribution xenial "Mirror updated at ${DATE}" |
---|
Note: See
TracBrowser
for help on using the repository browser.