Merge lp:~karni/telegram-app/telegram-app-scripts into lp:telegram-app/app-dev

Proposed by Michał Karnicki
Status: Merged
Merged at revision: 58
Proposed branch: lp:~karni/telegram-app/telegram-app-scripts
Merge into: lp:telegram-app/app-dev
Diff against target: 68 lines (+43/-0)
5 files modified
scripts/applog.sh (+17/-0)
scripts/delete-db.sh (+8/-0)
scripts/inspect-db.sh (+10/-0)
scripts/show-config.sh (+5/-0)
scripts/unity8log.sh (+3/-0)
To merge this branch: bzr merge lp:~karni/telegram-app/telegram-app-scripts
Reviewer Review Type Date Requested Status
Roberto Mier Escandon (community) Approve
Review via email: mp+234507@code.launchpad.net

Description of the change

Some useful scripts.

To post a comment you must log in.
57. By Michał Karnicki

No need to go back.

Revision history for this message
Roberto Mier Escandon (rmescandon) wrote :

LGTM

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== added directory 'scripts'
2=== added file 'scripts/applog.sh'
3--- scripts/applog.sh 1970-01-01 00:00:00 +0000
4+++ scripts/applog.sh 2014-09-12 16:29:52 +0000
5@@ -0,0 +1,17 @@
6+#!/bin/bash
7+
8+if [ "$1" == "clean" ]; then
9+ adb shell rm "/home/phablet/.cache/upstart/application-click-com.ubuntu.telegram*.log"
10+ shift
11+fi
12+
13+version="*"
14+if [ "$#" -gt 0 ]; then
15+ version=$1
16+ shift
17+fi
18+
19+log="/home/phablet/.cache/upstart/application-click-com.ubuntu.telegram_telegram_"$version".log"
20+
21+adb shell touch "$log"
22+adb shell tail -f "$log"
23
24=== added file 'scripts/delete-db.sh'
25--- scripts/delete-db.sh 1970-01-01 00:00:00 +0000
26+++ scripts/delete-db.sh 2014-09-12 16:29:52 +0000
27@@ -0,0 +1,8 @@
28+#!/bin/bash
29+
30+if [ "$#" -ne 1 ]; then
31+ echo "Usage: $0 phone_number"
32+ exit -1
33+fi
34+
35+adb shell rm -f "/home/phablet/.config/com.ubuntu.telegram/$1/database/telegram.sqlite"
36
37=== added file 'scripts/inspect-db.sh'
38--- scripts/inspect-db.sh 1970-01-01 00:00:00 +0000
39+++ scripts/inspect-db.sh 2014-09-12 16:29:52 +0000
40@@ -0,0 +1,10 @@
41+#!/bin/bash
42+
43+if [ "$#" -ne 1 ]; then
44+ echo "Usage: $0 phone_number"
45+ exit -1
46+fi
47+
48+cd /tmp
49+adb pull "/home/phablet/.config/com.ubuntu.telegram/$1/database/telegram.sqlite"
50+sqlite3 telegram.sqlite
51
52=== added file 'scripts/show-config.sh'
53--- scripts/show-config.sh 1970-01-01 00:00:00 +0000
54+++ scripts/show-config.sh 2014-09-12 16:29:52 +0000
55@@ -0,0 +1,5 @@
56+#!/bin/bash
57+
58+cd /tmp
59+adb pull "/home/phablet/.config/com.ubuntu.telegram/com.ubuntu.telegram.conf"
60+cat "com.ubuntu.telegram.conf"
61
62=== added file 'scripts/unity8log.sh'
63--- scripts/unity8log.sh 1970-01-01 00:00:00 +0000
64+++ scripts/unity8log.sh 2014-09-12 16:29:52 +0000
65@@ -0,0 +1,3 @@
66+#!/bin/bash
67+
68+adb shell tail -f "/home/phablet/.cache/upstart/unity8.log"

Subscribers

People subscribed via source and target branches