summaryrefslogtreecommitdiff
path: root/bin/lolcat
blob: 27bb32624e084efafeac07785d3f9001efe41d63 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/usr/bin/perl -w

use strict;
use IO::Handle;

die "Usage: $0 identifier\n" .
    "(identifier is for example org.libreoffice)" unless $#ARGV == 0;

my $id = $ARGV[0];

open (LOGCAT, "adb logcat |") || die "Could not open pipe from adb logcat";
my $pid = '';

while (<LOGCAT>) {
  if (m!^I/ActivityManager\( *\d+\): Start proc $id for activity .*: pid=(\d+)!) {
    $pid = $1;
  } elsif (m!^[EIWD]/[^(]+\( *$pid\)!) {
    print $_;
    STDOUT->flush();
  }
}
__ on WindowsStephan Bergmann 2022-04-12use gb_DEBUGINFO_FLAGS consistently in gbuild ExternalProject'sLuboš Luňák 2022-01-31externals: always provide platform configure flagsJan-Marek Glogowski 2022-01-05Update libassuan to 2.5.5Thorsten Behrens 2021-12-28Fix autoconf>=2.70 gcc-wrapper breakageThorsten Behrens 2021-05-05WASM: add initial support for Emscripten cross buildJan-Marek Glogowski 2020-09-11WIN cross: fix gpg-related library buildsJan-Marek Glogowski 2020-06-13gpg4libre: update gpgme, libassuan and libgpg-errorThorsten Behrens 2020-02-16GBUILD_TRACE, support for finding out where the build time is spentLuboš Luňák 2018-05-04Removed executable permission on data filesAndrea Gelmini 2018-03-08Fix external/libassuan Linux RPATHStephan Bergmann 2017-12-11libassuan: upgrade to release 2.5.1Thorsten Behrens 2017-12-11external: fix host setup for gpgme and libassuanThorsten Behrens 2017-12-08fix fuzzer buildCaolán McNamara 2017-12-05tdf#114086: Fix macOS paths of external GPG librariesStephan Bergmann 2017-12-04gpg4libre: pass windows arch down to windresThorsten Behrens 2017-12-04gpg4libre: remove silly afxres.h / MFC dependency from gpgmeThorsten Behrens 2017-11-28Use Executable_cpp instead of default gcc as preprocessor for windresStephan Bergmann 2017-11-27Missing --tag=RCStephan Bergmann 2017-11-27Pass $(verbose) into ExternalProject_libassuanStephan Bergmann 2017-11-25libassuan: cleanup patchsetThorsten Behrens 2017-11-24Pass $(MAKE) into external/libassuanStephan Bergmann 2017-11-22gpg4libre: build libassuan natively on windowsDavid Ostrovsky 2017-10-26fix windows packagingThorsten Behrens 2017-10-26gpg4libre: enable OpenPGP support for MacThorsten Behrens 2017-03-05gpg4libre: get rpath right for gpgmeThorsten Behrens 2017-02-17gpg4libre: fix gpgme build dependenciesThorsten Behrens 2017-02-17gpg4libre: fix build for older autoconf/automake versionsThorsten Behrens 2017-02-16gpg4libre: Build internal libgpg-error, libassuan and gpgme(pp)Katarina Behrens 2017-02-03gpg4libre: Download external gpgme and dependent libsKatarina Behrens