-
Notifications
You must be signed in to change notification settings - Fork 129
/
build.xml
32 lines (26 loc) · 982 Bytes
/
build.xml
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
30
31
32
<?xml version="1.0" encoding="UTF-8"?>
<project name="helloworld" basedir="." default="fedora">
<property name="src.dir" value="."></property>
<property name="dest.name" value="51-android.fedora.rules"></property>
<target name="clean" >
<delete>
<fileset dir="${src.dir}" >
<include name="${dest.name}" />
</fileset>
</delete>
</target>
<target name="fedora" description="Generate 51-android.rules for fedora, centos and redhat">
<copy todir="${src.dir}" filtering="true">
<fileset dir="${src.dir}" >
<include name="51-android.rules" />
</fileset>
<filterset begintoken="MODE" endtoken=""plugdev"">
<filter token="="0660", GROUP=" value="TAG+="systemd", ENV{SYSTEMD_WANTS}="adb.service""/>
</filterset>
<filterset begintoken="ATTR" endtoken="{idVendor}">
<filter token="S" value="ATTR{idVendor}"/>
</filterset>
<globmapper from="51-android.rules" to="${dest.name}"/>
</copy>
</target>
</project>