source: llx-pool-tools/trunk/fuentes/install-files/usr/sbin/llx-pool-check-version-stamp @ 1425

Last change on this file since 1425 was 1425, checked in by hectorgh, 4 years ago

adding check stamp binary

  • Property svn:executable set to *
File size: 885 bytes
Line 
1#!/bin/sh
2
3TMP_DIR=$(mktemp -d)
4CURRENT_DIR=$(pwd)
5SVN_PATH="https://svn.lliurex.net/xenial/lliurex-version-timestamp/"
6MIRROR="/srv/nfs/lliurex1609/xenial"
7
8echo "* Downloading lliurex-version-timestamp..."
9
10cd $TMP_DIR
11svn co $SVN_PATH
12
13cd lliurex-version-timestamp/trunk/fuentes
14
15echo "* Updating changelog..."
16
17src/updatepackage.sh
18
19svn st
20svn ci -m "updating pkg" 
21RC=$?
22
23echo ""
24
25if [ "$RC" = "0" ]; then
26        echo "* Building lliurex-version-timestamp package..."
27        svn-buildpackage -us -uc -sa -rfakeroot 1>/dev/null 2>/dev/null
28        ls -la ../build-area/
29        LASTVERSION=$(dpkg-parsechangelog --show-field Version)
30        echo $LASTVERSION
31        DEB_FILE="../build-area/lliurex-version-timestamp_${LASTVERSION}_all.deb"
32
33        echo "* Including deb to mirror... "
34        sudo reprepro -b $MIRROR includedeb xenial $DEB_FILE
35       
36
37
38else
39        echo "Nothing to do. Exiting"
40        exit 1
41fi
42
43cd $CURRENT_DIR
44rm -rf $TMP_DIR
45
Note: See TracBrowser for help on using the repository browser.