-
Notifications
You must be signed in to change notification settings - Fork 1
/
stripsrc.pl
29 lines (25 loc) · 1.18 KB
/
stripsrc.pl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
use strict;
use warnings;
use File::Path;
rmtree "src/solaris" or die $!;
unlink glob "src/*.*" or die $!;
rmtree "src/google/protobuf/compiler/cpp" or die $!;
rmtree "src/google/protobuf/compiler/csharp" or die $!;
rmtree "src/google/protobuf/compiler/java" or die $!;
#rmtree "src/google/protobuf/compiler/javanano" or die $!;
rmtree "src/google/protobuf/compiler/js" or die $!;
rmtree "src/google/protobuf/compiler/objectivec" or die $!;
rmtree "src/google/protobuf/compiler/php" or die $!;
rmtree "src/google/protobuf/compiler/python" or die $!;
rmtree "src/google/protobuf/compiler/ruby" or die $!;
rmtree "src/google/protobuf/io" or die $!;
rmtree "src/google/protobuf/stubs" or die $!;
rmtree "src/google/protobuf/testing" or die $!;
unlink glob "src/google/protobuf/*.h" or die $!;
unlink glob "src/google/protobuf/*.cc" or die $!;
unlink glob "src/google/protobuf/compiler/*.h" or die $!;
unlink glob "src/google/protobuf/compiler/*.cc" or die $!;
unlink glob "src/google/protobuf/util/*.h" or die $!;
unlink glob "src/google/protobuf/util/*.cc" or die $!;
unlink glob "src/google/protobuf/util/internal/*.h" or die $!;
unlink glob "src/google/protobuf/util/internal/*.cc" or die $!;