Skip to content

Commit 1bf683f

Browse files
author
Jackson Kearl
committed
added hub version to log initial line data
1 parent 5afd757 commit 1bf683f

File tree

2 files changed

+15
-2
lines changed

2 files changed

+15
-2
lines changed

run_cordova.sh

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,20 @@
11
#!/bin/sh
22
set -e # stop on errors
33
cd www/js
4+
5+
# add a variable to our index containing the git hash
6+
cp index.js noGitIndex.js
7+
echo window.gitRevision = \"$(git rev-parse --short HEAD)\"\; | cat - index.js > temp && mv temp index.js
8+
49
coffee --compile mm.coffee
510
browserify index.js -o bundle.js
611
cd ../..
712
cordova run --device
8-
rm www/js/bundle.js
9-
rm www/js/mm.js
13+
14+
cd www/js
15+
16+
rm bundle.js
17+
rm mm.js
18+
19+
# forget our temporary index
20+
mv noGitIndex.js index.js

www/js/index.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
12
require('q');
23
var qbluetoothle = require('./qbluetoothle');
34
var Badge = require('./badge');
@@ -254,6 +255,7 @@ function Meeting(group, members, type, moderator, description, location) {
254255
'uuid': this.uuid,
255256
'start_time':new Date()/1000,
256257
'log_version':"2.0",
258+
'hub_version':window.gitRevision,
257259
'moderator':this.moderator,
258260
'location':this.location,
259261
'description': this.description.replace(/\s\s+/g, ' '),

0 commit comments

Comments
 (0)