Skip to content

Commit c361cd8

Browse files
committed
Added Legacy version by esbat for better changelogs.
1 parent 4f4c3a1 commit c361cd8

File tree

17 files changed

+2521
-0
lines changed

17 files changed

+2521
-0
lines changed

LEGACY/data/xdotoolgui.gif

1019 Bytes
Loading

LEGACY/debian/README.Debian

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
xdotoolgui for Debian
2+
---------------------
3+
4+
<possible notes regarding this package - if none, delete this file>
5+
6+
-- esbat <esbatmop@gmail.com> Mon, 22 Feb 2010 16:03:52 +0800

LEGACY/debian/changelog

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
xdotoolgui (1.2-1) unstable; urgency=low
2+
3+
* Initial release (Closes: #nnnn) <nnnn is the bug number of your ITP>
4+
5+
-- esbat <esbatmop@gmail.com> Sun, 28 Feb 2010 20:57:10 +0800

LEGACY/debian/compat

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
7

LEGACY/debian/control

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
Source: xdotoolgui
2+
Section: games
3+
Priority: optional
4+
Maintainer: esbat <esbatmop@gmail.com>
5+
Build-Depends: debhelper (>= 7)
6+
Standards-Version: 3.8.0
7+
Homepage: http://hi.baidu.com/esbat/blog/item/fba4a5cc98df491b01e928e8.html
8+
9+
Package: xdotoolgui
10+
Architecture: any
11+
Depends: python(>=2.6),xdotool,python-gtk2
12+
Description: A gui for xdotool. Make it esay to used in gnome.
13+
<insert long description, indented with spaces>

LEGACY/debian/copyright

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
This package was debianized by:
2+
3+
esbat <esbatmop@gmail.com> on Mon, 22 Feb 2010 16:03:52 +0800
4+
5+
It was downloaded from:
6+
7+
<url://example.com>
8+
9+
Upstream Author(s):
10+
11+
<put author's name and email here>
12+
<likewise for another author>
13+
14+
Copyright:
15+
16+
<Copyright (C) YYYY Firtname Lastname>
17+
<likewise for another author>
18+
19+
License:
20+
21+
### SELECT: ###
22+
This package is free software; you can redistribute it and/or modify
23+
it under the terms of the GNU General Public License as published by
24+
the Free Software Foundation; either version 2 of the License, or
25+
(at your option) any later version.
26+
### OR ###
27+
This package is free software; you can redistribute it and/or modify
28+
it under the terms of the GNU General Public License version 2 as
29+
published by the Free Software Foundation.
30+
##########
31+
32+
This package is distributed in the hope that it will be useful,
33+
but WITHOUT ANY WARRANTY; without even the implied warranty of
34+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
35+
GNU General Public License for more details.
36+
37+
You should have received a copy of the GNU General Public License
38+
along with this package; if not, write to the Free Software
39+
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
40+
41+
On Debian systems, the complete text of the GNU General
42+
Public License can be found in `/usr/share/common-licenses/GPL'.
43+
44+
The Debian packaging is:
45+
46+
Copyright C) 2010, esbat <esbatmop@gmail.com>
47+
48+
and is licensed under the GPL, see above.
49+
50+
51+
# Please also look if there are files or directories which have a
52+
# different copyright/license attached and list them here.

LEGACY/debian/dirs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
usr/games
2+
usr/share/games/xdotoolgui
3+
usr/share/applications

LEGACY/debian/docs

Whitespace-only changes.

LEGACY/debian/rules

Lines changed: 98 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,98 @@
1+
#!/usr/bin/make -f
2+
# -*- makefile -*-
3+
# Sample debian/rules that uses debhelper.
4+
# This file was originally written by Joey Hess and Craig Small.
5+
# As a special exception, when this file is copied by dh-make into a
6+
# dh-make output file, you may use that output file without restriction.
7+
# This special exception was added by Craig Small in version 0.37 of dh-make.
8+
9+
# Uncomment this to turn on verbose mode.
10+
#export DH_VERBOSE=1
11+
12+
13+
14+
15+
16+
configure: configure-stamp
17+
configure-stamp:
18+
dh_testdir
19+
# Add here commands to configure the package.
20+
21+
touch configure-stamp
22+
23+
24+
build: build-stamp
25+
26+
build-stamp: configure-stamp
27+
dh_testdir
28+
29+
# Add here commands to compile the package.
30+
#$(MAKE)
31+
#docbook-to-man debian/xdotoolgui.sgml > xdotoolgui.1
32+
33+
touch build-stamp
34+
35+
clean:
36+
dh_testdir
37+
dh_testroot
38+
rm -f build-stamp configure-stamp
39+
40+
# Add here commands to clean up after the build process.
41+
#$(MAKE) clean
42+
43+
dh_clean
44+
45+
install: build
46+
dh_testdir
47+
dh_testroot
48+
dh_prep
49+
dh_installdirs
50+
51+
# Add here commands to install the package into debian/xdotoolgui.
52+
#$(MAKE) DESTDIR=$(CURDIR)/debian/xdotoolgui install
53+
mkdir -p $(CURDIR)/debian/xdotoolgui
54+
cp xdotoolgui.py $(CURDIR)/debian/xdotoolgui/usr/games/xdotoolgui.py
55+
cp runxdotool.py $(CURDIR)/debian/xdotoolgui/usr/games/runxdotool.py
56+
cp xdotoolgui.glade $(CURDIR)/debian/xdotoolgui/usr/games/xdotoolgui.glade
57+
mkdir -p $(CURDIR)/debian/xdotoolgui/usr/share/games/xdotoolgui
58+
cp -r data/ $(CURDIR)/debian/xdotoolgui/usr/share/games/xdotoolgui
59+
cp xdotoolgui.desktop $(CURDIR)/debian/xdotoolgui/usr/share/applications/
60+
sudo apt-get install xdotool
61+
62+
# Build architecture-independent files here.
63+
binary-indep: install
64+
# We have nothing to do by default.
65+
66+
# Build architecture-dependent files here.
67+
binary-arch: install
68+
dh_testdir
69+
dh_testroot
70+
dh_installchangelogs
71+
dh_installdocs
72+
dh_installexamples
73+
# dh_install
74+
# dh_installmenu
75+
# dh_installdebconf
76+
# dh_installlogrotate
77+
# dh_installemacsen
78+
# dh_installpam
79+
# dh_installmime
80+
# dh_python
81+
# dh_installinit
82+
# dh_installcron
83+
# dh_installinfo
84+
dh_installman
85+
dh_link
86+
dh_strip
87+
dh_compress
88+
dh_fixperms
89+
# dh_perl
90+
# dh_makeshlibs
91+
dh_installdeb
92+
dh_shlibdeps
93+
dh_gencontrol
94+
dh_md5sums
95+
dh_builddeb
96+
97+
binary: binary-indep binary-arch
98+
.PHONY: build clean binary-indep binary-arch binary install configure

LEGACY/runxdotool.py

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
#!/usr/bin/env python
2+
#
3+
# runxdotool.py
4+
#
5+
# Copyright 2010 esbat <esbat@esbat-laptop>
6+
#
7+
# This program is free software; you can redistribute it and/or modify
8+
# it under the terms of the GNU General Public License as published by
9+
# the Free Software Foundation; either version 2 of the License, or
10+
# (at your option) any later version.
11+
#
12+
# This program is distributed in the hope that it will be useful,
13+
# but WITHOUT ANY WARRANTY; without even the implied warranty of
14+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15+
# GNU General Public License for more details.
16+
#
17+
# You should have received a copy of the GNU General Public License
18+
# along with this program; if not, write to the Free Software
19+
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
20+
# MA 02110-1301, USA.
21+
import gtk, subprocess, time, string
22+
def AddCommandToRun(CommandPath):
23+
print CommandPath
24+
afile = open(CommandPath)
25+
ParamsForCommand = afile.read().split("\n")
26+
for s in ParamsForCommand:
27+
EachCommand = s.split(" ")
28+
if EachCommand[0] == 'move':
29+
subprocess.check_call(["xdotool","mousemove",EachCommand[3],EachCommand[4]])
30+
if EachCommand[0] == 'delay':
31+
time.sleep(string.atof(EachCommand[1]))
32+
if EachCommand[0] == 'click':
33+
if EachCommand[2] == 'left':
34+
for i in EachCommand[5]:
35+
subprocess.check_call(["xdotool","click","1"])
36+
time.sleep(string.atof(EachCommand[9]))
37+
if EachCommand[2] == 'middle':
38+
for i in EachCommand[5]:
39+
subprocess.check_call(["xdotool","click","2"])
40+
time.sleep(string.atof(EachCommand[9]))
41+
if EachCommand[2] == 'right':
42+
for i in EachCommand[5]:
43+
subprocess.check_call(["xdotool","click","3"])
44+
time.sleep(string.atof(EachCommand[9]))
45+
if EachCommand[0] == 'type':
46+
for i in EachCommand[5]:
47+
subprocess.check_call(["xdotool","key",EachCommand[3]])
48+
time.sleep(string.atof(EachCommand[9]))
49+
return 0
50+
51+
52+
def main():
53+
54+
return 0
55+
56+
if __name__ == '__main__': main()

0 commit comments

Comments
 (0)