-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added Legacy version by esbat for better changelogs.
- Loading branch information
Showing
17 changed files
with
2,521 additions
and
0 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
xdotoolgui for Debian | ||
--------------------- | ||
|
||
<possible notes regarding this package - if none, delete this file> | ||
|
||
-- esbat <esbatmop@gmail.com> Mon, 22 Feb 2010 16:03:52 +0800 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
xdotoolgui (1.2-1) unstable; urgency=low | ||
|
||
* Initial release (Closes: #nnnn) <nnnn is the bug number of your ITP> | ||
|
||
-- esbat <esbatmop@gmail.com> Sun, 28 Feb 2010 20:57:10 +0800 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
7 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
Source: xdotoolgui | ||
Section: games | ||
Priority: optional | ||
Maintainer: esbat <esbatmop@gmail.com> | ||
Build-Depends: debhelper (>= 7) | ||
Standards-Version: 3.8.0 | ||
Homepage: http://hi.baidu.com/esbat/blog/item/fba4a5cc98df491b01e928e8.html | ||
|
||
Package: xdotoolgui | ||
Architecture: any | ||
Depends: python(>=2.6),xdotool,python-gtk2 | ||
Description: A gui for xdotool. Make it esay to used in gnome. | ||
<insert long description, indented with spaces> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
This package was debianized by: | ||
|
||
esbat <esbatmop@gmail.com> on Mon, 22 Feb 2010 16:03:52 +0800 | ||
|
||
It was downloaded from: | ||
|
||
<url://example.com> | ||
|
||
Upstream Author(s): | ||
|
||
<put author's name and email here> | ||
<likewise for another author> | ||
|
||
Copyright: | ||
|
||
<Copyright (C) YYYY Firtname Lastname> | ||
<likewise for another author> | ||
|
||
License: | ||
|
||
### SELECT: ### | ||
This package is free software; you can redistribute it and/or modify | ||
it under the terms of the GNU General Public License as published by | ||
the Free Software Foundation; either version 2 of the License, or | ||
(at your option) any later version. | ||
### OR ### | ||
This package is free software; you can redistribute it and/or modify | ||
it under the terms of the GNU General Public License version 2 as | ||
published by the Free Software Foundation. | ||
########## | ||
|
||
This package is distributed in the hope that it will be useful, | ||
but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
GNU General Public License for more details. | ||
|
||
You should have received a copy of the GNU General Public License | ||
along with this package; if not, write to the Free Software | ||
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA | ||
|
||
On Debian systems, the complete text of the GNU General | ||
Public License can be found in `/usr/share/common-licenses/GPL'. | ||
|
||
The Debian packaging is: | ||
|
||
Copyright C) 2010, esbat <esbatmop@gmail.com> | ||
|
||
and is licensed under the GPL, see above. | ||
|
||
|
||
# Please also look if there are files or directories which have a | ||
# different copyright/license attached and list them here. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
usr/games | ||
usr/share/games/xdotoolgui | ||
usr/share/applications |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,98 @@ | ||
#!/usr/bin/make -f | ||
# -*- makefile -*- | ||
# Sample debian/rules that uses debhelper. | ||
# This file was originally written by Joey Hess and Craig Small. | ||
# As a special exception, when this file is copied by dh-make into a | ||
# dh-make output file, you may use that output file without restriction. | ||
# This special exception was added by Craig Small in version 0.37 of dh-make. | ||
|
||
# Uncomment this to turn on verbose mode. | ||
#export DH_VERBOSE=1 | ||
|
||
|
||
|
||
|
||
|
||
configure: configure-stamp | ||
configure-stamp: | ||
dh_testdir | ||
# Add here commands to configure the package. | ||
|
||
touch configure-stamp | ||
|
||
|
||
build: build-stamp | ||
|
||
build-stamp: configure-stamp | ||
dh_testdir | ||
|
||
# Add here commands to compile the package. | ||
#$(MAKE) | ||
#docbook-to-man debian/xdotoolgui.sgml > xdotoolgui.1 | ||
|
||
touch build-stamp | ||
|
||
clean: | ||
dh_testdir | ||
dh_testroot | ||
rm -f build-stamp configure-stamp | ||
|
||
# Add here commands to clean up after the build process. | ||
#$(MAKE) clean | ||
|
||
dh_clean | ||
|
||
install: build | ||
dh_testdir | ||
dh_testroot | ||
dh_prep | ||
dh_installdirs | ||
|
||
# Add here commands to install the package into debian/xdotoolgui. | ||
#$(MAKE) DESTDIR=$(CURDIR)/debian/xdotoolgui install | ||
mkdir -p $(CURDIR)/debian/xdotoolgui | ||
cp xdotoolgui.py $(CURDIR)/debian/xdotoolgui/usr/games/xdotoolgui.py | ||
cp runxdotool.py $(CURDIR)/debian/xdotoolgui/usr/games/runxdotool.py | ||
cp xdotoolgui.glade $(CURDIR)/debian/xdotoolgui/usr/games/xdotoolgui.glade | ||
mkdir -p $(CURDIR)/debian/xdotoolgui/usr/share/games/xdotoolgui | ||
cp -r data/ $(CURDIR)/debian/xdotoolgui/usr/share/games/xdotoolgui | ||
cp xdotoolgui.desktop $(CURDIR)/debian/xdotoolgui/usr/share/applications/ | ||
sudo apt-get install xdotool | ||
|
||
# Build architecture-independent files here. | ||
binary-indep: install | ||
# We have nothing to do by default. | ||
|
||
# Build architecture-dependent files here. | ||
binary-arch: install | ||
dh_testdir | ||
dh_testroot | ||
dh_installchangelogs | ||
dh_installdocs | ||
dh_installexamples | ||
# dh_install | ||
# dh_installmenu | ||
# dh_installdebconf | ||
# dh_installlogrotate | ||
# dh_installemacsen | ||
# dh_installpam | ||
# dh_installmime | ||
# dh_python | ||
# dh_installinit | ||
# dh_installcron | ||
# dh_installinfo | ||
dh_installman | ||
dh_link | ||
dh_strip | ||
dh_compress | ||
dh_fixperms | ||
# dh_perl | ||
# dh_makeshlibs | ||
dh_installdeb | ||
dh_shlibdeps | ||
dh_gencontrol | ||
dh_md5sums | ||
dh_builddeb | ||
|
||
binary: binary-indep binary-arch | ||
.PHONY: build clean binary-indep binary-arch binary install configure |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
#!/usr/bin/env python | ||
# | ||
# runxdotool.py | ||
# | ||
# Copyright 2010 esbat <esbat@esbat-laptop> | ||
# | ||
# This program is free software; you can redistribute it and/or modify | ||
# it under the terms of the GNU General Public License as published by | ||
# the Free Software Foundation; either version 2 of the License, or | ||
# (at your option) any later version. | ||
# | ||
# This program is distributed in the hope that it will be useful, | ||
# but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
# GNU General Public License for more details. | ||
# | ||
# You should have received a copy of the GNU General Public License | ||
# along with this program; if not, write to the Free Software | ||
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, | ||
# MA 02110-1301, USA. | ||
import gtk, subprocess, time, string | ||
def AddCommandToRun(CommandPath): | ||
print CommandPath | ||
afile = open(CommandPath) | ||
ParamsForCommand = afile.read().split("\n") | ||
for s in ParamsForCommand: | ||
EachCommand = s.split(" ") | ||
if EachCommand[0] == 'move': | ||
subprocess.check_call(["xdotool","mousemove",EachCommand[3],EachCommand[4]]) | ||
if EachCommand[0] == 'delay': | ||
time.sleep(string.atof(EachCommand[1])) | ||
if EachCommand[0] == 'click': | ||
if EachCommand[2] == 'left': | ||
for i in EachCommand[5]: | ||
subprocess.check_call(["xdotool","click","1"]) | ||
time.sleep(string.atof(EachCommand[9])) | ||
if EachCommand[2] == 'middle': | ||
for i in EachCommand[5]: | ||
subprocess.check_call(["xdotool","click","2"]) | ||
time.sleep(string.atof(EachCommand[9])) | ||
if EachCommand[2] == 'right': | ||
for i in EachCommand[5]: | ||
subprocess.check_call(["xdotool","click","3"]) | ||
time.sleep(string.atof(EachCommand[9])) | ||
if EachCommand[0] == 'type': | ||
for i in EachCommand[5]: | ||
subprocess.check_call(["xdotool","key",EachCommand[3]]) | ||
time.sleep(string.atof(EachCommand[9])) | ||
return 0 | ||
|
||
|
||
def main(): | ||
|
||
return 0 | ||
|
||
if __name__ == '__main__': main() |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
[Desktop Entry] | ||
Version=1.0 | ||
Encoding=UTF-8 | ||
Name=Xdotoolgui | ||
Name[zh_CN]=按键精灵 | ||
Icon=/usr/share/games/xdotoolgui/data/xdotoolgui.gif | ||
Comment= A little game to play Rock, Paper,Scissors against the computer. | ||
Exec=python /usr/games/xdotoolgui.py | ||
Terminal=false | ||
Type=Application | ||
Categories=GNOME;GTK;Game; | ||
StartupNotify=false |
Oops, something went wrong.