From 07e995ac7b892c03da07cd56cbe4090ea35aaf34 Mon Sep 17 00:00:00 2001 From: Kazuki Suzuki Przyborowski Date: Tue, 22 Oct 2024 14:36:34 -0500 Subject: [PATCH] Small update --- pkgbuild/archlinux/python2/basename.py | 39 --- pkgbuild/archlinux/python2/dirname.py | 39 --- pkgbuild/archlinux/python2/pypac-gen.py | 255 ---------------- pkgbuild/archlinux/python2/pypac-gen.sh | 46 --- pkgbuild/archlinux/python2/realpath.py | 39 --- pkgbuild/archlinux/python2/which.py | 46 --- pkgbuild/archlinux/python3/basename.py | 39 --- pkgbuild/archlinux/python3/dirname.py | 39 --- pkgbuild/archlinux/python3/pypac-gen.py | 255 ---------------- pkgbuild/archlinux/python3/pypac-gen.sh | 46 --- pkgbuild/archlinux/python3/realpath.py | 39 --- pkgbuild/archlinux/python3/which.py | 46 --- pkgbuild/debian/python2/basename.py | 39 --- pkgbuild/debian/python2/dirname.py | 39 --- pkgbuild/debian/python2/pydeb-gen.py | 356 ---------------------- pkgbuild/debian/python2/pydeb-gen.sh | 45 --- pkgbuild/debian/python2/realpath.py | 39 --- pkgbuild/debian/python2/which.py | 46 --- pkgbuild/debian/python3/basename.py | 39 --- pkgbuild/debian/python3/dirname.py | 39 --- pkgbuild/debian/python3/pydeb-gen.py | 356 ---------------------- pkgbuild/debian/python3/pydeb-gen.sh | 45 --- pkgbuild/debian/python3/realpath.py | 39 --- pkgbuild/debian/python3/which.py | 46 --- pkgbuild/linuxmint/python2/basename.py | 39 --- pkgbuild/linuxmint/python2/dirname.py | 39 --- pkgbuild/linuxmint/python2/pydeb-gen.sh | 27 -- pkgbuild/linuxmint/python2/realpath.py | 39 --- pkgbuild/linuxmint/python2/which.py | 46 --- pkgbuild/linuxmint/python3/basename.py | 39 --- pkgbuild/linuxmint/python3/dirname.py | 39 --- pkgbuild/linuxmint/python3/pydeb-gen.sh | 27 -- pkgbuild/linuxmint/python3/realpath.py | 39 --- pkgbuild/linuxmint/python3/which.py | 46 --- pkgbuild/ubuntu/python2/basename.py | 39 --- pkgbuild/ubuntu/python2/dirname.py | 39 --- pkgbuild/ubuntu/python2/pydeb-gen.py | 377 ------------------------ pkgbuild/ubuntu/python2/pydeb-gen.sh | 45 --- pkgbuild/ubuntu/python2/realpath.py | 39 --- pkgbuild/ubuntu/python2/which.py | 46 --- pkgbuild/ubuntu/python3/basename.py | 39 --- pkgbuild/ubuntu/python3/dirname.py | 39 --- pkgbuild/ubuntu/python3/pydeb-gen.py | 377 ------------------------ pkgbuild/ubuntu/python3/pydeb-gen.sh | 45 --- pkgbuild/ubuntu/python3/realpath.py | 39 --- pkgbuild/ubuntu/python3/which.py | 46 --- py2pkg-gen.sh | 4 - py3pkg-gen.sh | 4 - pypkg-gen.py | 127 -------- pywwwget-dl.py | 2 +- pywwwget.py | 2 +- pywwwgetmini.py | 2 +- pywwwgetold-dl.py | 2 +- pywwwgetold.py | 2 +- 54 files changed, 5 insertions(+), 3746 deletions(-) delete mode 100755 pkgbuild/archlinux/python2/basename.py delete mode 100755 pkgbuild/archlinux/python2/dirname.py delete mode 100644 pkgbuild/archlinux/python2/pypac-gen.py delete mode 100755 pkgbuild/archlinux/python2/pypac-gen.sh delete mode 100755 pkgbuild/archlinux/python2/realpath.py delete mode 100755 pkgbuild/archlinux/python2/which.py delete mode 100755 pkgbuild/archlinux/python3/basename.py delete mode 100755 pkgbuild/archlinux/python3/dirname.py delete mode 100644 pkgbuild/archlinux/python3/pypac-gen.py delete mode 100755 pkgbuild/archlinux/python3/pypac-gen.sh delete mode 100755 pkgbuild/archlinux/python3/realpath.py delete mode 100755 pkgbuild/archlinux/python3/which.py delete mode 100755 pkgbuild/debian/python2/basename.py delete mode 100755 pkgbuild/debian/python2/dirname.py delete mode 100755 pkgbuild/debian/python2/pydeb-gen.py delete mode 100755 pkgbuild/debian/python2/pydeb-gen.sh delete mode 100755 pkgbuild/debian/python2/realpath.py delete mode 100755 pkgbuild/debian/python2/which.py delete mode 100755 pkgbuild/debian/python3/basename.py delete mode 100755 pkgbuild/debian/python3/dirname.py delete mode 100755 pkgbuild/debian/python3/pydeb-gen.py delete mode 100755 pkgbuild/debian/python3/pydeb-gen.sh delete mode 100755 pkgbuild/debian/python3/realpath.py delete mode 100755 pkgbuild/debian/python3/which.py delete mode 100755 pkgbuild/linuxmint/python2/basename.py delete mode 100755 pkgbuild/linuxmint/python2/dirname.py delete mode 100755 pkgbuild/linuxmint/python2/pydeb-gen.sh delete mode 100755 pkgbuild/linuxmint/python2/realpath.py delete mode 100755 pkgbuild/linuxmint/python2/which.py delete mode 100755 pkgbuild/linuxmint/python3/basename.py delete mode 100755 pkgbuild/linuxmint/python3/dirname.py delete mode 100755 pkgbuild/linuxmint/python3/pydeb-gen.sh delete mode 100755 pkgbuild/linuxmint/python3/realpath.py delete mode 100755 pkgbuild/linuxmint/python3/which.py delete mode 100755 pkgbuild/ubuntu/python2/basename.py delete mode 100755 pkgbuild/ubuntu/python2/dirname.py delete mode 100755 pkgbuild/ubuntu/python2/pydeb-gen.py delete mode 100755 pkgbuild/ubuntu/python2/pydeb-gen.sh delete mode 100755 pkgbuild/ubuntu/python2/realpath.py delete mode 100755 pkgbuild/ubuntu/python2/which.py delete mode 100755 pkgbuild/ubuntu/python3/basename.py delete mode 100755 pkgbuild/ubuntu/python3/dirname.py delete mode 100755 pkgbuild/ubuntu/python3/pydeb-gen.py delete mode 100755 pkgbuild/ubuntu/python3/pydeb-gen.sh delete mode 100755 pkgbuild/ubuntu/python3/realpath.py delete mode 100755 pkgbuild/ubuntu/python3/which.py delete mode 100755 py2pkg-gen.sh delete mode 100755 py3pkg-gen.sh delete mode 100755 pypkg-gen.py diff --git a/pkgbuild/archlinux/python2/basename.py b/pkgbuild/archlinux/python2/basename.py deleted file mode 100755 index d0538a9..0000000 --- a/pkgbuild/archlinux/python2/basename.py +++ /dev/null @@ -1,39 +0,0 @@ -#!/usr/bin/env python2 - -''' - This program is free software; you can redistribute it and/or modify - it under the terms of the Revised BSD License. - - 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 - Revised BSD License for more details. - - Copyright 2011-2016 Game Maker 2k - https://github.com/GameMaker2k - Copyright 2011-2016 Kazuki Przyborowski - https://github.com/KazukiPrzyborowski - - $FileInfo: basename.py - Last Update: 2/15/2016 Ver. 0.0.5 RC 3 - Author: cooldude2k $ -''' - -from __future__ import absolute_import, division, print_function, unicode_literals -import os -import sys -import argparse - -__version_info__ = (0, 0, 5, "rc3") -if(__version_info__[3] != None): - __version__ = str(__version_info__[0])+"."+str(__version_info__[1])+"."+str( - __version_info__[2])+"+"+str(__version_info__[3]) -if(__version_info__[3] == None): - __version__ = str( - __version_info__[0])+"."+str(__version_info__[1])+"."+str(__version_info__[2]) - -proname = "basename" -prover = __version__ -profullname = proname+" "+prover - -parser = argparse.ArgumentParser(conflict_handler="resolve", add_help=True) -parser.add_argument("-v", "--version", action="version", version=profullname) -parser.add_argument("filepath", help="enter a file name/path") -getargs = parser.parse_args() -print(os.path.basename(getargs.filepath)) diff --git a/pkgbuild/archlinux/python2/dirname.py b/pkgbuild/archlinux/python2/dirname.py deleted file mode 100755 index 46d4997..0000000 --- a/pkgbuild/archlinux/python2/dirname.py +++ /dev/null @@ -1,39 +0,0 @@ -#!/usr/bin/env python2 - -''' - This program is free software; you can redistribute it and/or modify - it under the terms of the Revised BSD License. - - 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 - Revised BSD License for more details. - - Copyright 2011-2016 Game Maker 2k - https://github.com/GameMaker2k - Copyright 2011-2016 Kazuki Przyborowski - https://github.com/KazukiPrzyborowski - - $FileInfo: dirname.py - Last Update: 2/15/2016 Ver. 0.0.5 RC 3 - Author: cooldude2k $ -''' - -from __future__ import absolute_import, division, print_function, unicode_literals -import os -import sys -import argparse - -__version_info__ = (0, 0, 5, "rc3") -if(__version_info__[3] != None): - __version__ = str(__version_info__[0])+"."+str(__version_info__[1])+"."+str( - __version_info__[2])+"+"+str(__version_info__[3]) -if(__version_info__[3] == None): - __version__ = str( - __version_info__[0])+"."+str(__version_info__[1])+"."+str(__version_info__[2]) - -proname = "dirname" -prover = __version__ -profullname = proname+" "+prover - -parser = argparse.ArgumentParser(conflict_handler="resolve", add_help=True) -parser.add_argument("-v", "--version", action="version", version=profullname) -parser.add_argument("filepath", help="enter a file name/path") -getargs = parser.parse_args() -print(os.path.dirname(getargs.filepath)) diff --git a/pkgbuild/archlinux/python2/pypac-gen.py b/pkgbuild/archlinux/python2/pypac-gen.py deleted file mode 100644 index 6104581..0000000 --- a/pkgbuild/archlinux/python2/pypac-gen.py +++ /dev/null @@ -1,255 +0,0 @@ -#!/usr/bin/env python2 - -''' - This program is free software; you can redistribute it and/or modify - it under the terms of the Revised BSD License. - - 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 - Revised BSD License for more details. - - Copyright 2011-2016 Game Maker 2k - https://github.com/GameMaker2k - Copyright 2011-2016 Kazuki Przyborowski - https://github.com/KazukiPrzyborowski - - $FileInfo: pypac-gen.py - Last Update: 6/1/2016 Ver. 0.2.0 RC 1 - Author: cooldude2k $ -''' - -from __future__ import absolute_import, division, print_function, unicode_literals -import re -import os -import sys -import time -import datetime -import argparse -import hashlib -import subprocess -import json - -__version_info__ = (0, 2, 0, "rc1") -if(__version_info__[3] != None): - __version__ = str(__version_info__[0])+"."+str(__version_info__[1])+"."+str( - __version_info__[2])+"+"+str(__version_info__[3]) -if(__version_info__[3] == None): - __version__ = str( - __version_info__[0])+"."+str(__version_info__[1])+"."+str(__version_info__[2]) - -proname = "pypac-gen" -prover = __version__ -profullname = proname+" "+prover - - -def which_exec(execfile): - for path in os.environ["PATH"].split(":"): - if os.path.exists(path + "/" + execfile): - return path + "/" + execfile - - -parser = argparse.ArgumentParser(conflict_handler="resolve", add_help=True) -parser.add_argument("-v", "--version", action="version", version=profullname) -parser.add_argument( - "-s", "--source", default=os.path.realpath(os.getcwd()), help="source dir") -parser.add_argument("-g", "--getsource", - action="store_true", help="get source dir") -parser.add_argument("-p", "--getparent", - action="store_true", help="get parent dir") -parser.add_argument("-t", "--gettarname", - action="store_true", help="get tar name") -parser.add_argument("-d", "--getdirname", - action="store_true", help="get dir name") -parser.add_argument("-e", "--getpkgsource", - action="store_true", help="get pkg source") -getargs = parser.parse_args() -getargs.source = os.path.realpath(getargs.source) -pkgsetuppy = os.path.realpath(getargs.source+os.path.sep+"setup.py") -pyexecpath = os.path.realpath(sys.executable) -if(not os.path.exists(getargs.source) or not os.path.isdir(getargs.source)): - raise Exception("Could not find directory.") -if(not os.path.exists(pkgsetuppy) or not os.path.isfile(pkgsetuppy)): - raise Exception("Could not find setup.py in directory.") - -pypkgenlistp = subprocess.Popen( - [pyexecpath, pkgsetuppy, "getversioninfo"], stdout=subprocess.PIPE, stderr=subprocess.PIPE) -pypkgenout, pypkgenerr = pypkgenlistp.communicate() -if(sys.version[0] == "3"): - pypkgenout = pypkgenout.decode('utf-8') -pymodule = json.loads(pypkgenout) -setuppy_verinfo = pymodule['versionlist'] -setuppy_author = pymodule['author'] -setuppy_authoremail = pymodule['authoremail'] -setuppy_maintainer = pymodule['maintainer'] -setuppy_maintaineremail = pymodule['maintaineremail'] -setuppy_description = pymodule['description'] -setuppy_license = pymodule['license'] -setuppy_keywords = pymodule['keywords'] -setuppy_url = pymodule['url'] -setuppy_downloadurl = pymodule['downloadurl'] -setuppy_longdescription = pymodule['longdescription'] -setuppy_platforms = pymodule['platforms'] - -if(sys.version[0] == "2"): - pkgsource = "py2www-get" -if(sys.version[0] == "3"): - pkgsource = "py3www-get" -pkgupstreamname = "PyWWW-Get" -pkgveralt = str(setuppy_verinfo[0])+"." + \ - str(setuppy_verinfo[1])+"."+str(setuppy_verinfo[2]) -pkgveraltrel = str(setuppy_verinfo[4]) -pkgver = str(pkgveralt)+"-rc"+str(setuppy_verinfo[4]) -pkgurgency = "urgency=low" -pkgauthorname = setuppy_author -pkgauthoremail = setuppy_authoremail -pkgauthoremailalt = setuppy_authoremail.replace( - "@", "[at]").replace(".", "[dot]") -pkgauthor = pkgauthorname+" <"+pkgauthoremail+">" -pkgauthoralt = pkgauthorname+" <"+pkgauthoremailalt+">" -pkgmaintainername = setuppy_maintainer -pkgmaintaineremail = setuppy_maintaineremail -pkgmaintaineremailalt = setuppy_maintaineremail.replace( - "@", "[at]").replace(".", "[dot]") -pkgmaintainer = pkgmaintainername+" <"+pkgmaintaineremail+">" -pkgmaintaineralt = pkgmaintainername+" <"+pkgmaintaineremailalt+">" -pkggiturl = "https://github.com/GameMaker2k/PyWWW-Get.git" -pkghomepage = setuppy_url -pkgsection = "python" -pkgpriority = "optional" -if(sys.version[0] == "2"): - pkgbuilddepends = "'python2'" -if(sys.version[0] == "3"): - pkgbuilddepends = "'python'" -pkgstandardsversion = "3.9.8" -if(sys.version[0] == "2"): - pkgpackage = "python2-pywww-get" - pkgoldname = "python2-www-get" -if(sys.version[0] == "3"): - pkgpackage = "python-pywww-get" - pkgoldname = "python-www-get" -pkgarchitecture = "'any' 'i686' 'x86_64'" -if(sys.version[0] == "2"): - pkgdepends = "'python2-setuptools'" -if(sys.version[0] == "3"): - pkgdepends = "'python-setuptools'" -pkgdescription = setuppy_description+"\n "+setuppy_longdescription -pkgtzstr = time.strftime("%a, %d %b %Y %H:%M:%S %z") - -if(getargs.getsource == True): - print(getargs.source) - sys.exit() -if(getargs.getparent == True): - print(os.path.realpath(os.path.dirname(getargs.source))) - sys.exit() -if(getargs.getdirname == True): - print(pkgsource+"_"+pkgveralt+".orig") - sys.exit() -if(getargs.gettarname == True): - print(pkgsource+"_"+pkgveralt+".orig.tar.gz") - sys.exit() -if(getargs.getpkgsource == True): - print(pkgsource) - sys.exit() - -print("generating arch linux package build directory") - -pacpkg_pkgbuild_dir = os.path.realpath(getargs.source+os.path.sep+pkgsource) -print("creating directory "+pacpkg_pkgbuild_dir) -if(not os.path.exists(pacpkg_pkgbuild_dir)): - os.makedirs(pacpkg_pkgbuild_dir) -os.chmod(pacpkg_pkgbuild_dir, int("0755", 8)) - -gzparentdir = os.path.realpath(os.path.dirname(getargs.source)) -filetargz = open(os.path.realpath(gzparentdir+os.path.sep + - pkgsource+"_"+pkgveralt+".orig.tar.gz"), "rb") -filetargzmd5 = hashlib.md5(filetargz.read()).hexdigest() -filetargz.seek(0) -filetargzsha1 = hashlib.sha1(filetargz.read()).hexdigest() -filetargz.seek(0) -filetargzsha224 = hashlib.sha224(filetargz.read()).hexdigest() -filetargz.seek(0) -filetargzsha256 = hashlib.sha256(filetargz.read()).hexdigest() -filetargz.seek(0) -filetargzsha384 = hashlib.sha384(filetargz.read()).hexdigest() -filetargz.seek(0) -filetargzsha512 = hashlib.sha512(filetargz.read()).hexdigest() -filetargz.close() - -pacpkg_pkgbuild_file = os.path.realpath( - pacpkg_pkgbuild_dir+os.path.sep+"PKGBUILD") -print("generating file "+pacpkg_pkgbuild_file) -if(sys.version[0] == "2"): - pacpkg_string_temp = "# Maintainer: "+pkgmaintaineralt+"\n" - pacpkg_string_temp += "# This file was automatically generated by "+profullname+" at\n" - pacpkg_string_temp += "# "+pkgtzstr+"\n\n" - pacpkg_string_temp += "pkgname="+pkgpackage+"\n" - pacpkg_string_temp += "pkgver="+pkgveralt+"\n" - pacpkg_string_temp += "pkgrel="+pkgveraltrel+"\n" - pacpkg_string_temp += "pkgdesc='"+setuppy_description+"'\n" - pacpkg_string_temp += "url='"+setuppy_url+"'\n" - pacpkg_string_temp += "arch=("+pkgarchitecture+")\n" - pacpkg_string_temp += "license=('"+setuppy_license+"')\n" - pacpkg_string_temp += "groups=()\n" - pacpkg_string_temp += "depends=("+pkgbuilddepends+")\n" - pacpkg_string_temp += "optdepends=()\n" - pacpkg_string_temp += "makedepends=("+pkgdepends+")\n" - pacpkg_string_temp += "conflicts=()\n" - pacpkg_string_temp += "replaces=('"+pkgoldname+"')\n" - pacpkg_string_temp += "backup=()\n" - pacpkg_string_temp += "options=(!strip !emptydirs)\n" - pacpkg_string_temp += "install=''\n" - pacpkg_string_temp += "source=('."+os.path.sep + \ - pkgsource+"_"+pkgveralt+".orig.tar.gz')\n" - pacpkg_string_temp += "md5sums=('"+filetargzmd5+"')\n" - pacpkg_string_temp += "sha1sums=('"+filetargzsha1+"')\n" - pacpkg_string_temp += "sha224sums=('"+filetargzsha224+"')\n" - pacpkg_string_temp += "sha256sums=('"+filetargzsha256+"')\n" - pacpkg_string_temp += "sha384sums=('"+filetargzsha384+"')\n" - pacpkg_string_temp += "sha512sums=('"+filetargzsha512+"')\n\n" - pacpkg_string_temp += "build() {\n" - pacpkg_string_temp += " cd \"${srcdir}/"+pkgsource+"_${pkgver}.orig\"\n" - pacpkg_string_temp += " python2 ./setup.py build\n" - pacpkg_string_temp += "}\n\n" - pacpkg_string_temp += "package() {\n" - pacpkg_string_temp += " cd \"${srcdir}/"+pkgsource+"_${pkgver}.orig\"\n" - pacpkg_string_temp += " python2 ./setup.py install --root=\"${pkgdir}\" --optimize=1\n" - pacpkg_string_temp += "}\n\n" - pacpkg_string_temp += "# vim:set ts=2 sw=2 et:\n" -if(sys.version[0] == "3"): - pacpkg_string_temp = "# Maintainer: "+pkgmaintaineralt+"\n" - pacpkg_string_temp += "# This file was automatically generated by "+profullname+" at\n" - pacpkg_string_temp += "# "+pkgtzstr+"\n\n" - pacpkg_string_temp += "pkgname="+pkgpackage+"\n" - pacpkg_string_temp += "pkgver="+pkgveralt+"\n" - pacpkg_string_temp += "pkgrel="+pkgveraltrel+"\n" - pacpkg_string_temp += "pkgdesc='"+setuppy_description+"'\n" - pacpkg_string_temp += "url='"+setuppy_url+"'\n" - pacpkg_string_temp += "arch=("+pkgarchitecture+")\n" - pacpkg_string_temp += "license=('"+setuppy_license+"')\n" - pacpkg_string_temp += "groups=()\n" - pacpkg_string_temp += "depends=("+pkgbuilddepends+")\n" - pacpkg_string_temp += "optdepends=()\n" - pacpkg_string_temp += "makedepends=("+pkgdepends+")\n" - pacpkg_string_temp += "conflicts=()\n" - pacpkg_string_temp += "replaces=('"+pkgoldname+"')\n" - pacpkg_string_temp += "backup=()\n" - pacpkg_string_temp += "options=(!strip !emptydirs)\n" - pacpkg_string_temp += "install=''\n" - pacpkg_string_temp += "source=('."+os.path.sep + \ - pkgsource+"_"+pkgveralt+".orig.tar.gz')\n" - pacpkg_string_temp += "md5sums=('"+filetargzmd5+"')\n" - pacpkg_string_temp += "sha1sums=('"+filetargzsha1+"')\n" - pacpkg_string_temp += "sha224sums=('"+filetargzsha224+"')\n" - pacpkg_string_temp += "sha256sums=('"+filetargzsha256+"')\n" - pacpkg_string_temp += "sha384sums=('"+filetargzsha384+"')\n" - pacpkg_string_temp += "sha512sums=('"+filetargzsha512+"')\n\n" - pacpkg_string_temp += "build() {\n" - pacpkg_string_temp += " cd \"${srcdir}/"+pkgsource+"_${pkgver}.orig\"\n" - pacpkg_string_temp += " python3 ./setup.py build\n" - pacpkg_string_temp += "}\n\n" - pacpkg_string_temp += "package() {\n" - pacpkg_string_temp += " cd \"${srcdir}/"+pkgsource+"_${pkgver}.orig\"\n" - pacpkg_string_temp += " python3 ./setup.py install --root=\"${pkgdir}\" --optimize=1\n" - pacpkg_string_temp += "}\n\n" - pacpkg_string_temp += "# vim:set ts=2 sw=2 et:\n" -pacpkg_file_temp = open(pacpkg_pkgbuild_file, "w") -pacpkg_file_temp.write(pacpkg_string_temp) -pacpkg_file_temp.close() -os.chmod(pacpkg_pkgbuild_file, int("0755", 8)) diff --git a/pkgbuild/archlinux/python2/pypac-gen.sh b/pkgbuild/archlinux/python2/pypac-gen.sh deleted file mode 100755 index 98ae6c4..0000000 --- a/pkgbuild/archlinux/python2/pypac-gen.sh +++ /dev/null @@ -1,46 +0,0 @@ -#!/usr/bin/env bash - -pythonexec="$(command -v python2)" -if hash realpath 2>/dev/null; then - pyrealpath="$(command -v realpath)" - scriptdir="$(${pyrealpath} $(dirname $(readlink -f $0)))" -else - scriptdir="$(dirname $(readlink -f $0))" - pyrealpath="${pythonexec} ${scriptdir}/realpath.py" - scriptdir="$(${pyrealpath} ${scriptdir})" - pyrealpath="${pythonexec} ${scriptdir}/realpath.py" -fi -pyscriptfile="${scriptdir}/pypac-gen.py" -pyshellfile="${scriptdir}/pypac-gen.sh" -oldwd="$(pwd)" - -if [ $# -eq 0 ]; then - pypkgdir="$(${pythonexec} "${pyscriptfile}" -g)" - pypkgparentdir="$(${pythonexec} "${pyscriptfile}" -s "${pypkgdir}" -p)" - pypkgtarname="$(${pythonexec} "${pyscriptfile}" -s "${pypkgdir}" -t)" - pypkgdirname="$(${pythonexec} "${pyscriptfile}" -s "${pypkgdir}" -d)" - pypkgsource="$(${pythonexec} "${pyscriptfile}" -s "${pypkgdir}" -e)" -fi -if [ $# -gt 0 ]; then - if [ $# -gt 1 ]; then - codename="${2}" - fi - pypkgdir="$(${pythonexec} "${pyscriptfile}" -s "${1}" -g)" - pypkgparentdir="$(${pythonexec} "${pyscriptfile}" -s "${pypkgdir}" -p)" - pypkgtarname="$(${pythonexec} "${pyscriptfile}" -s "${pypkgdir}" -t)" - pypkgdirname="$(${pythonexec} "${pyscriptfile}" -s "${pypkgdir}" -d)" - pypkgsource="$(${pythonexec} "${pyscriptfile}" -s "${pypkgdir}" -e)" -fi - -cd "${pypkgdir}" -${pythonexec} "./setup.py" "sdist" -srcfiles="$(${pythonexec} "${pypkgdir}/setup.py" getsourceinfo)" -cd "${pydebparentdir}" -tar -cavvf "${pypkgparentdir}/${pypkgtarname}" --transform="s/$(basename ${pypkgdir})/${pydebdirname}/" ${srcfiles} -file -z -k "${pypkgparentdir}/${pypkgtarname}" -cd "${pypkgdir}" -${pythonexec} "${pypkgdir}/setup.py" cleansourceinfo -${pythonexec} "${pyscriptfile}" -s "${pypkgdir}" -cd "${pypkgparentdir}" -mv -v "${pypkgparentdir}/${pypkgtarname}" "$(${pyrealpath} "${pypkgdir}/${pypkgsource}")/${pypkgtarname}" -cd "${oldwd}" diff --git a/pkgbuild/archlinux/python2/realpath.py b/pkgbuild/archlinux/python2/realpath.py deleted file mode 100755 index b2e441f..0000000 --- a/pkgbuild/archlinux/python2/realpath.py +++ /dev/null @@ -1,39 +0,0 @@ -#!/usr/bin/env python2 - -''' - This program is free software; you can redistribute it and/or modify - it under the terms of the Revised BSD License. - - 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 - Revised BSD License for more details. - - Copyright 2011-2016 Game Maker 2k - https://github.com/GameMaker2k - Copyright 2011-2016 Kazuki Przyborowski - https://github.com/KazukiPrzyborowski - - $FileInfo: realpath.py - Last Update: 2/15/2016 Ver. 0.0.5 RC 3 - Author: cooldude2k $ -''' - -from __future__ import absolute_import, division, print_function, unicode_literals -import os -import sys -import argparse - -__version_info__ = (0, 0, 5, "rc3") -if(__version_info__[3] != None): - __version__ = str(__version_info__[0])+"."+str(__version_info__[1])+"."+str( - __version_info__[2])+"+"+str(__version_info__[3]) -if(__version_info__[3] == None): - __version__ = str( - __version_info__[0])+"."+str(__version_info__[1])+"."+str(__version_info__[2]) - -proname = "realpath" -prover = __version__ -profullname = proname+" "+prover - -parser = argparse.ArgumentParser(conflict_handler="resolve", add_help=True) -parser.add_argument("-v", "--version", action="version", version=profullname) -parser.add_argument("filepath", help="enter a file name/path") -getargs = parser.parse_args() -print(os.path.realpath(getargs.filepath)) diff --git a/pkgbuild/archlinux/python2/which.py b/pkgbuild/archlinux/python2/which.py deleted file mode 100755 index e5cf271..0000000 --- a/pkgbuild/archlinux/python2/which.py +++ /dev/null @@ -1,46 +0,0 @@ -#!/usr/bin/env python2 - -''' - This program is free software; you can redistribute it and/or modify - it under the terms of the Revised BSD License. - - 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 - Revised BSD License for more details. - - Copyright 2011-2016 Game Maker 2k - https://github.com/GameMaker2k - Copyright 2011-2016 Kazuki Przyborowski - https://github.com/KazukiPrzyborowski - - $FileInfo: which.py - Last Update: 2/15/2016 Ver. 0.0.5 RC 3 - Author: cooldude2k $ -''' - -from __future__ import absolute_import, division, print_function, unicode_literals -import os -import sys -import argparse - -__version_info__ = (0, 0, 5, "rc3") -if(__version_info__[3] != None): - __version__ = str(__version_info__[0])+"."+str(__version_info__[1])+"."+str( - __version_info__[2])+"+"+str(__version_info__[3]) -if(__version_info__[3] == None): - __version__ = str( - __version_info__[0])+"."+str(__version_info__[1])+"."+str(__version_info__[2]) - -proname = "which" -prover = __version__ -profullname = proname+" "+prover - - -def which_exec(execfile): - for path in os.environ["PATH"].split(":"): - if os.path.exists(path + "/" + execfile): - return path + "/" + execfile - - -parser = argparse.ArgumentParser(conflict_handler="resolve", add_help=True) -parser.add_argument("-v", "--version", action="version", version=profullname) -parser.add_argument("filename", help="enter a file name/path") -getargs = parser.parse_args() -print(which_exec(getargs.filename)) diff --git a/pkgbuild/archlinux/python3/basename.py b/pkgbuild/archlinux/python3/basename.py deleted file mode 100755 index 346121c..0000000 --- a/pkgbuild/archlinux/python3/basename.py +++ /dev/null @@ -1,39 +0,0 @@ -#!/usr/bin/env python3 - -''' - This program is free software; you can redistribute it and/or modify - it under the terms of the Revised BSD License. - - 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 - Revised BSD License for more details. - - Copyright 2011-2016 Game Maker 2k - https://github.com/GameMaker2k - Copyright 2011-2016 Kazuki Przyborowski - https://github.com/KazukiPrzyborowski - - $FileInfo: basename.py - Last Update: 2/15/2016 Ver. 0.0.5 RC 3 - Author: cooldude2k $ -''' - -from __future__ import absolute_import, division, print_function, unicode_literals -import os -import sys -import argparse - -__version_info__ = (0, 0, 5, "rc3") -if(__version_info__[3] != None): - __version__ = str(__version_info__[0])+"."+str(__version_info__[1])+"."+str( - __version_info__[2])+"+"+str(__version_info__[3]) -if(__version_info__[3] == None): - __version__ = str( - __version_info__[0])+"."+str(__version_info__[1])+"."+str(__version_info__[2]) - -proname = "basename" -prover = __version__ -profullname = proname+" "+prover - -parser = argparse.ArgumentParser(conflict_handler="resolve", add_help=True) -parser.add_argument("-v", "--version", action="version", version=profullname) -parser.add_argument("filepath", help="enter a file name/path") -getargs = parser.parse_args() -print(os.path.basename(getargs.filepath)) diff --git a/pkgbuild/archlinux/python3/dirname.py b/pkgbuild/archlinux/python3/dirname.py deleted file mode 100755 index 080502f..0000000 --- a/pkgbuild/archlinux/python3/dirname.py +++ /dev/null @@ -1,39 +0,0 @@ -#!/usr/bin/env python3 - -''' - This program is free software; you can redistribute it and/or modify - it under the terms of the Revised BSD License. - - 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 - Revised BSD License for more details. - - Copyright 2011-2016 Game Maker 2k - https://github.com/GameMaker2k - Copyright 2011-2016 Kazuki Przyborowski - https://github.com/KazukiPrzyborowski - - $FileInfo: dirname.py - Last Update: 2/15/2016 Ver. 0.0.5 RC 3 - Author: cooldude2k $ -''' - -from __future__ import absolute_import, division, print_function, unicode_literals -import os -import sys -import argparse - -__version_info__ = (0, 0, 5, "rc3") -if(__version_info__[3] != None): - __version__ = str(__version_info__[0])+"."+str(__version_info__[1])+"."+str( - __version_info__[2])+"+"+str(__version_info__[3]) -if(__version_info__[3] == None): - __version__ = str( - __version_info__[0])+"."+str(__version_info__[1])+"."+str(__version_info__[2]) - -proname = "dirname" -prover = __version__ -profullname = proname+" "+prover - -parser = argparse.ArgumentParser(conflict_handler="resolve", add_help=True) -parser.add_argument("-v", "--version", action="version", version=profullname) -parser.add_argument("filepath", help="enter a file name/path") -getargs = parser.parse_args() -print(os.path.dirname(getargs.filepath)) diff --git a/pkgbuild/archlinux/python3/pypac-gen.py b/pkgbuild/archlinux/python3/pypac-gen.py deleted file mode 100644 index 44ef6a0..0000000 --- a/pkgbuild/archlinux/python3/pypac-gen.py +++ /dev/null @@ -1,255 +0,0 @@ -#!/usr/bin/env python3 - -''' - This program is free software; you can redistribute it and/or modify - it under the terms of the Revised BSD License. - - 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 - Revised BSD License for more details. - - Copyright 2011-2016 Game Maker 2k - https://github.com/GameMaker2k - Copyright 2011-2016 Kazuki Przyborowski - https://github.com/KazukiPrzyborowski - - $FileInfo: pypac-gen.py - Last Update: 6/1/2016 Ver. 0.2.0 RC 1 - Author: cooldude2k $ -''' - -from __future__ import absolute_import, division, print_function, unicode_literals -import re -import os -import sys -import time -import datetime -import argparse -import hashlib -import subprocess -import json - -__version_info__ = (0, 2, 0, "rc1") -if(__version_info__[3] != None): - __version__ = str(__version_info__[0])+"."+str(__version_info__[1])+"."+str( - __version_info__[2])+"+"+str(__version_info__[3]) -if(__version_info__[3] == None): - __version__ = str( - __version_info__[0])+"."+str(__version_info__[1])+"."+str(__version_info__[2]) - -proname = "pypac-gen" -prover = __version__ -profullname = proname+" "+prover - - -def which_exec(execfile): - for path in os.environ["PATH"].split(":"): - if os.path.exists(path + "/" + execfile): - return path + "/" + execfile - - -parser = argparse.ArgumentParser(conflict_handler="resolve", add_help=True) -parser.add_argument("-v", "--version", action="version", version=profullname) -parser.add_argument( - "-s", "--source", default=os.path.realpath(os.getcwd()), help="source dir") -parser.add_argument("-g", "--getsource", - action="store_true", help="get source dir") -parser.add_argument("-p", "--getparent", - action="store_true", help="get parent dir") -parser.add_argument("-t", "--gettarname", - action="store_true", help="get tar name") -parser.add_argument("-d", "--getdirname", - action="store_true", help="get dir name") -parser.add_argument("-e", "--getpkgsource", - action="store_true", help="get pkg source") -getargs = parser.parse_args() -getargs.source = os.path.realpath(getargs.source) -pkgsetuppy = os.path.realpath(getargs.source+os.path.sep+"setup.py") -pyexecpath = os.path.realpath(sys.executable) -if(not os.path.exists(getargs.source) or not os.path.isdir(getargs.source)): - raise Exception("Could not find directory.") -if(not os.path.exists(pkgsetuppy) or not os.path.isfile(pkgsetuppy)): - raise Exception("Could not find setup.py in directory.") - -pypkgenlistp = subprocess.Popen( - [pyexecpath, pkgsetuppy, "getversioninfo"], stdout=subprocess.PIPE, stderr=subprocess.PIPE) -pypkgenout, pypkgenerr = pypkgenlistp.communicate() -if(sys.version[0] == "3"): - pypkgenout = pypkgenout.decode('utf-8') -pymodule = json.loads(pypkgenout) -setuppy_verinfo = pymodule['versionlist'] -setuppy_author = pymodule['author'] -setuppy_authoremail = pymodule['authoremail'] -setuppy_maintainer = pymodule['maintainer'] -setuppy_maintaineremail = pymodule['maintaineremail'] -setuppy_description = pymodule['description'] -setuppy_license = pymodule['license'] -setuppy_keywords = pymodule['keywords'] -setuppy_url = pymodule['url'] -setuppy_downloadurl = pymodule['downloadurl'] -setuppy_longdescription = pymodule['longdescription'] -setuppy_platforms = pymodule['platforms'] - -if(sys.version[0] == "2"): - pkgsource = "py2www-get" -if(sys.version[0] == "3"): - pkgsource = "py3www-get" -pkgupstreamname = "PyWWW-Get" -pkgveralt = str(setuppy_verinfo[0])+"." + \ - str(setuppy_verinfo[1])+"."+str(setuppy_verinfo[2]) -pkgveraltrel = str(setuppy_verinfo[4]) -pkgver = str(pkgveralt)+"-rc"+str(setuppy_verinfo[4]) -pkgurgency = "urgency=low" -pkgauthorname = setuppy_author -pkgauthoremail = setuppy_authoremail -pkgauthoremailalt = setuppy_authoremail.replace( - "@", "[at]").replace(".", "[dot]") -pkgauthor = pkgauthorname+" <"+pkgauthoremail+">" -pkgauthoralt = pkgauthorname+" <"+pkgauthoremailalt+">" -pkgmaintainername = setuppy_maintainer -pkgmaintaineremail = setuppy_maintaineremail -pkgmaintaineremailalt = setuppy_maintaineremail.replace( - "@", "[at]").replace(".", "[dot]") -pkgmaintainer = pkgmaintainername+" <"+pkgmaintaineremail+">" -pkgmaintaineralt = pkgmaintainername+" <"+pkgmaintaineremailalt+">" -pkggiturl = "https://github.com/GameMaker2k/PyWWW-Get.git" -pkghomepage = setuppy_url -pkgsection = "python" -pkgpriority = "optional" -if(sys.version[0] == "2"): - pkgbuilddepends = "'python2'" -if(sys.version[0] == "3"): - pkgbuilddepends = "'python'" -pkgstandardsversion = "3.9.8" -if(sys.version[0] == "2"): - pkgpackage = "python2-pywww-get" - pkgoldname = "python2-www-get" -if(sys.version[0] == "3"): - pkgpackage = "python-pywww-get" - pkgoldname = "python-www-get" -pkgarchitecture = "'any' 'i686' 'x86_64'" -if(sys.version[0] == "2"): - pkgdepends = "'python2-setuptools'" -if(sys.version[0] == "3"): - pkgdepends = "'python-setuptools'" -pkgdescription = setuppy_description+"\n "+setuppy_longdescription -pkgtzstr = time.strftime("%a, %d %b %Y %H:%M:%S %z") - -if(getargs.getsource == True): - print(getargs.source) - sys.exit() -if(getargs.getparent == True): - print(os.path.realpath(os.path.dirname(getargs.source))) - sys.exit() -if(getargs.getdirname == True): - print(pkgsource+"_"+pkgveralt+".orig") - sys.exit() -if(getargs.gettarname == True): - print(pkgsource+"_"+pkgveralt+".orig.tar.gz") - sys.exit() -if(getargs.getpkgsource == True): - print(pkgsource) - sys.exit() - -print("generating arch linux package build directory") - -pacpkg_pkgbuild_dir = os.path.realpath(getargs.source+os.path.sep+pkgsource) -print("creating directory "+pacpkg_pkgbuild_dir) -if(not os.path.exists(pacpkg_pkgbuild_dir)): - os.makedirs(pacpkg_pkgbuild_dir) -os.chmod(pacpkg_pkgbuild_dir, int("0755", 8)) - -gzparentdir = os.path.realpath(os.path.dirname(getargs.source)) -filetargz = open(os.path.realpath(gzparentdir+os.path.sep + - pkgsource+"_"+pkgveralt+".orig.tar.gz"), "rb") -filetargzmd5 = hashlib.md5(filetargz.read()).hexdigest() -filetargz.seek(0) -filetargzsha1 = hashlib.sha1(filetargz.read()).hexdigest() -filetargz.seek(0) -filetargzsha224 = hashlib.sha224(filetargz.read()).hexdigest() -filetargz.seek(0) -filetargzsha256 = hashlib.sha256(filetargz.read()).hexdigest() -filetargz.seek(0) -filetargzsha384 = hashlib.sha384(filetargz.read()).hexdigest() -filetargz.seek(0) -filetargzsha512 = hashlib.sha512(filetargz.read()).hexdigest() -filetargz.close() - -pacpkg_pkgbuild_file = os.path.realpath( - pacpkg_pkgbuild_dir+os.path.sep+"PKGBUILD") -print("generating file "+pacpkg_pkgbuild_file) -if(sys.version[0] == "2"): - pacpkg_string_temp = "# Maintainer: "+pkgmaintaineralt+"\n" - pacpkg_string_temp += "# This file was automatically generated by "+profullname+" at\n" - pacpkg_string_temp += "# "+pkgtzstr+"\n\n" - pacpkg_string_temp += "pkgname="+pkgpackage+"\n" - pacpkg_string_temp += "pkgver="+pkgveralt+"\n" - pacpkg_string_temp += "pkgrel="+pkgveraltrel+"\n" - pacpkg_string_temp += "pkgdesc='"+setuppy_description+"'\n" - pacpkg_string_temp += "url='"+setuppy_url+"'\n" - pacpkg_string_temp += "arch=("+pkgarchitecture+")\n" - pacpkg_string_temp += "license=('"+setuppy_license+"')\n" - pacpkg_string_temp += "groups=()\n" - pacpkg_string_temp += "depends=("+pkgbuilddepends+")\n" - pacpkg_string_temp += "optdepends=()\n" - pacpkg_string_temp += "makedepends=("+pkgdepends+")\n" - pacpkg_string_temp += "conflicts=()\n" - pacpkg_string_temp += "replaces=('"+pkgoldname+"')\n" - pacpkg_string_temp += "backup=()\n" - pacpkg_string_temp += "options=(!strip !emptydirs)\n" - pacpkg_string_temp += "install=''\n" - pacpkg_string_temp += "source=('."+os.path.sep + \ - pkgsource+"_"+pkgveralt+".orig.tar.gz')\n" - pacpkg_string_temp += "md5sums=('"+filetargzmd5+"')\n" - pacpkg_string_temp += "sha1sums=('"+filetargzsha1+"')\n" - pacpkg_string_temp += "sha224sums=('"+filetargzsha224+"')\n" - pacpkg_string_temp += "sha256sums=('"+filetargzsha256+"')\n" - pacpkg_string_temp += "sha384sums=('"+filetargzsha384+"')\n" - pacpkg_string_temp += "sha512sums=('"+filetargzsha512+"')\n\n" - pacpkg_string_temp += "build() {\n" - pacpkg_string_temp += " cd \"${srcdir}/"+pkgsource+"_${pkgver}.orig\"\n" - pacpkg_string_temp += " python2 ./setup.py build\n" - pacpkg_string_temp += "}\n\n" - pacpkg_string_temp += "package() {\n" - pacpkg_string_temp += " cd \"${srcdir}/"+pkgsource+"_${pkgver}.orig\"\n" - pacpkg_string_temp += " python2 ./setup.py install --root=\"${pkgdir}\" --optimize=1\n" - pacpkg_string_temp += "}\n\n" - pacpkg_string_temp += "# vim:set ts=2 sw=2 et:\n" -if(sys.version[0] == "3"): - pacpkg_string_temp = "# Maintainer: "+pkgmaintaineralt+"\n" - pacpkg_string_temp += "# This file was automatically generated by "+profullname+" at\n" - pacpkg_string_temp += "# "+pkgtzstr+"\n\n" - pacpkg_string_temp += "pkgname="+pkgpackage+"\n" - pacpkg_string_temp += "pkgver="+pkgveralt+"\n" - pacpkg_string_temp += "pkgrel="+pkgveraltrel+"\n" - pacpkg_string_temp += "pkgdesc='"+setuppy_description+"'\n" - pacpkg_string_temp += "url='"+setuppy_url+"'\n" - pacpkg_string_temp += "arch=("+pkgarchitecture+")\n" - pacpkg_string_temp += "license=('"+setuppy_license+"')\n" - pacpkg_string_temp += "groups=()\n" - pacpkg_string_temp += "depends=("+pkgbuilddepends+")\n" - pacpkg_string_temp += "optdepends=()\n" - pacpkg_string_temp += "makedepends=("+pkgdepends+")\n" - pacpkg_string_temp += "conflicts=()\n" - pacpkg_string_temp += "replaces=('"+pkgoldname+"')\n" - pacpkg_string_temp += "backup=()\n" - pacpkg_string_temp += "options=(!strip !emptydirs)\n" - pacpkg_string_temp += "install=''\n" - pacpkg_string_temp += "source=('."+os.path.sep + \ - pkgsource+"_"+pkgveralt+".orig.tar.gz')\n" - pacpkg_string_temp += "md5sums=('"+filetargzmd5+"')\n" - pacpkg_string_temp += "sha1sums=('"+filetargzsha1+"')\n" - pacpkg_string_temp += "sha224sums=('"+filetargzsha224+"')\n" - pacpkg_string_temp += "sha256sums=('"+filetargzsha256+"')\n" - pacpkg_string_temp += "sha384sums=('"+filetargzsha384+"')\n" - pacpkg_string_temp += "sha512sums=('"+filetargzsha512+"')\n\n" - pacpkg_string_temp += "build() {\n" - pacpkg_string_temp += " cd \"${srcdir}/"+pkgsource+"_${pkgver}.orig\"\n" - pacpkg_string_temp += " python3 ./setup.py build\n" - pacpkg_string_temp += "}\n\n" - pacpkg_string_temp += "package() {\n" - pacpkg_string_temp += " cd \"${srcdir}/"+pkgsource+"_${pkgver}.orig\"\n" - pacpkg_string_temp += " python3 ./setup.py install --root=\"${pkgdir}\" --optimize=1\n" - pacpkg_string_temp += "}\n\n" - pacpkg_string_temp += "# vim:set ts=2 sw=2 et:\n" -pacpkg_file_temp = open(pacpkg_pkgbuild_file, "w") -pacpkg_file_temp.write(pacpkg_string_temp) -pacpkg_file_temp.close() -os.chmod(pacpkg_pkgbuild_file, int("0755", 8)) diff --git a/pkgbuild/archlinux/python3/pypac-gen.sh b/pkgbuild/archlinux/python3/pypac-gen.sh deleted file mode 100755 index d7cab8d..0000000 --- a/pkgbuild/archlinux/python3/pypac-gen.sh +++ /dev/null @@ -1,46 +0,0 @@ -#!/usr/bin/env bash - -pythonexec="$(command -v python3)" -if hash realpath 2>/dev/null; then - pyrealpath="$(command -v realpath)" - scriptdir="$(${pyrealpath} $(dirname $(readlink -f $0)))" -else - scriptdir="$(dirname $(readlink -f $0))" - pyrealpath="${pythonexec} ${scriptdir}/realpath.py" - scriptdir="$(${pyrealpath} ${scriptdir})" - pyrealpath="${pythonexec} ${scriptdir}/realpath.py" -fi -pyscriptfile="${scriptdir}/pypac-gen.py" -pyshellfile="${scriptdir}/pypac-gen.sh" -oldwd="$(pwd)" - -if [ $# -eq 0 ]; then - pypkgdir="$(${pythonexec} "${pyscriptfile}" -g)" - pypkgparentdir="$(${pythonexec} "${pyscriptfile}" -s "${pypkgdir}" -p)" - pypkgtarname="$(${pythonexec} "${pyscriptfile}" -s "${pypkgdir}" -t)" - pypkgdirname="$(${pythonexec} "${pyscriptfile}" -s "${pypkgdir}" -d)" - pypkgsource="$(${pythonexec} "${pyscriptfile}" -s "${pypkgdir}" -e)" -fi -if [ $# -gt 0 ]; then - if [ $# -gt 1 ]; then - codename="${2}" - fi - pypkgdir="$(${pythonexec} "${pyscriptfile}" -s "${1}" -g)" - pypkgparentdir="$(${pythonexec} "${pyscriptfile}" -s "${pypkgdir}" -p)" - pypkgtarname="$(${pythonexec} "${pyscriptfile}" -s "${pypkgdir}" -t)" - pypkgdirname="$(${pythonexec} "${pyscriptfile}" -s "${pypkgdir}" -d)" - pypkgsource="$(${pythonexec} "${pyscriptfile}" -s "${pypkgdir}" -e)" -fi - -cd "${pypkgdir}" -${pythonexec} "./setup.py" "sdist" -srcfiles="$(${pythonexec} "${pypkgdir}/setup.py" getsourceinfo)" -cd "${pydebparentdir}" -tar -cavvf "${pypkgparentdir}/${pypkgtarname}" --transform="s/$(basename ${pypkgdir})/${pydebdirname}/" ${srcfiles} -file -z -k "${pypkgparentdir}/${pypkgtarname}" -cd "${pypkgdir}" -${pythonexec} "${pypkgdir}/setup.py" cleansourceinfo -${pythonexec} "${pyscriptfile}" -s "${pypkgdir}" -cd "${pypkgparentdir}" -mv -v "${pypkgparentdir}/${pypkgtarname}" "$(${pyrealpath} "${pypkgdir}/${pypkgsource}")/${pypkgtarname}" -cd "${oldwd}" diff --git a/pkgbuild/archlinux/python3/realpath.py b/pkgbuild/archlinux/python3/realpath.py deleted file mode 100755 index 7350f44..0000000 --- a/pkgbuild/archlinux/python3/realpath.py +++ /dev/null @@ -1,39 +0,0 @@ -#!/usr/bin/env python3 - -''' - This program is free software; you can redistribute it and/or modify - it under the terms of the Revised BSD License. - - 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 - Revised BSD License for more details. - - Copyright 2011-2016 Game Maker 2k - https://github.com/GameMaker2k - Copyright 2011-2016 Kazuki Przyborowski - https://github.com/KazukiPrzyborowski - - $FileInfo: realpath.py - Last Update: 2/15/2016 Ver. 0.0.5 RC 3 - Author: cooldude2k $ -''' - -from __future__ import absolute_import, division, print_function, unicode_literals -import os -import sys -import argparse - -__version_info__ = (0, 0, 5, "rc3") -if(__version_info__[3] != None): - __version__ = str(__version_info__[0])+"."+str(__version_info__[1])+"."+str( - __version_info__[2])+"+"+str(__version_info__[3]) -if(__version_info__[3] == None): - __version__ = str( - __version_info__[0])+"."+str(__version_info__[1])+"."+str(__version_info__[2]) - -proname = "realpath" -prover = __version__ -profullname = proname+" "+prover - -parser = argparse.ArgumentParser(conflict_handler="resolve", add_help=True) -parser.add_argument("-v", "--version", action="version", version=profullname) -parser.add_argument("filepath", help="enter a file name/path") -getargs = parser.parse_args() -print(os.path.realpath(getargs.filepath)) diff --git a/pkgbuild/archlinux/python3/which.py b/pkgbuild/archlinux/python3/which.py deleted file mode 100755 index 22cccbd..0000000 --- a/pkgbuild/archlinux/python3/which.py +++ /dev/null @@ -1,46 +0,0 @@ -#!/usr/bin/env python3 - -''' - This program is free software; you can redistribute it and/or modify - it under the terms of the Revised BSD License. - - 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 - Revised BSD License for more details. - - Copyright 2011-2016 Game Maker 2k - https://github.com/GameMaker2k - Copyright 2011-2016 Kazuki Przyborowski - https://github.com/KazukiPrzyborowski - - $FileInfo: which.py - Last Update: 2/15/2016 Ver. 0.0.5 RC 3 - Author: cooldude2k $ -''' - -from __future__ import absolute_import, division, print_function, unicode_literals -import os -import sys -import argparse - -__version_info__ = (0, 0, 5, "rc3") -if(__version_info__[3] != None): - __version__ = str(__version_info__[0])+"."+str(__version_info__[1])+"."+str( - __version_info__[2])+"+"+str(__version_info__[3]) -if(__version_info__[3] == None): - __version__ = str( - __version_info__[0])+"."+str(__version_info__[1])+"."+str(__version_info__[2]) - -proname = "which" -prover = __version__ -profullname = proname+" "+prover - - -def which_exec(execfile): - for path in os.environ["PATH"].split(":"): - if os.path.exists(path + "/" + execfile): - return path + "/" + execfile - - -parser = argparse.ArgumentParser(conflict_handler="resolve", add_help=True) -parser.add_argument("-v", "--version", action="version", version=profullname) -parser.add_argument("filename", help="enter a file name/path") -getargs = parser.parse_args() -print(which_exec(getargs.filename)) diff --git a/pkgbuild/debian/python2/basename.py b/pkgbuild/debian/python2/basename.py deleted file mode 100755 index d0538a9..0000000 --- a/pkgbuild/debian/python2/basename.py +++ /dev/null @@ -1,39 +0,0 @@ -#!/usr/bin/env python2 - -''' - This program is free software; you can redistribute it and/or modify - it under the terms of the Revised BSD License. - - 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 - Revised BSD License for more details. - - Copyright 2011-2016 Game Maker 2k - https://github.com/GameMaker2k - Copyright 2011-2016 Kazuki Przyborowski - https://github.com/KazukiPrzyborowski - - $FileInfo: basename.py - Last Update: 2/15/2016 Ver. 0.0.5 RC 3 - Author: cooldude2k $ -''' - -from __future__ import absolute_import, division, print_function, unicode_literals -import os -import sys -import argparse - -__version_info__ = (0, 0, 5, "rc3") -if(__version_info__[3] != None): - __version__ = str(__version_info__[0])+"."+str(__version_info__[1])+"."+str( - __version_info__[2])+"+"+str(__version_info__[3]) -if(__version_info__[3] == None): - __version__ = str( - __version_info__[0])+"."+str(__version_info__[1])+"."+str(__version_info__[2]) - -proname = "basename" -prover = __version__ -profullname = proname+" "+prover - -parser = argparse.ArgumentParser(conflict_handler="resolve", add_help=True) -parser.add_argument("-v", "--version", action="version", version=profullname) -parser.add_argument("filepath", help="enter a file name/path") -getargs = parser.parse_args() -print(os.path.basename(getargs.filepath)) diff --git a/pkgbuild/debian/python2/dirname.py b/pkgbuild/debian/python2/dirname.py deleted file mode 100755 index 46d4997..0000000 --- a/pkgbuild/debian/python2/dirname.py +++ /dev/null @@ -1,39 +0,0 @@ -#!/usr/bin/env python2 - -''' - This program is free software; you can redistribute it and/or modify - it under the terms of the Revised BSD License. - - 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 - Revised BSD License for more details. - - Copyright 2011-2016 Game Maker 2k - https://github.com/GameMaker2k - Copyright 2011-2016 Kazuki Przyborowski - https://github.com/KazukiPrzyborowski - - $FileInfo: dirname.py - Last Update: 2/15/2016 Ver. 0.0.5 RC 3 - Author: cooldude2k $ -''' - -from __future__ import absolute_import, division, print_function, unicode_literals -import os -import sys -import argparse - -__version_info__ = (0, 0, 5, "rc3") -if(__version_info__[3] != None): - __version__ = str(__version_info__[0])+"."+str(__version_info__[1])+"."+str( - __version_info__[2])+"+"+str(__version_info__[3]) -if(__version_info__[3] == None): - __version__ = str( - __version_info__[0])+"."+str(__version_info__[1])+"."+str(__version_info__[2]) - -proname = "dirname" -prover = __version__ -profullname = proname+" "+prover - -parser = argparse.ArgumentParser(conflict_handler="resolve", add_help=True) -parser.add_argument("-v", "--version", action="version", version=profullname) -parser.add_argument("filepath", help="enter a file name/path") -getargs = parser.parse_args() -print(os.path.dirname(getargs.filepath)) diff --git a/pkgbuild/debian/python2/pydeb-gen.py b/pkgbuild/debian/python2/pydeb-gen.py deleted file mode 100755 index eac839b..0000000 --- a/pkgbuild/debian/python2/pydeb-gen.py +++ /dev/null @@ -1,356 +0,0 @@ -#!/usr/bin/env python2 - -''' - This program is free software; you can redistribute it and/or modify - it under the terms of the Revised BSD License. - - 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 - Revised BSD License for more details. - - Copyright 2011-2016 Game Maker 2k - https://github.com/GameMaker2k - Copyright 2011-2016 Kazuki Przyborowski - https://github.com/KazukiPrzyborowski - - $FileInfo: pydeb-gen.py - Last Update: 6/1/2016 Ver. 0.2.0 RC 1 - Author: cooldude2k $ -''' - -from __future__ import absolute_import, division, print_function, unicode_literals -import re -import os -import sys -import time -import datetime -import argparse -import subprocess -import json - -__version_info__ = (0, 2, 0, "rc1") -if(__version_info__[3] != None): - __version__ = str(__version_info__[0])+"."+str(__version_info__[1])+"."+str( - __version_info__[2])+"+"+str(__version_info__[3]) -if(__version_info__[3] == None): - __version__ = str( - __version_info__[0])+"."+str(__version_info__[1])+"."+str(__version_info__[2]) - -proname = "pydeb-gen" -prover = __version__ -profullname = proname+" "+prover -buildsystem = "pybuild" - - -def which_exec(execfile): - for path in os.environ["PATH"].split(":"): - if os.path.exists(path + "/" + execfile): - return path + "/" + execfile - - -distvertoupname = {'10.0': "Buster", '9.0': "Stretch", '8.0': "Jessie", '7.0': "Wheezy", '6.0': "Squeeze", '5.0': "Lenny", '4.0': "Etch", - '3.1': "Sarge", '3.0': "Woody", '2.2': "Potato", '2.1': "Slink", '2.0': "Hamm", '1.3': "Bo", '1.2': "Rex", '1.1': "Buzz", '0.0': "Sid"} -distvertoname = {'10.0': "buster", '9.0': "stretch", '8.0': "jessie", '7.0': "wheezy", '6.0': "squeeze", '5.0': "lenny", '4.0': "etch", - '3.1': "sarge", '3.0': "woody", '2.2': "potato", '2.1': "slink", '2.0': "hamm", '1.3': "bo", '1.2': "rex", '1.1': "buzz", '0.0': "sid"} -distnamelist = distvertoname.values() -distnametover = {'buster': "10.0", 'stretch': "9.0", 'jessie': "8.0", 'wheezy': "7.0", 'squeeze': "6.0", 'lenny': "5.0", 'etch': "4.0", - 'sarge': "3.1", 'woody': "3.0", 'potato': "2.2", 'slink': "2.1", 'hamm': "2.0", 'bo': "1.3", 'rex': "1.2", 'buzz': "1.1", 'sid': "0.0"} -distupnametover = {'Buster': "10.0", 'Stretch': "9.0", 'Jessie': "8.0", 'Wheezy': "7.0", 'Squeeze': "6.0", 'Lenny': "5.0", 'Etch': "4.0", - 'Sarge': "3.1", 'Woody': "3.0", 'Potato': "2.2", 'Slink': "2.1", 'Hamm': "2.0", 'Bo': "1.3", 'Rex': "1.2", 'Buzz': "1.1", 'Sid': "0.0"} -distnamelistalt = distnametover.keys() - -debian_oldstable = "wheezy" -debian_stable = "jessie" -debian_unstable = "sid" -debian_testing = "stretch" -debian_nexttesting = "buster" - -parser = argparse.ArgumentParser(conflict_handler="resolve", add_help=True) -parser.add_argument("-v", "--version", action="version", version=profullname) -parser.add_argument( - "-s", "--source", default=os.path.realpath(os.getcwd()), help="source dir") -parser.add_argument("-g", "--getsource", - action="store_true", help="get source dir") -parser.add_argument("-p", "--getparent", - action="store_true", help="get parent dir") -parser.add_argument("-t", "--gettarname", - action="store_true", help="get tar name") -parser.add_argument("-d", "--getdirname", - action="store_true", help="get dir name") -parser.add_argument("-c", "--codename", default=debian_stable, - help="enter release code name") -parser.add_argument("-e", "--getpkgsource", - action="store_true", help="get pkg source") -getargs = parser.parse_args() -getargs.source = os.path.realpath(getargs.source) -pkgsetuppy = os.path.realpath(getargs.source+os.path.sep+"setup.py") -pyexecpath = os.path.realpath(sys.executable) -if(not os.path.exists(getargs.source) or not os.path.isdir(getargs.source)): - raise Exception("Could not find directory.") -if(not os.path.exists(pkgsetuppy) or not os.path.isfile(pkgsetuppy)): - raise Exception("Could not find setup.py in directory.") - -getargs.codename = getargs.codename.lower() -if(not getargs.codename in distnamelist): - print("Could not build for debian "+getargs.codename+" codename.") - sys.exit() - -pypkgenlistp = subprocess.Popen( - [pyexecpath, pkgsetuppy, "getversioninfo"], stdout=subprocess.PIPE, stderr=subprocess.PIPE) -pypkgenout, pypkgenerr = pypkgenlistp.communicate() -if(sys.version[0] == "3"): - pypkgenout = pypkgenout.decode('utf-8') -pymodule = json.loads(pypkgenout) -setuppy_verinfo = pymodule['versionlist'] -setuppy_author = pymodule['author'] -setuppy_authoremail = pymodule['authoremail'] -setuppy_maintainer = pymodule['maintainer'] -setuppy_maintaineremail = pymodule['maintaineremail'] -setuppy_description = pymodule['description'] -setuppy_license = pymodule['license'] -setuppy_keywords = pymodule['keywords'] -setuppy_url = pymodule['url'] -setuppy_downloadurl = pymodule['downloadurl'] -setuppy_longdescription = pymodule['longdescription'] -setuppy_platforms = pymodule['platforms'] -standverfilename = os.path.realpath(os.path.sep+"usr"+os.path.sep+"share"+os.path.sep + - "lintian"+os.path.sep+"data"+os.path.sep+"standards-version"+os.path.sep+"release-dates") -standverfile = open(standverfilename, "r") -standverdata = standverfile.read() -standverfile.close() -getstandver = re.findall("([0-9]\.[0-9]\.[0-9])\s+([0-9]+)", standverdata) -getcurstandver = getstandver[0][0] -dpkglocatout = which_exec("dpkg") -pydpkglistp = subprocess.Popen( - [dpkglocatout, "-s", "debhelper"], stdout=subprocess.PIPE, stderr=subprocess.PIPE) -pydpkgout, pydpkgerr = pydpkglistp.communicate() -if(sys.version[0] == "3"): - pydpkgout = pydpkgout.decode("utf-8") -pydpkg_esc = re.escape("Version:")+'\s+([0-9])'+re.escape(".") -pydpkg_val = re.findall(pydpkg_esc, pydpkgout)[0] - -if(sys.version[0] == "2"): - pkgsource = "py2www-get" -if(sys.version[0] == "3"): - pkgsource = "py3www-get" -pkgupstreamname = "PyWWW-Get" -pkgveralt = str(setuppy_verinfo[0])+"." + \ - str(setuppy_verinfo[1])+"."+str(setuppy_verinfo[2]) -pkgver = str(pkgveralt)+"~rc"+str(setuppy_verinfo[4])+"~"+getargs.codename+str( - distnametover.get(getargs.codename, "1").replace(".", "")) -pkgdistname = getargs.codename -pkgurgency = "urgency=low" -pkgauthorname = setuppy_author -pkgauthoremail = setuppy_authoremail -pkgauthor = pkgauthorname+" <"+pkgauthoremail+">" -pkgmaintainername = setuppy_maintainer -pkgmaintaineremail = setuppy_maintaineremail -pkgmaintainer = pkgmaintainername+" <"+pkgmaintaineremail+">" -pkggiturl = "https://github.com/GameMaker2k/PyWWW-Get.git" -pkghomepage = setuppy_url -pkgsection = "python" -pkgpriority = "optional" -if(sys.version[0] == "2"): - pkgbuilddepends = "python-setuptools, python-all, debhelper, dh-python, devscripts" -if(sys.version[0] == "3"): - pkgbuilddepends = "python3-setuptools, python3-all, debhelper, dh-python, devscripts" -if(getargs.codename == "squeeze" or getargs.codename == "wheezy"): - if(sys.version[0] == "2"): - pkgbuilddepends = "python-setuptools, python-all, debhelper, dh-python, devscripts" - if(sys.version[0] == "3"): - pkgbuilddepends = "python3-setuptools, python3-all, debhelper, dh-python, devscripts" -pkgstandardsversion = getcurstandver -if(sys.version[0] == "2"): - pkgpackage = "python-pywww-get" - pkgoldname = "python-www-get" -if(sys.version[0] == "3"): - pkgpackage = "python3-pywww-get" - pkgoldname = "python3-www-get" -pkgarchitecture = "all" -if(sys.version[0] == "2"): - pkgdepends = "${misc:Depends}, ${python:Depends}" -if(sys.version[0] == "3"): - pkgdepends = "${misc:Depends}, ${python3:Depends}" -pkgdescription = setuppy_description+"\n "+setuppy_longdescription -pkgtzstr = time.strftime("%a, %d %b %Y %H:%M:%S %z") - -if(getargs.getsource == True): - print(getargs.source) - sys.exit() -if(getargs.getparent == True): - print(os.path.realpath(os.path.dirname(getargs.source))) - sys.exit() -if(getargs.getdirname == True): - print(pkgsource+"_"+pkgveralt+".orig") - sys.exit() -if(getargs.gettarname == True): - print(pkgsource+"_"+pkgveralt+".orig.tar.gz") - sys.exit() -if(getargs.getpkgsource == True): - print(pkgsource) - sys.exit() - -print("generating debian package build directory") - -debpkg_debian_dir = os.path.realpath(getargs.source+os.path.sep+"debian") -print("creating directory "+debpkg_debian_dir) -if(not os.path.exists(debpkg_debian_dir)): - os.makedirs(debpkg_debian_dir) -os.chmod(debpkg_debian_dir, int("0755", 8)) - -debpkg_changelog_file = os.path.realpath( - debpkg_debian_dir+os.path.sep+"changelog") -print("generating file "+debpkg_changelog_file) -debpkg_string_temp = pkgsource + \ - " ("+pkgver+") "+pkgdistname+"; "+pkgurgency+"\n\n" -debpkg_string_temp += " * source package automatically created by "+profullname+"\n\n" -debpkg_string_temp += " -- "+pkgmaintainer+" "+pkgtzstr+"\n" -debpkg_file_temp = open(debpkg_changelog_file, "w") -debpkg_file_temp.write(debpkg_string_temp) -debpkg_file_temp.close() -os.chmod(debpkg_changelog_file, int("0644", 8)) - -debpkg_compat_file = os.path.realpath(debpkg_debian_dir+os.path.sep+"compat") -print("generating file "+debpkg_compat_file) -debpkg_string_temp = str(pydpkg_val)+"\n" -debpkg_file_temp = open(debpkg_compat_file, "w") -debpkg_file_temp.write(debpkg_string_temp) -debpkg_file_temp.close() -os.chmod(debpkg_compat_file, int("0644", 8)) - -debpkg_control_file = os.path.realpath(debpkg_debian_dir+os.path.sep+"control") -print("generating file "+debpkg_control_file) -debpkg_string_temp = "Source: "+pkgsource+"\n" -debpkg_string_temp += "Maintainer: "+pkgmaintainer+"\n" -debpkg_string_temp += "Homepage: "+pkghomepage+"\n" -debpkg_string_temp += "Vcs-Git: "+pkggiturl+"\n" -debpkg_string_temp += "Vcs-Browser: "+pkghomepage+"\n" -debpkg_string_temp += "Section: "+pkgsection+"\n" -debpkg_string_temp += "Priority: "+pkgpriority+"\n" -debpkg_string_temp += "Build-Depends: "+pkgbuilddepends+"\n" -debpkg_string_temp += "Standards-Version: "+pkgstandardsversion+"\n\n" -debpkg_string_temp += "Package: "+pkgpackage+"\n" -debpkg_string_temp += "Architecture: "+pkgarchitecture+"\n" -debpkg_string_temp += "Depends: "+pkgdepends+"\n" -debpkg_string_temp += "Replaces: "+pkgoldname+"\n" -debpkg_string_temp += "Description: "+pkgdescription+"\n" -debpkg_file_temp = open(debpkg_control_file, "w") -debpkg_file_temp.write(debpkg_string_temp) -debpkg_file_temp.close() -os.chmod(debpkg_control_file, int("0644", 8)) - -debpkg_copyright_file = os.path.realpath( - debpkg_debian_dir+os.path.sep+"copyright") -print("generating file "+debpkg_copyright_file) -debpkg_string_temp = "Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/\n" -debpkg_string_temp += "Upstream-Name: "+pkgupstreamname+"\n" -debpkg_string_temp += "Source: "+pkghomepage+"\n\n" -debpkg_string_temp += "Files: *\n" -debpkg_string_temp += "Copyright: Copyright 2011-2016 "+pkgauthor+"\n" -debpkg_string_temp += "License: BSD\n\n" -debpkg_string_temp += "License: BSD\n" -debpkg_string_temp += " Revised BSD License\n\n" -debpkg_string_temp += "Copyright (C) 2011-2016 Game Maker 2k. \n" -debpkg_string_temp += "All rights reserved.\n\n" -debpkg_string_temp += "Redistribution and use in source and binary forms, with or without\n" -debpkg_string_temp += "modification, are permitted provided that the following conditions are met:\n\n" -debpkg_string_temp += " 1. Redistributions of source code must retain the above copyright notice,\n" -debpkg_string_temp += " this list of conditions and the following disclaimer.\n\n" -debpkg_string_temp += " 2. Redistributions in binary form must reproduce the above copyright \n" -debpkg_string_temp += " notice, this list of conditions and the following disclaimer in \n" -debpkg_string_temp += " the documentation and/or other materials provided with the distribution.\n\n" -debpkg_string_temp += " 3. Neither the name of Game Maker 2k nor the names of its contributors\n" -debpkg_string_temp += " may be used to endorse or promote products derived from this software\n" -debpkg_string_temp += " without specific prior written permission.\n\n" -debpkg_string_temp += "THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS IS\" \n" -debpkg_string_temp += "AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE \n" -debpkg_string_temp += "IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE \n" -debpkg_string_temp += "ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE \n" -debpkg_string_temp += "LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR \n" -debpkg_string_temp += "CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF \n" -debpkg_string_temp += "SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS \n" -debpkg_string_temp += "INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN \n" -debpkg_string_temp += "CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) \n" -debpkg_string_temp += "ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF \n" -debpkg_string_temp += "THE POSSIBILITY OF SUCH DAMAGE.\n\n" -debpkg_string_temp += "The views and conclusions contained in the software and documentation are those of the\n" -debpkg_string_temp += "authors and should not be interpreted as representing official policies, either expressed\n" -debpkg_string_temp += "or implied, of Game Maker 2k.\n" -debpkg_file_temp = open(debpkg_copyright_file, "w") -debpkg_file_temp.write(debpkg_string_temp) -debpkg_file_temp.close() -os.chmod(debpkg_copyright_file, int("0644", 8)) - -debpkg_rules_file = os.path.realpath(debpkg_debian_dir+os.path.sep+"rules") -print("generating file "+debpkg_rules_file) -if(sys.version[0] == "2" and (buildsystem == "python" or buildsystem == "python_distutils")): - debpkg_string_temp = "#!/usr/bin/make -f\n\n" - debpkg_string_temp += "# This file was automatically generated by "+profullname+" at\n" - debpkg_string_temp += "# "+pkgtzstr+"\n\n" - debpkg_string_temp += "export DH_VERBOSE=1\n\n" - debpkg_string_temp += "%:\n" - debpkg_string_temp += " dh $@ --with python2 --buildsystem=python_distutils\n" -if(sys.version[0] == "3" and (buildsystem == "python" or buildsystem == "python_distutils")): - debpkg_string_temp = "#!/usr/bin/make -f\n\n" - debpkg_string_temp += "# This file was automatically generated by "+profullname+" at\n" - debpkg_string_temp += "# "+pkgtzstr+"\n\n" - debpkg_string_temp += "export DH_VERBOSE=1\n\n" - debpkg_string_temp += "%:\n" - debpkg_string_temp += " dh $@ --with python3\n" - debpkg_string_temp += "override_dh_auto_build:\n" - debpkg_string_temp += " python3 setup.py build\n\n" - debpkg_string_temp += "override_dh_auto_test:\n" - debpkg_string_temp += " python3 setup.py test\n\n" - debpkg_string_temp += "override_dh_auto_install:\n" - debpkg_string_temp += " python3 setup.py install \\\n" - debpkg_string_temp += " --force --root=$(CURDIR)/debian/" + \ - pkgpackage+" \\\n" - debpkg_string_temp += " --no-compile -O0 --install-layout=deb\n\n" - debpkg_string_temp += "override_dh_auto_clean:\n" - debpkg_string_temp += " python3 setup.py clean\n" -if(sys.version[0] == "2" and (buildsystem == "pybuild" or buildsystem == "python_build")): - debpkg_string_temp = "#!/usr/bin/make -f\n\n" - debpkg_string_temp += "# This file was automatically generated by "+profullname+" at\n" - debpkg_string_temp += "# "+pkgtzstr+"\n\n" - debpkg_string_temp += "export DH_VERBOSE=1\n" - debpkg_string_temp += "export PYBUILD_NAME=pywww-get\n\n" - debpkg_string_temp += "%:\n" - debpkg_string_temp += " dh $@ --with python2 --buildsystem=pybuild\n" -if(sys.version[0] == "3" and (buildsystem == "pybuild" or buildsystem == "python_build")): - debpkg_string_temp = "#!/usr/bin/make -f\n\n" - debpkg_string_temp += "# This file was automatically generated by "+profullname+" at\n" - debpkg_string_temp += "# "+pkgtzstr+"\n\n" - debpkg_string_temp += "export DH_VERBOSE=1\n" - debpkg_string_temp += "export PYBUILD_NAME=pywww-get\n\n" - debpkg_string_temp += "%:\n" - debpkg_string_temp += " dh $@ --with python3 --buildsystem=pybuild\n" -if((sys.version[0] == "2" or sys.version[0] == "3") and buildsystem == "cmake"): - debpkg_string_temp = "#!/usr/bin/make -f\n\n" - debpkg_string_temp += "# This file was automatically generated by "+profullname+" at\n" - debpkg_string_temp += "# "+pkgtzstr+"\n\n" - debpkg_string_temp += "export DH_VERBOSE=1\n\n" - debpkg_string_temp += "%:\n" - debpkg_string_temp += " dh $@ --buildsystem=cmake --parallel\n" -debpkg_file_temp = open(debpkg_rules_file, "w") -debpkg_file_temp.write(debpkg_string_temp) -debpkg_file_temp.close() -os.chmod(debpkg_rules_file, int("0755", 8)) - -debpkg_source_dir = os.path.realpath(debpkg_debian_dir+os.path.sep+"source") -print("creating directory "+debpkg_source_dir) -if(not os.path.exists(debpkg_source_dir)): - os.makedirs(debpkg_source_dir) -os.chmod(debpkg_source_dir, int("0755", 8)) - -debpkg_format_file = os.path.realpath(debpkg_source_dir+os.path.sep+"format") -print("generating file "+debpkg_format_file) -debpkg_string_temp = "3.0 (native)\n" -debpkg_file_temp = open(debpkg_format_file, "w") -debpkg_file_temp.write(debpkg_string_temp) -debpkg_file_temp.close() -os.chmod(debpkg_format_file, int("0644", 8)) - -debpkg_options_file = os.path.realpath(debpkg_source_dir+os.path.sep+"options") -print("generating file "+debpkg_options_file) -debpkg_string_temp = "extend-diff-ignore=\"\\.egg-info\"\n" -debpkg_file_temp = open(debpkg_options_file, "w") -debpkg_file_temp.write(debpkg_string_temp) -debpkg_file_temp.close() -os.chmod(debpkg_options_file, int("0644", 8)) diff --git a/pkgbuild/debian/python2/pydeb-gen.sh b/pkgbuild/debian/python2/pydeb-gen.sh deleted file mode 100755 index c122026..0000000 --- a/pkgbuild/debian/python2/pydeb-gen.sh +++ /dev/null @@ -1,45 +0,0 @@ -#!/usr/bin/env bash - -pythonexec="$(command -v python2)" -if hash realpath 2>/dev/null; then - pyrealpath="$(command -v realpath)" - scriptdir="$(${pyrealpath} $(dirname $(readlink -f $0)))" -else - scriptdir="$(dirname $(readlink -f $0))" - pyrealpath="${pythonexec} ${scriptdir}/realpath.py" - scriptdir="$(${pyrealpath} ${scriptdir})" - pyrealpath="${pythonexec} ${scriptdir}/realpath.py" -fi -pyscriptfile="${scriptdir}/pydeb-gen.py" -pyshellfile="${scriptdir}/pydeb-gen.sh" -codename="jessie" -oldwd="$(pwd)" - -if [ $# -eq 0 ]; then - pypkgdir="$(${pythonexec} "${pyscriptfile}" -g)" - pypkgparentdir="$(${pythonexec} "${pyscriptfile}" -s "${pypkgdir}" -p)" - pypkgtarname="$(${pythonexec} "${pyscriptfile}" -s "${pypkgdir}" -t)" - pypkgdirname="$(${pythonexec} "${pyscriptfile}" -s "${pypkgdir}" -d)" - pypkgsource="$(${pythonexec} "${pyscriptfile}" -s "${pypkgdir}" -e)" -fi -if [ $# -gt 0 ]; then - if [ $# -gt 1 ]; then - codename="${2}" - fi - pypkgdir="$(${pythonexec} "${pyscriptfile}" -s "${1}" -g)" - pypkgparentdir="$(${pythonexec} "${pyscriptfile}" -s "${pypkgdir}" -p)" - pypkgtarname="$(${pythonexec} "${pyscriptfile}" -s "${pypkgdir}" -t)" - pypkgdirname="$(${pythonexec} "${pyscriptfile}" -s "${pypkgdir}" -d)" - pypkgsource="$(${pythonexec} "${pyscriptfile}" -s "${pypkgdir}" -e)" -fi - -cd "${pypkgdir}" -${pythonexec} "./setup.py" "sdist" -srcfiles="$(${pythonexec} "${pypkgdir}/setup.py" getsourceinfo)" -cd "${pypkgparentdir}" -tar -cavvf "${pypkgparentdir}/${pypkgtarname}" --transform="s/$(basename ${pypkgdir})/${pypkgdirname}/" ${srcfiles} -file -z -k "${pypkgparentdir}/${pypkgtarname}" -cd "${pypkgdir}" -${pythonexec} "${pypkgdir}/setup.py" cleansourceinfo -${pythonexec} "${pyscriptfile}" -s "${pypkgdir}" -c "${codename}" -cd "${oldwd}" diff --git a/pkgbuild/debian/python2/realpath.py b/pkgbuild/debian/python2/realpath.py deleted file mode 100755 index b2e441f..0000000 --- a/pkgbuild/debian/python2/realpath.py +++ /dev/null @@ -1,39 +0,0 @@ -#!/usr/bin/env python2 - -''' - This program is free software; you can redistribute it and/or modify - it under the terms of the Revised BSD License. - - 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 - Revised BSD License for more details. - - Copyright 2011-2016 Game Maker 2k - https://github.com/GameMaker2k - Copyright 2011-2016 Kazuki Przyborowski - https://github.com/KazukiPrzyborowski - - $FileInfo: realpath.py - Last Update: 2/15/2016 Ver. 0.0.5 RC 3 - Author: cooldude2k $ -''' - -from __future__ import absolute_import, division, print_function, unicode_literals -import os -import sys -import argparse - -__version_info__ = (0, 0, 5, "rc3") -if(__version_info__[3] != None): - __version__ = str(__version_info__[0])+"."+str(__version_info__[1])+"."+str( - __version_info__[2])+"+"+str(__version_info__[3]) -if(__version_info__[3] == None): - __version__ = str( - __version_info__[0])+"."+str(__version_info__[1])+"."+str(__version_info__[2]) - -proname = "realpath" -prover = __version__ -profullname = proname+" "+prover - -parser = argparse.ArgumentParser(conflict_handler="resolve", add_help=True) -parser.add_argument("-v", "--version", action="version", version=profullname) -parser.add_argument("filepath", help="enter a file name/path") -getargs = parser.parse_args() -print(os.path.realpath(getargs.filepath)) diff --git a/pkgbuild/debian/python2/which.py b/pkgbuild/debian/python2/which.py deleted file mode 100755 index e5cf271..0000000 --- a/pkgbuild/debian/python2/which.py +++ /dev/null @@ -1,46 +0,0 @@ -#!/usr/bin/env python2 - -''' - This program is free software; you can redistribute it and/or modify - it under the terms of the Revised BSD License. - - 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 - Revised BSD License for more details. - - Copyright 2011-2016 Game Maker 2k - https://github.com/GameMaker2k - Copyright 2011-2016 Kazuki Przyborowski - https://github.com/KazukiPrzyborowski - - $FileInfo: which.py - Last Update: 2/15/2016 Ver. 0.0.5 RC 3 - Author: cooldude2k $ -''' - -from __future__ import absolute_import, division, print_function, unicode_literals -import os -import sys -import argparse - -__version_info__ = (0, 0, 5, "rc3") -if(__version_info__[3] != None): - __version__ = str(__version_info__[0])+"."+str(__version_info__[1])+"."+str( - __version_info__[2])+"+"+str(__version_info__[3]) -if(__version_info__[3] == None): - __version__ = str( - __version_info__[0])+"."+str(__version_info__[1])+"."+str(__version_info__[2]) - -proname = "which" -prover = __version__ -profullname = proname+" "+prover - - -def which_exec(execfile): - for path in os.environ["PATH"].split(":"): - if os.path.exists(path + "/" + execfile): - return path + "/" + execfile - - -parser = argparse.ArgumentParser(conflict_handler="resolve", add_help=True) -parser.add_argument("-v", "--version", action="version", version=profullname) -parser.add_argument("filename", help="enter a file name/path") -getargs = parser.parse_args() -print(which_exec(getargs.filename)) diff --git a/pkgbuild/debian/python3/basename.py b/pkgbuild/debian/python3/basename.py deleted file mode 100755 index 346121c..0000000 --- a/pkgbuild/debian/python3/basename.py +++ /dev/null @@ -1,39 +0,0 @@ -#!/usr/bin/env python3 - -''' - This program is free software; you can redistribute it and/or modify - it under the terms of the Revised BSD License. - - 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 - Revised BSD License for more details. - - Copyright 2011-2016 Game Maker 2k - https://github.com/GameMaker2k - Copyright 2011-2016 Kazuki Przyborowski - https://github.com/KazukiPrzyborowski - - $FileInfo: basename.py - Last Update: 2/15/2016 Ver. 0.0.5 RC 3 - Author: cooldude2k $ -''' - -from __future__ import absolute_import, division, print_function, unicode_literals -import os -import sys -import argparse - -__version_info__ = (0, 0, 5, "rc3") -if(__version_info__[3] != None): - __version__ = str(__version_info__[0])+"."+str(__version_info__[1])+"."+str( - __version_info__[2])+"+"+str(__version_info__[3]) -if(__version_info__[3] == None): - __version__ = str( - __version_info__[0])+"."+str(__version_info__[1])+"."+str(__version_info__[2]) - -proname = "basename" -prover = __version__ -profullname = proname+" "+prover - -parser = argparse.ArgumentParser(conflict_handler="resolve", add_help=True) -parser.add_argument("-v", "--version", action="version", version=profullname) -parser.add_argument("filepath", help="enter a file name/path") -getargs = parser.parse_args() -print(os.path.basename(getargs.filepath)) diff --git a/pkgbuild/debian/python3/dirname.py b/pkgbuild/debian/python3/dirname.py deleted file mode 100755 index 080502f..0000000 --- a/pkgbuild/debian/python3/dirname.py +++ /dev/null @@ -1,39 +0,0 @@ -#!/usr/bin/env python3 - -''' - This program is free software; you can redistribute it and/or modify - it under the terms of the Revised BSD License. - - 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 - Revised BSD License for more details. - - Copyright 2011-2016 Game Maker 2k - https://github.com/GameMaker2k - Copyright 2011-2016 Kazuki Przyborowski - https://github.com/KazukiPrzyborowski - - $FileInfo: dirname.py - Last Update: 2/15/2016 Ver. 0.0.5 RC 3 - Author: cooldude2k $ -''' - -from __future__ import absolute_import, division, print_function, unicode_literals -import os -import sys -import argparse - -__version_info__ = (0, 0, 5, "rc3") -if(__version_info__[3] != None): - __version__ = str(__version_info__[0])+"."+str(__version_info__[1])+"."+str( - __version_info__[2])+"+"+str(__version_info__[3]) -if(__version_info__[3] == None): - __version__ = str( - __version_info__[0])+"."+str(__version_info__[1])+"."+str(__version_info__[2]) - -proname = "dirname" -prover = __version__ -profullname = proname+" "+prover - -parser = argparse.ArgumentParser(conflict_handler="resolve", add_help=True) -parser.add_argument("-v", "--version", action="version", version=profullname) -parser.add_argument("filepath", help="enter a file name/path") -getargs = parser.parse_args() -print(os.path.dirname(getargs.filepath)) diff --git a/pkgbuild/debian/python3/pydeb-gen.py b/pkgbuild/debian/python3/pydeb-gen.py deleted file mode 100755 index d042064..0000000 --- a/pkgbuild/debian/python3/pydeb-gen.py +++ /dev/null @@ -1,356 +0,0 @@ -#!/usr/bin/env python3 - -''' - This program is free software; you can redistribute it and/or modify - it under the terms of the Revised BSD License. - - 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 - Revised BSD License for more details. - - Copyright 2011-2016 Game Maker 2k - https://github.com/GameMaker2k - Copyright 2011-2016 Kazuki Przyborowski - https://github.com/KazukiPrzyborowski - - $FileInfo: pydeb-gen.py - Last Update: 6/1/2016 Ver. 0.2.0 RC 1 - Author: cooldude2k $ -''' - -from __future__ import absolute_import, division, print_function, unicode_literals -import re -import os -import sys -import time -import datetime -import argparse -import subprocess -import json - -__version_info__ = (0, 2, 0, "rc1") -if(__version_info__[3] != None): - __version__ = str(__version_info__[0])+"."+str(__version_info__[1])+"."+str( - __version_info__[2])+"+"+str(__version_info__[3]) -if(__version_info__[3] == None): - __version__ = str( - __version_info__[0])+"."+str(__version_info__[1])+"."+str(__version_info__[2]) - -proname = "pydeb-gen" -prover = __version__ -profullname = proname+" "+prover -buildsystem = "pybuild" - - -def which_exec(execfile): - for path in os.environ["PATH"].split(":"): - if os.path.exists(path + "/" + execfile): - return path + "/" + execfile - - -distvertoupname = {'10.0': "Buster", '9.0': "Stretch", '8.0': "Jessie", '7.0': "Wheezy", '6.0': "Squeeze", '5.0': "Lenny", '4.0': "Etch", - '3.1': "Sarge", '3.0': "Woody", '2.2': "Potato", '2.1': "Slink", '2.0': "Hamm", '1.3': "Bo", '1.2': "Rex", '1.1': "Buzz", '0.0': "Sid"} -distvertoname = {'10.0': "buster", '9.0': "stretch", '8.0': "jessie", '7.0': "wheezy", '6.0': "squeeze", '5.0': "lenny", '4.0': "etch", - '3.1': "sarge", '3.0': "woody", '2.2': "potato", '2.1': "slink", '2.0': "hamm", '1.3': "bo", '1.2': "rex", '1.1': "buzz", '0.0': "sid"} -distnamelist = distvertoname.values() -distnametover = {'buster': "10.0", 'stretch': "9.0", 'jessie': "8.0", 'wheezy': "7.0", 'squeeze': "6.0", 'lenny': "5.0", 'etch': "4.0", - 'sarge': "3.1", 'woody': "3.0", 'potato': "2.2", 'slink': "2.1", 'hamm': "2.0", 'bo': "1.3", 'rex': "1.2", 'buzz': "1.1", 'sid': "0.0"} -distupnametover = {'Buster': "10.0", 'Stretch': "9.0", 'Jessie': "8.0", 'Wheezy': "7.0", 'Squeeze': "6.0", 'Lenny': "5.0", 'Etch': "4.0", - 'Sarge': "3.1", 'Woody': "3.0", 'Potato': "2.2", 'Slink': "2.1", 'Hamm': "2.0", 'Bo': "1.3", 'Rex': "1.2", 'Buzz': "1.1", 'Sid': "0.0"} -distnamelistalt = distnametover.keys() - -debian_oldstable = "wheezy" -debian_stable = "jessie" -debian_unstable = "sid" -debian_testing = "stretch" -debian_nexttesting = "buster" - -parser = argparse.ArgumentParser(conflict_handler="resolve", add_help=True) -parser.add_argument("-v", "--version", action="version", version=profullname) -parser.add_argument( - "-s", "--source", default=os.path.realpath(os.getcwd()), help="source dir") -parser.add_argument("-g", "--getsource", - action="store_true", help="get source dir") -parser.add_argument("-p", "--getparent", - action="store_true", help="get parent dir") -parser.add_argument("-t", "--gettarname", - action="store_true", help="get tar name") -parser.add_argument("-d", "--getdirname", - action="store_true", help="get dir name") -parser.add_argument("-c", "--codename", default=debian_stable, - help="enter release code name") -parser.add_argument("-e", "--getpkgsource", - action="store_true", help="get pkg source") -getargs = parser.parse_args() -getargs.source = os.path.realpath(getargs.source) -pkgsetuppy = os.path.realpath(getargs.source+os.path.sep+"setup.py") -pyexecpath = os.path.realpath(sys.executable) -if(not os.path.exists(getargs.source) or not os.path.isdir(getargs.source)): - raise Exception("Could not find directory.") -if(not os.path.exists(pkgsetuppy) or not os.path.isfile(pkgsetuppy)): - raise Exception("Could not find setup.py in directory.") - -getargs.codename = getargs.codename.lower() -if(not getargs.codename in distnamelist): - print("Could not build for debian "+getargs.codename+" codename.") - sys.exit() - -pypkgenlistp = subprocess.Popen( - [pyexecpath, pkgsetuppy, "getversioninfo"], stdout=subprocess.PIPE, stderr=subprocess.PIPE) -pypkgenout, pypkgenerr = pypkgenlistp.communicate() -if(sys.version[0] == "3"): - pypkgenout = pypkgenout.decode('utf-8') -pymodule = json.loads(pypkgenout) -setuppy_verinfo = pymodule['versionlist'] -setuppy_author = pymodule['author'] -setuppy_authoremail = pymodule['authoremail'] -setuppy_maintainer = pymodule['maintainer'] -setuppy_maintaineremail = pymodule['maintaineremail'] -setuppy_description = pymodule['description'] -setuppy_license = pymodule['license'] -setuppy_keywords = pymodule['keywords'] -setuppy_url = pymodule['url'] -setuppy_downloadurl = pymodule['downloadurl'] -setuppy_longdescription = pymodule['longdescription'] -setuppy_platforms = pymodule['platforms'] -standverfilename = os.path.realpath(os.path.sep+"usr"+os.path.sep+"share"+os.path.sep + - "lintian"+os.path.sep+"data"+os.path.sep+"standards-version"+os.path.sep+"release-dates") -standverfile = open(standverfilename, "r") -standverdata = standverfile.read() -standverfile.close() -getstandver = re.findall("([0-9]\.[0-9]\.[0-9])\s+([0-9]+)", standverdata) -getcurstandver = getstandver[0][0] -dpkglocatout = which_exec("dpkg") -pydpkglistp = subprocess.Popen( - [dpkglocatout, "-s", "debhelper"], stdout=subprocess.PIPE, stderr=subprocess.PIPE) -pydpkgout, pydpkgerr = pydpkglistp.communicate() -if(sys.version[0] == "3"): - pydpkgout = pydpkgout.decode("utf-8") -pydpkg_esc = re.escape("Version:")+'\s+([0-9])'+re.escape(".") -pydpkg_val = re.findall(pydpkg_esc, pydpkgout)[0] - -if(sys.version[0] == "2"): - pkgsource = "py2www-get" -if(sys.version[0] == "3"): - pkgsource = "py3www-get" -pkgupstreamname = "PyWWW-Get" -pkgveralt = str(setuppy_verinfo[0])+"." + \ - str(setuppy_verinfo[1])+"."+str(setuppy_verinfo[2]) -pkgver = str(pkgveralt)+"~rc"+str(setuppy_verinfo[4])+"~"+getargs.codename+str( - distnametover.get(getargs.codename, "1").replace(".", "")) -pkgdistname = getargs.codename -pkgurgency = "urgency=low" -pkgauthorname = setuppy_author -pkgauthoremail = setuppy_authoremail -pkgauthor = pkgauthorname+" <"+pkgauthoremail+">" -pkgmaintainername = setuppy_maintainer -pkgmaintaineremail = setuppy_maintaineremail -pkgmaintainer = pkgmaintainername+" <"+pkgmaintaineremail+">" -pkggiturl = "https://github.com/GameMaker2k/PyWWW-Get.git" -pkghomepage = setuppy_url -pkgsection = "python" -pkgpriority = "optional" -if(sys.version[0] == "2"): - pkgbuilddepends = "python-setuptools, python-all, debhelper, dh-python, devscripts" -if(sys.version[0] == "3"): - pkgbuilddepends = "python3-setuptools, python3-all, debhelper, dh-python, devscripts" -if(getargs.codename == "squeeze" or getargs.codename == "wheezy"): - if(sys.version[0] == "2"): - pkgbuilddepends = "python-setuptools, python-all, debhelper, dh-python, devscripts" - if(sys.version[0] == "3"): - pkgbuilddepends = "python3-setuptools, python3-all, debhelper, dh-python, devscripts" -pkgstandardsversion = getcurstandver -if(sys.version[0] == "2"): - pkgpackage = "python-pywww-get" - pkgoldname = "python-www-get" -if(sys.version[0] == "3"): - pkgpackage = "python3-pywww-get" - pkgoldname = "python3-www-get" -pkgarchitecture = "all" -if(sys.version[0] == "2"): - pkgdepends = "${misc:Depends}, ${python:Depends}" -if(sys.version[0] == "3"): - pkgdepends = "${misc:Depends}, ${python3:Depends}" -pkgdescription = setuppy_description+"\n "+setuppy_longdescription -pkgtzstr = time.strftime("%a, %d %b %Y %H:%M:%S %z") - -if(getargs.getsource == True): - print(getargs.source) - sys.exit() -if(getargs.getparent == True): - print(os.path.realpath(os.path.dirname(getargs.source))) - sys.exit() -if(getargs.getdirname == True): - print(pkgsource+"_"+pkgveralt+".orig") - sys.exit() -if(getargs.gettarname == True): - print(pkgsource+"_"+pkgveralt+".orig.tar.gz") - sys.exit() -if(getargs.getpkgsource == True): - print(pkgsource) - sys.exit() - -print("generating debian package build directory") - -debpkg_debian_dir = os.path.realpath(getargs.source+os.path.sep+"debian") -print("creating directory "+debpkg_debian_dir) -if(not os.path.exists(debpkg_debian_dir)): - os.makedirs(debpkg_debian_dir) -os.chmod(debpkg_debian_dir, int("0755", 8)) - -debpkg_changelog_file = os.path.realpath( - debpkg_debian_dir+os.path.sep+"changelog") -print("generating file "+debpkg_changelog_file) -debpkg_string_temp = pkgsource + \ - " ("+pkgver+") "+pkgdistname+"; "+pkgurgency+"\n\n" -debpkg_string_temp += " * source package automatically created by "+profullname+"\n\n" -debpkg_string_temp += " -- "+pkgmaintainer+" "+pkgtzstr+"\n" -debpkg_file_temp = open(debpkg_changelog_file, "w") -debpkg_file_temp.write(debpkg_string_temp) -debpkg_file_temp.close() -os.chmod(debpkg_changelog_file, int("0644", 8)) - -debpkg_compat_file = os.path.realpath(debpkg_debian_dir+os.path.sep+"compat") -print("generating file "+debpkg_compat_file) -debpkg_string_temp = str(pydpkg_val)+"\n" -debpkg_file_temp = open(debpkg_compat_file, "w") -debpkg_file_temp.write(debpkg_string_temp) -debpkg_file_temp.close() -os.chmod(debpkg_compat_file, int("0644", 8)) - -debpkg_control_file = os.path.realpath(debpkg_debian_dir+os.path.sep+"control") -print("generating file "+debpkg_control_file) -debpkg_string_temp = "Source: "+pkgsource+"\n" -debpkg_string_temp += "Maintainer: "+pkgmaintainer+"\n" -debpkg_string_temp += "Homepage: "+pkghomepage+"\n" -debpkg_string_temp += "Vcs-Git: "+pkggiturl+"\n" -debpkg_string_temp += "Vcs-Browser: "+pkghomepage+"\n" -debpkg_string_temp += "Section: "+pkgsection+"\n" -debpkg_string_temp += "Priority: "+pkgpriority+"\n" -debpkg_string_temp += "Build-Depends: "+pkgbuilddepends+"\n" -debpkg_string_temp += "Standards-Version: "+pkgstandardsversion+"\n\n" -debpkg_string_temp += "Package: "+pkgpackage+"\n" -debpkg_string_temp += "Architecture: "+pkgarchitecture+"\n" -debpkg_string_temp += "Depends: "+pkgdepends+"\n" -debpkg_string_temp += "Replaces: "+pkgoldname+"\n" -debpkg_string_temp += "Description: "+pkgdescription+"\n" -debpkg_file_temp = open(debpkg_control_file, "w") -debpkg_file_temp.write(debpkg_string_temp) -debpkg_file_temp.close() -os.chmod(debpkg_control_file, int("0644", 8)) - -debpkg_copyright_file = os.path.realpath( - debpkg_debian_dir+os.path.sep+"copyright") -print("generating file "+debpkg_copyright_file) -debpkg_string_temp = "Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/\n" -debpkg_string_temp += "Upstream-Name: "+pkgupstreamname+"\n" -debpkg_string_temp += "Source: "+pkghomepage+"\n\n" -debpkg_string_temp += "Files: *\n" -debpkg_string_temp += "Copyright: Copyright 2011-2016 "+pkgauthor+"\n" -debpkg_string_temp += "License: BSD\n\n" -debpkg_string_temp += "License: BSD\n" -debpkg_string_temp += " Revised BSD License\n\n" -debpkg_string_temp += "Copyright (C) 2011-2016 Game Maker 2k. \n" -debpkg_string_temp += "All rights reserved.\n\n" -debpkg_string_temp += "Redistribution and use in source and binary forms, with or without\n" -debpkg_string_temp += "modification, are permitted provided that the following conditions are met:\n\n" -debpkg_string_temp += " 1. Redistributions of source code must retain the above copyright notice,\n" -debpkg_string_temp += " this list of conditions and the following disclaimer.\n\n" -debpkg_string_temp += " 2. Redistributions in binary form must reproduce the above copyright \n" -debpkg_string_temp += " notice, this list of conditions and the following disclaimer in \n" -debpkg_string_temp += " the documentation and/or other materials provided with the distribution.\n\n" -debpkg_string_temp += " 3. Neither the name of Game Maker 2k nor the names of its contributors\n" -debpkg_string_temp += " may be used to endorse or promote products derived from this software\n" -debpkg_string_temp += " without specific prior written permission.\n\n" -debpkg_string_temp += "THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS IS\" \n" -debpkg_string_temp += "AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE \n" -debpkg_string_temp += "IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE \n" -debpkg_string_temp += "ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE \n" -debpkg_string_temp += "LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR \n" -debpkg_string_temp += "CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF \n" -debpkg_string_temp += "SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS \n" -debpkg_string_temp += "INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN \n" -debpkg_string_temp += "CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) \n" -debpkg_string_temp += "ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF \n" -debpkg_string_temp += "THE POSSIBILITY OF SUCH DAMAGE.\n\n" -debpkg_string_temp += "The views and conclusions contained in the software and documentation are those of the\n" -debpkg_string_temp += "authors and should not be interpreted as representing official policies, either expressed\n" -debpkg_string_temp += "or implied, of Game Maker 2k.\n" -debpkg_file_temp = open(debpkg_copyright_file, "w") -debpkg_file_temp.write(debpkg_string_temp) -debpkg_file_temp.close() -os.chmod(debpkg_copyright_file, int("0644", 8)) - -debpkg_rules_file = os.path.realpath(debpkg_debian_dir+os.path.sep+"rules") -print("generating file "+debpkg_rules_file) -if(sys.version[0] == "2" and (buildsystem == "python" or buildsystem == "python_distutils")): - debpkg_string_temp = "#!/usr/bin/make -f\n\n" - debpkg_string_temp += "# This file was automatically generated by "+profullname+" at\n" - debpkg_string_temp += "# "+pkgtzstr+"\n\n" - debpkg_string_temp += "export DH_VERBOSE=1\n\n" - debpkg_string_temp += "%:\n" - debpkg_string_temp += " dh $@ --with python2 --buildsystem=python_distutils\n" -if(sys.version[0] == "3" and (buildsystem == "python" or buildsystem == "python_distutils")): - debpkg_string_temp = "#!/usr/bin/make -f\n\n" - debpkg_string_temp += "# This file was automatically generated by "+profullname+" at\n" - debpkg_string_temp += "# "+pkgtzstr+"\n\n" - debpkg_string_temp += "export DH_VERBOSE=1\n\n" - debpkg_string_temp += "%:\n" - debpkg_string_temp += " dh $@ --with python3\n" - debpkg_string_temp += "override_dh_auto_build:\n" - debpkg_string_temp += " python3 setup.py build\n\n" - debpkg_string_temp += "override_dh_auto_test:\n" - debpkg_string_temp += " python3 setup.py test\n\n" - debpkg_string_temp += "override_dh_auto_install:\n" - debpkg_string_temp += " python3 setup.py install \\\n" - debpkg_string_temp += " --force --root=$(CURDIR)/debian/" + \ - pkgpackage+" \\\n" - debpkg_string_temp += " --no-compile -O0 --install-layout=deb\n\n" - debpkg_string_temp += "override_dh_auto_clean:\n" - debpkg_string_temp += " python3 setup.py clean\n" -if(sys.version[0] == "2" and (buildsystem == "pybuild" or buildsystem == "python_build")): - debpkg_string_temp = "#!/usr/bin/make -f\n\n" - debpkg_string_temp += "# This file was automatically generated by "+profullname+" at\n" - debpkg_string_temp += "# "+pkgtzstr+"\n\n" - debpkg_string_temp += "export DH_VERBOSE=1\n" - debpkg_string_temp += "export PYBUILD_NAME=pywww-get\n\n" - debpkg_string_temp += "%:\n" - debpkg_string_temp += " dh $@ --with python2 --buildsystem=pybuild\n" -if(sys.version[0] == "3" and (buildsystem == "pybuild" or buildsystem == "python_build")): - debpkg_string_temp = "#!/usr/bin/make -f\n\n" - debpkg_string_temp += "# This file was automatically generated by "+profullname+" at\n" - debpkg_string_temp += "# "+pkgtzstr+"\n\n" - debpkg_string_temp += "export DH_VERBOSE=1\n" - debpkg_string_temp += "export PYBUILD_NAME=pywww-get\n\n" - debpkg_string_temp += "%:\n" - debpkg_string_temp += " dh $@ --with python3 --buildsystem=pybuild\n" -if((sys.version[0] == "2" or sys.version[0] == "3") and buildsystem == "cmake"): - debpkg_string_temp = "#!/usr/bin/make -f\n\n" - debpkg_string_temp += "# This file was automatically generated by "+profullname+" at\n" - debpkg_string_temp += "# "+pkgtzstr+"\n\n" - debpkg_string_temp += "export DH_VERBOSE=1\n\n" - debpkg_string_temp += "%:\n" - debpkg_string_temp += " dh $@ --buildsystem=cmake --parallel\n" -debpkg_file_temp = open(debpkg_rules_file, "w") -debpkg_file_temp.write(debpkg_string_temp) -debpkg_file_temp.close() -os.chmod(debpkg_rules_file, int("0755", 8)) - -debpkg_source_dir = os.path.realpath(debpkg_debian_dir+os.path.sep+"source") -print("creating directory "+debpkg_source_dir) -if(not os.path.exists(debpkg_source_dir)): - os.makedirs(debpkg_source_dir) -os.chmod(debpkg_source_dir, int("0755", 8)) - -debpkg_format_file = os.path.realpath(debpkg_source_dir+os.path.sep+"format") -print("generating file "+debpkg_format_file) -debpkg_string_temp = "3.0 (native)\n" -debpkg_file_temp = open(debpkg_format_file, "w") -debpkg_file_temp.write(debpkg_string_temp) -debpkg_file_temp.close() -os.chmod(debpkg_format_file, int("0644", 8)) - -debpkg_options_file = os.path.realpath(debpkg_source_dir+os.path.sep+"options") -print("generating file "+debpkg_options_file) -debpkg_string_temp = "extend-diff-ignore=\"\\.egg-info\"\n" -debpkg_file_temp = open(debpkg_options_file, "w") -debpkg_file_temp.write(debpkg_string_temp) -debpkg_file_temp.close() -os.chmod(debpkg_options_file, int("0644", 8)) diff --git a/pkgbuild/debian/python3/pydeb-gen.sh b/pkgbuild/debian/python3/pydeb-gen.sh deleted file mode 100755 index 8f47fc7..0000000 --- a/pkgbuild/debian/python3/pydeb-gen.sh +++ /dev/null @@ -1,45 +0,0 @@ -#!/usr/bin/env bash - -pythonexec="$(command -v python3)" -if hash realpath 2>/dev/null; then - pyrealpath="$(command -v realpath)" - scriptdir="$(${pyrealpath} $(dirname $(readlink -f $0)))" -else - scriptdir="$(dirname $(readlink -f $0))" - pyrealpath="${pythonexec} ${scriptdir}/realpath.py" - scriptdir="$(${pyrealpath} ${scriptdir})" - pyrealpath="${pythonexec} ${scriptdir}/realpath.py" -fi -pyscriptfile="${scriptdir}/pydeb-gen.py" -pyshellfile="${scriptdir}/pydeb-gen.sh" -codename="jessie" -oldwd="$(pwd)" - -if [ $# -eq 0 ]; then - pypkgdir="$(${pythonexec} "${pyscriptfile}" -g)" - pypkgparentdir="$(${pythonexec} "${pyscriptfile}" -s "${pypkgdir}" -p)" - pypkgtarname="$(${pythonexec} "${pyscriptfile}" -s "${pypkgdir}" -t)" - pypkgdirname="$(${pythonexec} "${pyscriptfile}" -s "${pypkgdir}" -d)" - pypkgsource="$(${pythonexec} "${pyscriptfile}" -s "${pypkgdir}" -e)" -fi -if [ $# -gt 0 ]; then - if [ $# -gt 1 ]; then - codename="${2}" - fi - pypkgdir="$(${pythonexec} "${pyscriptfile}" -s "${1}" -g)" - pypkgparentdir="$(${pythonexec} "${pyscriptfile}" -s "${pypkgdir}" -p)" - pypkgtarname="$(${pythonexec} "${pyscriptfile}" -s "${pypkgdir}" -t)" - pypkgdirname="$(${pythonexec} "${pyscriptfile}" -s "${pypkgdir}" -d)" - pypkgsource="$(${pythonexec} "${pyscriptfile}" -s "${pypkgdir}" -e)" -fi - -cd "${pypkgdir}" -${pythonexec} "./setup.py" "sdist" -srcfiles="$(${pythonexec} "${pypkgdir}/setup.py" getsourceinfo)" -cd "${pypkgparentdir}" -tar -cavvf "${pypkgparentdir}/${pypkgtarname}" --transform="s/$(basename ${pypkgdir})/${pypkgdirname}/" ${srcfiles} -file -z -k "${pypkgparentdir}/${pypkgtarname}" -cd "${pypkgdir}" -${pythonexec} "${pypkgdir}/setup.py" cleansourceinfo -${pythonexec} "${pyscriptfile}" -s "${pypkgdir}" -c "${codename}" -cd "${oldwd}" diff --git a/pkgbuild/debian/python3/realpath.py b/pkgbuild/debian/python3/realpath.py deleted file mode 100755 index 7350f44..0000000 --- a/pkgbuild/debian/python3/realpath.py +++ /dev/null @@ -1,39 +0,0 @@ -#!/usr/bin/env python3 - -''' - This program is free software; you can redistribute it and/or modify - it under the terms of the Revised BSD License. - - 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 - Revised BSD License for more details. - - Copyright 2011-2016 Game Maker 2k - https://github.com/GameMaker2k - Copyright 2011-2016 Kazuki Przyborowski - https://github.com/KazukiPrzyborowski - - $FileInfo: realpath.py - Last Update: 2/15/2016 Ver. 0.0.5 RC 3 - Author: cooldude2k $ -''' - -from __future__ import absolute_import, division, print_function, unicode_literals -import os -import sys -import argparse - -__version_info__ = (0, 0, 5, "rc3") -if(__version_info__[3] != None): - __version__ = str(__version_info__[0])+"."+str(__version_info__[1])+"."+str( - __version_info__[2])+"+"+str(__version_info__[3]) -if(__version_info__[3] == None): - __version__ = str( - __version_info__[0])+"."+str(__version_info__[1])+"."+str(__version_info__[2]) - -proname = "realpath" -prover = __version__ -profullname = proname+" "+prover - -parser = argparse.ArgumentParser(conflict_handler="resolve", add_help=True) -parser.add_argument("-v", "--version", action="version", version=profullname) -parser.add_argument("filepath", help="enter a file name/path") -getargs = parser.parse_args() -print(os.path.realpath(getargs.filepath)) diff --git a/pkgbuild/debian/python3/which.py b/pkgbuild/debian/python3/which.py deleted file mode 100755 index 22cccbd..0000000 --- a/pkgbuild/debian/python3/which.py +++ /dev/null @@ -1,46 +0,0 @@ -#!/usr/bin/env python3 - -''' - This program is free software; you can redistribute it and/or modify - it under the terms of the Revised BSD License. - - 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 - Revised BSD License for more details. - - Copyright 2011-2016 Game Maker 2k - https://github.com/GameMaker2k - Copyright 2011-2016 Kazuki Przyborowski - https://github.com/KazukiPrzyborowski - - $FileInfo: which.py - Last Update: 2/15/2016 Ver. 0.0.5 RC 3 - Author: cooldude2k $ -''' - -from __future__ import absolute_import, division, print_function, unicode_literals -import os -import sys -import argparse - -__version_info__ = (0, 0, 5, "rc3") -if(__version_info__[3] != None): - __version__ = str(__version_info__[0])+"."+str(__version_info__[1])+"."+str( - __version_info__[2])+"+"+str(__version_info__[3]) -if(__version_info__[3] == None): - __version__ = str( - __version_info__[0])+"."+str(__version_info__[1])+"."+str(__version_info__[2]) - -proname = "which" -prover = __version__ -profullname = proname+" "+prover - - -def which_exec(execfile): - for path in os.environ["PATH"].split(":"): - if os.path.exists(path + "/" + execfile): - return path + "/" + execfile - - -parser = argparse.ArgumentParser(conflict_handler="resolve", add_help=True) -parser.add_argument("-v", "--version", action="version", version=profullname) -parser.add_argument("filename", help="enter a file name/path") -getargs = parser.parse_args() -print(which_exec(getargs.filename)) diff --git a/pkgbuild/linuxmint/python2/basename.py b/pkgbuild/linuxmint/python2/basename.py deleted file mode 100755 index d0538a9..0000000 --- a/pkgbuild/linuxmint/python2/basename.py +++ /dev/null @@ -1,39 +0,0 @@ -#!/usr/bin/env python2 - -''' - This program is free software; you can redistribute it and/or modify - it under the terms of the Revised BSD License. - - 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 - Revised BSD License for more details. - - Copyright 2011-2016 Game Maker 2k - https://github.com/GameMaker2k - Copyright 2011-2016 Kazuki Przyborowski - https://github.com/KazukiPrzyborowski - - $FileInfo: basename.py - Last Update: 2/15/2016 Ver. 0.0.5 RC 3 - Author: cooldude2k $ -''' - -from __future__ import absolute_import, division, print_function, unicode_literals -import os -import sys -import argparse - -__version_info__ = (0, 0, 5, "rc3") -if(__version_info__[3] != None): - __version__ = str(__version_info__[0])+"."+str(__version_info__[1])+"."+str( - __version_info__[2])+"+"+str(__version_info__[3]) -if(__version_info__[3] == None): - __version__ = str( - __version_info__[0])+"."+str(__version_info__[1])+"."+str(__version_info__[2]) - -proname = "basename" -prover = __version__ -profullname = proname+" "+prover - -parser = argparse.ArgumentParser(conflict_handler="resolve", add_help=True) -parser.add_argument("-v", "--version", action="version", version=profullname) -parser.add_argument("filepath", help="enter a file name/path") -getargs = parser.parse_args() -print(os.path.basename(getargs.filepath)) diff --git a/pkgbuild/linuxmint/python2/dirname.py b/pkgbuild/linuxmint/python2/dirname.py deleted file mode 100755 index 46d4997..0000000 --- a/pkgbuild/linuxmint/python2/dirname.py +++ /dev/null @@ -1,39 +0,0 @@ -#!/usr/bin/env python2 - -''' - This program is free software; you can redistribute it and/or modify - it under the terms of the Revised BSD License. - - 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 - Revised BSD License for more details. - - Copyright 2011-2016 Game Maker 2k - https://github.com/GameMaker2k - Copyright 2011-2016 Kazuki Przyborowski - https://github.com/KazukiPrzyborowski - - $FileInfo: dirname.py - Last Update: 2/15/2016 Ver. 0.0.5 RC 3 - Author: cooldude2k $ -''' - -from __future__ import absolute_import, division, print_function, unicode_literals -import os -import sys -import argparse - -__version_info__ = (0, 0, 5, "rc3") -if(__version_info__[3] != None): - __version__ = str(__version_info__[0])+"."+str(__version_info__[1])+"."+str( - __version_info__[2])+"+"+str(__version_info__[3]) -if(__version_info__[3] == None): - __version__ = str( - __version_info__[0])+"."+str(__version_info__[1])+"."+str(__version_info__[2]) - -proname = "dirname" -prover = __version__ -profullname = proname+" "+prover - -parser = argparse.ArgumentParser(conflict_handler="resolve", add_help=True) -parser.add_argument("-v", "--version", action="version", version=profullname) -parser.add_argument("filepath", help="enter a file name/path") -getargs = parser.parse_args() -print(os.path.dirname(getargs.filepath)) diff --git a/pkgbuild/linuxmint/python2/pydeb-gen.sh b/pkgbuild/linuxmint/python2/pydeb-gen.sh deleted file mode 100755 index 7e52251..0000000 --- a/pkgbuild/linuxmint/python2/pydeb-gen.sh +++ /dev/null @@ -1,27 +0,0 @@ -#!/usr/bin/env bash - -bashexec="$(command -v bash)" -if hash realpath 2>/dev/null; then - pyrealpath="$(command -v realpath)" - uscriptdir="$(${pyrealpath} $(dirname $(readlink -f $0))/../../ubuntu/python2/)" -else - pythonexec="$(command -v python2)" - scriptdir="$(dirname $(readlink -f $0))" - pyrealpath="${pythonexec} ${scriptdir}/realpath.py" - scriptdir="$(${pyrealpath} ${scriptdir})" - pyrealpath="${pythonexec} ${scriptdir}/realpath.py" - uscriptdir="$(${pyrealpath} $(dirname $(readlink -f $0))/../../ubuntu/python2/)" -fi -pyscriptfile="${uscriptdir}/pydeb-gen.py" -pyshellfile="${uscriptdir}/pydeb-gen.sh" -codename="xenial" - -if [ $# -eq 0 ]; then - ${bashexec} "${pyshellfile}" -fi -if [ $# -gt 0 ]; then - if [ $# -gt 1 ]; then - codename="${2}" - fi - ${bashexec} "${pyshellfile}" "${1}" "${codename}" -fi diff --git a/pkgbuild/linuxmint/python2/realpath.py b/pkgbuild/linuxmint/python2/realpath.py deleted file mode 100755 index b2e441f..0000000 --- a/pkgbuild/linuxmint/python2/realpath.py +++ /dev/null @@ -1,39 +0,0 @@ -#!/usr/bin/env python2 - -''' - This program is free software; you can redistribute it and/or modify - it under the terms of the Revised BSD License. - - 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 - Revised BSD License for more details. - - Copyright 2011-2016 Game Maker 2k - https://github.com/GameMaker2k - Copyright 2011-2016 Kazuki Przyborowski - https://github.com/KazukiPrzyborowski - - $FileInfo: realpath.py - Last Update: 2/15/2016 Ver. 0.0.5 RC 3 - Author: cooldude2k $ -''' - -from __future__ import absolute_import, division, print_function, unicode_literals -import os -import sys -import argparse - -__version_info__ = (0, 0, 5, "rc3") -if(__version_info__[3] != None): - __version__ = str(__version_info__[0])+"."+str(__version_info__[1])+"."+str( - __version_info__[2])+"+"+str(__version_info__[3]) -if(__version_info__[3] == None): - __version__ = str( - __version_info__[0])+"."+str(__version_info__[1])+"."+str(__version_info__[2]) - -proname = "realpath" -prover = __version__ -profullname = proname+" "+prover - -parser = argparse.ArgumentParser(conflict_handler="resolve", add_help=True) -parser.add_argument("-v", "--version", action="version", version=profullname) -parser.add_argument("filepath", help="enter a file name/path") -getargs = parser.parse_args() -print(os.path.realpath(getargs.filepath)) diff --git a/pkgbuild/linuxmint/python2/which.py b/pkgbuild/linuxmint/python2/which.py deleted file mode 100755 index e5cf271..0000000 --- a/pkgbuild/linuxmint/python2/which.py +++ /dev/null @@ -1,46 +0,0 @@ -#!/usr/bin/env python2 - -''' - This program is free software; you can redistribute it and/or modify - it under the terms of the Revised BSD License. - - 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 - Revised BSD License for more details. - - Copyright 2011-2016 Game Maker 2k - https://github.com/GameMaker2k - Copyright 2011-2016 Kazuki Przyborowski - https://github.com/KazukiPrzyborowski - - $FileInfo: which.py - Last Update: 2/15/2016 Ver. 0.0.5 RC 3 - Author: cooldude2k $ -''' - -from __future__ import absolute_import, division, print_function, unicode_literals -import os -import sys -import argparse - -__version_info__ = (0, 0, 5, "rc3") -if(__version_info__[3] != None): - __version__ = str(__version_info__[0])+"."+str(__version_info__[1])+"."+str( - __version_info__[2])+"+"+str(__version_info__[3]) -if(__version_info__[3] == None): - __version__ = str( - __version_info__[0])+"."+str(__version_info__[1])+"."+str(__version_info__[2]) - -proname = "which" -prover = __version__ -profullname = proname+" "+prover - - -def which_exec(execfile): - for path in os.environ["PATH"].split(":"): - if os.path.exists(path + "/" + execfile): - return path + "/" + execfile - - -parser = argparse.ArgumentParser(conflict_handler="resolve", add_help=True) -parser.add_argument("-v", "--version", action="version", version=profullname) -parser.add_argument("filename", help="enter a file name/path") -getargs = parser.parse_args() -print(which_exec(getargs.filename)) diff --git a/pkgbuild/linuxmint/python3/basename.py b/pkgbuild/linuxmint/python3/basename.py deleted file mode 100755 index 346121c..0000000 --- a/pkgbuild/linuxmint/python3/basename.py +++ /dev/null @@ -1,39 +0,0 @@ -#!/usr/bin/env python3 - -''' - This program is free software; you can redistribute it and/or modify - it under the terms of the Revised BSD License. - - 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 - Revised BSD License for more details. - - Copyright 2011-2016 Game Maker 2k - https://github.com/GameMaker2k - Copyright 2011-2016 Kazuki Przyborowski - https://github.com/KazukiPrzyborowski - - $FileInfo: basename.py - Last Update: 2/15/2016 Ver. 0.0.5 RC 3 - Author: cooldude2k $ -''' - -from __future__ import absolute_import, division, print_function, unicode_literals -import os -import sys -import argparse - -__version_info__ = (0, 0, 5, "rc3") -if(__version_info__[3] != None): - __version__ = str(__version_info__[0])+"."+str(__version_info__[1])+"."+str( - __version_info__[2])+"+"+str(__version_info__[3]) -if(__version_info__[3] == None): - __version__ = str( - __version_info__[0])+"."+str(__version_info__[1])+"."+str(__version_info__[2]) - -proname = "basename" -prover = __version__ -profullname = proname+" "+prover - -parser = argparse.ArgumentParser(conflict_handler="resolve", add_help=True) -parser.add_argument("-v", "--version", action="version", version=profullname) -parser.add_argument("filepath", help="enter a file name/path") -getargs = parser.parse_args() -print(os.path.basename(getargs.filepath)) diff --git a/pkgbuild/linuxmint/python3/dirname.py b/pkgbuild/linuxmint/python3/dirname.py deleted file mode 100755 index 080502f..0000000 --- a/pkgbuild/linuxmint/python3/dirname.py +++ /dev/null @@ -1,39 +0,0 @@ -#!/usr/bin/env python3 - -''' - This program is free software; you can redistribute it and/or modify - it under the terms of the Revised BSD License. - - 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 - Revised BSD License for more details. - - Copyright 2011-2016 Game Maker 2k - https://github.com/GameMaker2k - Copyright 2011-2016 Kazuki Przyborowski - https://github.com/KazukiPrzyborowski - - $FileInfo: dirname.py - Last Update: 2/15/2016 Ver. 0.0.5 RC 3 - Author: cooldude2k $ -''' - -from __future__ import absolute_import, division, print_function, unicode_literals -import os -import sys -import argparse - -__version_info__ = (0, 0, 5, "rc3") -if(__version_info__[3] != None): - __version__ = str(__version_info__[0])+"."+str(__version_info__[1])+"."+str( - __version_info__[2])+"+"+str(__version_info__[3]) -if(__version_info__[3] == None): - __version__ = str( - __version_info__[0])+"."+str(__version_info__[1])+"."+str(__version_info__[2]) - -proname = "dirname" -prover = __version__ -profullname = proname+" "+prover - -parser = argparse.ArgumentParser(conflict_handler="resolve", add_help=True) -parser.add_argument("-v", "--version", action="version", version=profullname) -parser.add_argument("filepath", help="enter a file name/path") -getargs = parser.parse_args() -print(os.path.dirname(getargs.filepath)) diff --git a/pkgbuild/linuxmint/python3/pydeb-gen.sh b/pkgbuild/linuxmint/python3/pydeb-gen.sh deleted file mode 100755 index d3c029a..0000000 --- a/pkgbuild/linuxmint/python3/pydeb-gen.sh +++ /dev/null @@ -1,27 +0,0 @@ -#!/usr/bin/env bash - -bashexec="$(command -v bash)" -if hash realpath 2>/dev/null; then - pyrealpath="$(command -v realpath)" - uscriptdir="$(${pyrealpath} $(dirname $(readlink -f $0))/../../ubuntu/python3/)" -else - pythonexec="$(command -v python3)" - scriptdir="$(dirname $(readlink -f $0))" - pyrealpath="${pythonexec} ${scriptdir}/realpath.py" - scriptdir="$(${pyrealpath} ${scriptdir})" - pyrealpath="${pythonexec} ${scriptdir}/realpath.py" - uscriptdir="$(${pyrealpath} $(dirname $(readlink -f $0))/../../ubuntu/python2/)" -fi -pyscriptfile="${uscriptdir}/pydeb-gen.py" -pyshellfile="${uscriptdir}/pydeb-gen.sh" -codename="xenial" - -if [ $# -eq 0 ]; then - ${bashexec} "${pyshellfile}" -fi -if [ $# -gt 0 ]; then - if [ $# -gt 1 ]; then - codename="${2}" - fi - ${bashexec} "${pyshellfile}" "${1}" "${codename}" -fi diff --git a/pkgbuild/linuxmint/python3/realpath.py b/pkgbuild/linuxmint/python3/realpath.py deleted file mode 100755 index 7350f44..0000000 --- a/pkgbuild/linuxmint/python3/realpath.py +++ /dev/null @@ -1,39 +0,0 @@ -#!/usr/bin/env python3 - -''' - This program is free software; you can redistribute it and/or modify - it under the terms of the Revised BSD License. - - 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 - Revised BSD License for more details. - - Copyright 2011-2016 Game Maker 2k - https://github.com/GameMaker2k - Copyright 2011-2016 Kazuki Przyborowski - https://github.com/KazukiPrzyborowski - - $FileInfo: realpath.py - Last Update: 2/15/2016 Ver. 0.0.5 RC 3 - Author: cooldude2k $ -''' - -from __future__ import absolute_import, division, print_function, unicode_literals -import os -import sys -import argparse - -__version_info__ = (0, 0, 5, "rc3") -if(__version_info__[3] != None): - __version__ = str(__version_info__[0])+"."+str(__version_info__[1])+"."+str( - __version_info__[2])+"+"+str(__version_info__[3]) -if(__version_info__[3] == None): - __version__ = str( - __version_info__[0])+"."+str(__version_info__[1])+"."+str(__version_info__[2]) - -proname = "realpath" -prover = __version__ -profullname = proname+" "+prover - -parser = argparse.ArgumentParser(conflict_handler="resolve", add_help=True) -parser.add_argument("-v", "--version", action="version", version=profullname) -parser.add_argument("filepath", help="enter a file name/path") -getargs = parser.parse_args() -print(os.path.realpath(getargs.filepath)) diff --git a/pkgbuild/linuxmint/python3/which.py b/pkgbuild/linuxmint/python3/which.py deleted file mode 100755 index 22cccbd..0000000 --- a/pkgbuild/linuxmint/python3/which.py +++ /dev/null @@ -1,46 +0,0 @@ -#!/usr/bin/env python3 - -''' - This program is free software; you can redistribute it and/or modify - it under the terms of the Revised BSD License. - - 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 - Revised BSD License for more details. - - Copyright 2011-2016 Game Maker 2k - https://github.com/GameMaker2k - Copyright 2011-2016 Kazuki Przyborowski - https://github.com/KazukiPrzyborowski - - $FileInfo: which.py - Last Update: 2/15/2016 Ver. 0.0.5 RC 3 - Author: cooldude2k $ -''' - -from __future__ import absolute_import, division, print_function, unicode_literals -import os -import sys -import argparse - -__version_info__ = (0, 0, 5, "rc3") -if(__version_info__[3] != None): - __version__ = str(__version_info__[0])+"."+str(__version_info__[1])+"."+str( - __version_info__[2])+"+"+str(__version_info__[3]) -if(__version_info__[3] == None): - __version__ = str( - __version_info__[0])+"."+str(__version_info__[1])+"."+str(__version_info__[2]) - -proname = "which" -prover = __version__ -profullname = proname+" "+prover - - -def which_exec(execfile): - for path in os.environ["PATH"].split(":"): - if os.path.exists(path + "/" + execfile): - return path + "/" + execfile - - -parser = argparse.ArgumentParser(conflict_handler="resolve", add_help=True) -parser.add_argument("-v", "--version", action="version", version=profullname) -parser.add_argument("filename", help="enter a file name/path") -getargs = parser.parse_args() -print(which_exec(getargs.filename)) diff --git a/pkgbuild/ubuntu/python2/basename.py b/pkgbuild/ubuntu/python2/basename.py deleted file mode 100755 index 36f255a..0000000 --- a/pkgbuild/ubuntu/python2/basename.py +++ /dev/null @@ -1,39 +0,0 @@ -#!/usr/bin/env python2 - -''' - This program is free software; you can redistribute it and/or modify - it under the terms of the Revised BSD License. - - 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 - Revised BSD License for more details. - - Copyright 2011-2016 Game Maker 2k - https://github.com/GameMaker2k - Copyright 2011-2016 Kazuki Przyborowski - https://github.com/KazukiPrzyborowski - - $FileInfo: basename.py - Last Update: 4/23/2016 Ver. 0.0.5 RC 3 - Author: cooldude2k $ -''' - -from __future__ import absolute_import, division, print_function, unicode_literals -import os -import sys -import argparse - -__version_info__ = (0, 0, 5, "rc3") -if(__version_info__[3] != None): - __version__ = str(__version_info__[0])+"."+str(__version_info__[1])+"."+str( - __version_info__[2])+"+"+str(__version_info__[3]) -if(__version_info__[3] == None): - __version__ = str( - __version_info__[0])+"."+str(__version_info__[1])+"."+str(__version_info__[2]) - -proname = "basename" -prover = __version__ -profullname = proname+" "+prover - -parser = argparse.ArgumentParser(conflict_handler="resolve", add_help=True) -parser.add_argument("-v", "--version", action="version", version=profullname) -parser.add_argument("filepath", help="enter a file name/path") -getargs = parser.parse_args() -print(os.path.basename(getargs.filepath)) diff --git a/pkgbuild/ubuntu/python2/dirname.py b/pkgbuild/ubuntu/python2/dirname.py deleted file mode 100755 index 7cf14da..0000000 --- a/pkgbuild/ubuntu/python2/dirname.py +++ /dev/null @@ -1,39 +0,0 @@ -#!/usr/bin/env python2 - -''' - This program is free software; you can redistribute it and/or modify - it under the terms of the Revised BSD License. - - 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 - Revised BSD License for more details. - - Copyright 2011-2016 Game Maker 2k - https://github.com/GameMaker2k - Copyright 2011-2016 Kazuki Przyborowski - https://github.com/KazukiPrzyborowski - - $FileInfo: dirname.py - Last Update: 4/23/2016 Ver. 0.0.5 RC 3 - Author: cooldude2k $ -''' - -from __future__ import absolute_import, division, print_function, unicode_literals -import os -import sys -import argparse - -__version_info__ = (0, 0, 5, "rc3") -if(__version_info__[3] != None): - __version__ = str(__version_info__[0])+"."+str(__version_info__[1])+"."+str( - __version_info__[2])+"+"+str(__version_info__[3]) -if(__version_info__[3] == None): - __version__ = str( - __version_info__[0])+"."+str(__version_info__[1])+"."+str(__version_info__[2]) - -proname = "dirname" -prover = __version__ -profullname = proname+" "+prover - -parser = argparse.ArgumentParser(conflict_handler="resolve", add_help=True) -parser.add_argument("-v", "--version", action="version", version=profullname) -parser.add_argument("filepath", help="enter a file name/path") -getargs = parser.parse_args() -print(os.path.dirname(getargs.filepath)) diff --git a/pkgbuild/ubuntu/python2/pydeb-gen.py b/pkgbuild/ubuntu/python2/pydeb-gen.py deleted file mode 100755 index 11d7877..0000000 --- a/pkgbuild/ubuntu/python2/pydeb-gen.py +++ /dev/null @@ -1,377 +0,0 @@ -#!/usr/bin/env python2 - -''' - This program is free software; you can redistribute it and/or modify - it under the terms of the Revised BSD License. - - 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 - Revised BSD License for more details. - - Copyright 2011-2016 Game Maker 2k - https://github.com/GameMaker2k - Copyright 2011-2016 Kazuki Przyborowski - https://github.com/KazukiPrzyborowski - - $FileInfo: pydeb-gen.py - Last Update: 6/1/2016 Ver. 0.2.0 RC 1 - Author: cooldude2k $ -''' - -from __future__ import absolute_import, division, print_function, unicode_literals -import re -import os -import sys -import time -import datetime -import argparse -import subprocess -import json - -__version_info__ = (0, 2, 0, "rc1") -if(__version_info__[3] != None): - __version__ = str(__version_info__[0])+"."+str(__version_info__[1])+"."+str( - __version_info__[2])+"+"+str(__version_info__[3]) -if(__version_info__[3] == None): - __version__ = str( - __version_info__[0])+"."+str(__version_info__[1])+"."+str(__version_info__[2]) - -proname = "pydeb-gen" -prover = __version__ -profullname = proname+" "+prover -buildsystem = "pybuild" - - -def which_exec(execfile): - for path in os.environ["PATH"].split(":"): - if os.path.exists(path + "/" + execfile): - return path + "/" + execfile - - -distupnametover = {'Warty': "4.10", 'Hoary': "5.04", 'Breezy': "5.10", 'Dapper': "6.06", 'Edgy': "6.10", 'Feisty': "7.04", 'Gutsy': "7.10", 'Hardy': "8.04", 'Intrepid': "8.10", 'Jaunty': "9.04", 'Karmic': "9.10", 'Lucid': "10.04", 'Maverick': "10.10", - 'Natty': "11.04", 'Oneiric': "11.10", 'Precise': "12.04", 'Quantal': "12.10", 'Raring': "13.04", 'Saucy': "13.10", 'Trusty': "14.04", 'Utopic': "14.10", 'Vivid': "15.04", 'Wily': "15.10", 'Xenial': "16.04", 'Yakkety': "16.10", 'Zesty': "16.10"} -distnametover = {'warty': "4.10", 'hoary': "5.04", 'breezy': "5.10", 'dapper': "6.06", 'edgy': "6.10", 'feisty': "7.04", 'gutsy': "7.10", 'hardy': "8.04", 'intrepid': "8.10", 'jaunty': "9.04", 'karmic': "9.10", 'lucid': "10.04", 'maverick': "10.10", - 'natty': "11.04", 'oneiric': "11.10", 'precise': "12.04", 'quantal': "12.10", 'raring': "13.04", 'saucy': "13.10", 'trusty': "14.04", 'utopic': "14.10", 'vivid': "15.04", 'wily': "15.10", 'xenial': "16.04", 'yakkety': "16.10", 'zesty': "17.04"} -distnamelist = distnametover.keys() -distvertoname = {'4.10': "warty", '5.04': "hoary", '5.10': "breezy", '6.06': "dapper", '6.10': "edgy", '7.04': "feisty", '7.10': "gutsy", '8.04': "hardy", '8.10': "intrepid", '9.04': "jaunty", '9.10': "karmic", '10.04': "lucid", - '10.10': "maverick", '11.04': "natty", '11.10': "oneiric", '12.04': "precise", '12.10': "quantal", '13.04': "raring", '13.10': "saucy", '14.04': "trusty", '14.10': "utopic", '15.04': "vivid", '15.10': "wily", '16.04': "xenial", '17.04': "zesty"} -distvertoupname = {'4.10': "Warty", '5.04': "Hoary", '5.10': "Breezy", '6.06': "Dapper", '6.10': "Edgy", '7.04': "Feisty", '7.10': "Gutsy", '8.04': "Hardy", '8.10': "Intrepid", '9.04': "Jaunty", '9.10': "Karmic", '10.04': "Lucid", - '10.10': "Maverick", '11.04': "Natty", '11.10': "Oneiric", '12.04': "Precise", '12.10': "Quantal", '13.04': "Raring", '13.10': "Saucy", '14.04': "Trusty", '14.10': "Utopic", '15.04': "Vivid", '15.10': "Wily", '16.04': "Xenial", '17.04': "Zesty"} -distnamelistalt = distvertoname.values() -distnametoveralt = {'Warty Warthog': "4.10", 'Hoary Hedgehog': "5.04", 'Breezy Badger': "5.10", 'Dapper Drake': "6.06", 'Edgy Eft': "6.10", - 'Feisty Fawn': "7.04", 'Gutsy Gibbon': "7.10", 'Hardy Heron': "8.04", 'Intrepid Ibex': "8.10", 'Jaunty Jackalope': "9.04", 'Karmic Koala': "9.10", 'Lucid Lynx': "10.04", 'Maverick Meerkat': "10.10", 'Natty Narwhal': "11.04", 'Oneiric Ocelot': "11.10", 'Precise Pangolin': "12.04", 'Quantal Quetzal': "12.10", 'Raring Ringtail': "13.04", 'Saucy Salamander': "13.10", 'Trusty Tahr': "14.04", 'Utopic Unicorn': "14.10", 'Vivid Vervet': "15.04", 'Wily Werewolf': "15.10", 'Xenial Xerus': "16.04", 'Yakkety Yak': "16.10", 'Zesty Zapus': "17.04"} -distvertonamealt = {'4.10': "Warty Warthog", '5.04': "Hoary Hedgehog", '5.10': "Breezy Badger", '6.06': "Dapper Drake", '6.10': "Edgy Eft", - '7.04': "Feisty Fawn", '7.10': "Gutsy Gibbon", '8.04': "Hardy Heron", '8.10': "Intrepid Ibex", '9.04': "Jaunty Jackalope", '9.10': "Karmic Koala", '10.04': "Lucid Lynx", '10.10': "Maverick Meerkat", '11.04': "Natty Narwhal", '11.10': "Oneiric Ocelot", '12.04': "Precise Pangolin", '12.10': "Quantal Quetzal", '13.04': "Raring Ringtail", '13.10': "Saucy Salamander", '14.04': "Trusty Tahr", '14.10': "Utopic Unicorn", '15.04': "Vivid Vervet", '15.10': "Wily Werewolf", '16.04': "Xenial Xerus", '16.10': "Yakkety Yak", '17.04': "Zesty Zapus"} - -lmdistvertoname = {'1.0': "ada", '2.0': "barbara", '2.1': "bea", '2.2': "bianca", '3.0': "cassandra", '3.1': "celena", '4.0': "daryna", '5': "elyssa", '6': "felicia", '7': "gloria", '8': "helena", '9': "isadora", - '10': "julia", '11': "katya", '12': "lisa", '13': "maya", '14': "nadia", '15': "olivia", '16': "petra", '17': "qiana", '17.1': "rebecca", '17.2': "rafaela", '17.3': "rosa", '18': "sarah", '18.1': "serena"} -lmdistvertonamealt = {'1.0': "Ada", '2.0': "Barbara", '2.1': "Bea", '2.2': "Bianca", '3.0': "Cassandra", '3.1': "Celena", '4.0': "Daryna", '5': "Elyssa", '6': "Felicia", '7': "Gloria", '8': "Helena", '9': "Isadora", - '10': "Julia", '11': "Katya", '12': "Lisa", '13': "Maya", '14': "Nadia", '15': "Olivia", '16': "Petra", '17': "Qiana", '17.1': "Rebecca", '17.2': "Rafaela", '17.3': "Rosa", '18': "Sarah", '18.1': "Serena"} -lmdistnamelistalt = lmdistvertoname.values() -lmdistnametover = {'ada': "1.0", 'barbara': "2.0", 'bea': "2.1", 'bianca': "2.2", 'cassandra': "3.0", 'celena': "3.1", 'daryna': "4.0", 'elyssa': "5", 'felicia': "6", 'gloria': "7", 'helena': "8", 'isadora': "9", - 'julia': "10", 'katya': "11", 'lisa': "12", 'maya': "13", 'nadia': "14", 'olivia': "15", 'petra': "16", 'qiana': "17", 'rebecca': "17.1", 'rafaela': "17.2", 'rosa': "17.3", 'sarah': "18", 'serena': "18.1"} -lmdistnametoveralt = {'Ada': "1.0", 'Barbara': "2.0", 'Bea': "2.1", 'Bianca': "2.2", 'Cassandra': "3.0", 'Celena': "3.1", 'Daryna': "4.0", 'Elyssa': "5", 'Felicia': "6", 'Gloria': "7", 'Helena': "8", 'Isadora': "9", - 'Julia': "10", 'Katya': "11", 'Lisa': "12", 'Maya': "13", 'Nadia': "14", 'Olivia': "15", 'Petra': "16", 'Qiana': "17", 'Rebecca': "17.1", 'Rafaela': "17.2", 'Rosa': "17.3", 'Sarah': "18", 'Serena': "18.1"} -lmdistnamelist = lmdistnametover.keys() -distlmnametouname = {"ada": "dapper", "barbara": "edgy", "bea": "edgy", "bianca": "edgy", "cassandra": "feisty", "celena": "feisty", "daryna": "gutsy", "elyssa": "hardy", "felicia": "intrepid", "gloria": "jaunty", "helena": "karmic", "isadora": "lucid", - "julia": "maverick", "katya": "natty", "lisa": "oneiric", "maya": "precise", "nadia": "quantal", "olivia": "raring", "petra": "saucy", "qiana": "trusty", "rebecca": "trusty", "rafaela": "trusty", "rosa": "trusty", "sarah": "xenial", "serena": "xenial"} -distlmnametounamealt = {"Ada": "Dapper", "Barbara": "Edgy", "Bea": "Edgy", "Bianca": "Edgy", "Cassandra": "Feisty", "Celena": "Feisty", "Daryna": "Gutsy", "Elyssa": "Hardy", "Felicia": "Intrepid", "Gloria": "Jaunty", "Helena": "Karmic", "Isadora": "Lucid", - "Julia": "Maverick", "Katya": "Natty", "Lisa": "Oneiric", "Maya": "Precise", "Nadia": "Quantal", "Olivia": "Raring", "Petra": "Saucy", "Qiana": "Trusty", "Rebecca": "Trusty", "Rafaela": "Trusty", "Rosa": "Trusty", "Sarah": "Xenial", "Serena": "Xenial"} - -ubuntu_oldstable = "wily" -ubuntu_stable = "xenial" -ubuntu_lts_satble = "xenial" -ubuntu_testing = "yakkety" -linuxmint_ubuntu_stable = ubuntu_lts_satble - -parser = argparse.ArgumentParser(conflict_handler="resolve", add_help=True) -parser.add_argument("-v", "--version", action="version", version=profullname) -parser.add_argument( - "-s", "--source", default=os.path.realpath(os.getcwd()), help="source dir") -parser.add_argument("-g", "--getsource", - action="store_true", help="get source dir") -parser.add_argument("-p", "--getparent", - action="store_true", help="get parent dir") -parser.add_argument("-t", "--gettarname", - action="store_true", help="get tar name") -parser.add_argument("-d", "--getdirname", - action="store_true", help="get dir name") -parser.add_argument("-c", "--codename", default=ubuntu_stable, - help="enter release code name") -parser.add_argument("-e", "--getpkgsource", - action="store_true", help="get pkg source") -getargs = parser.parse_args() -getargs.source = os.path.realpath(getargs.source) -pkgsetuppy = os.path.realpath(getargs.source+os.path.sep+"setup.py") -pyexecpath = os.path.realpath(sys.executable) -if(not os.path.exists(getargs.source) or not os.path.isdir(getargs.source)): - raise Exception("Could not find directory.") -if(not os.path.exists(pkgsetuppy) or not os.path.isfile(pkgsetuppy)): - raise Exception("Could not find setup.py in directory.") - -getargs.codename = distlmnametouname.get(getargs.codename, getargs.codename) -getargs.codename = distlmnametounamealt.get(getargs.codename, getargs.codename) -getargs.codename = getargs.codename.lower() -if(not getargs.codename in distnamelist): - print("Could not build for ubuntu "+getargs.codename+" codename.") - sys.exit() - -pypkgenlistp = subprocess.Popen( - [pyexecpath, pkgsetuppy, "getversioninfo"], stdout=subprocess.PIPE, stderr=subprocess.PIPE) -pypkgenout, pypkgenerr = pypkgenlistp.communicate() -if(sys.version[0] == "3"): - pypkgenout = pypkgenout.decode('utf-8') -pymodule = json.loads(pypkgenout) -setuppy_verinfo = pymodule['versionlist'] -setuppy_author = pymodule['author'] -setuppy_authoremail = pymodule['authoremail'] -setuppy_maintainer = pymodule['maintainer'] -setuppy_maintaineremail = pymodule['maintaineremail'] -setuppy_description = pymodule['description'] -setuppy_license = pymodule['license'] -setuppy_keywords = pymodule['keywords'] -setuppy_url = pymodule['url'] -setuppy_downloadurl = pymodule['downloadurl'] -setuppy_longdescription = pymodule['longdescription'] -setuppy_platforms = pymodule['platforms'] -standverfilename = os.path.realpath(os.path.sep+"usr"+os.path.sep+"share"+os.path.sep + - "lintian"+os.path.sep+"data"+os.path.sep+"standards-version"+os.path.sep+"release-dates") -standverfile = open(standverfilename, "r") -standverdata = standverfile.read() -standverfile.close() -getstandver = re.findall("([0-9]\.[0-9]\.[0-9])\s+([0-9]+)", standverdata) -getcurstandver = getstandver[0][0] -dpkglocatout = which_exec("dpkg") -pydpkglistp = subprocess.Popen( - [dpkglocatout, "-s", "debhelper"], stdout=subprocess.PIPE, stderr=subprocess.PIPE) -pydpkgout, pydpkgerr = pydpkglistp.communicate() -if(sys.version[0] == "3"): - pydpkgout = pydpkgout.decode("utf-8") -pydpkg_esc = re.escape("Version:")+'\s+([0-9]+)'+re.escape(".") -pydpkg_val = re.findall(pydpkg_esc, pydpkgout.replace("ubuntu", "."))[0] - -if(sys.version[0] == "2"): - pkgsource = "py2www-get" -if(sys.version[0] == "3"): - pkgsource = "py3www-get" -pkgupstreamname = "PyWWW-Get" -pkgveralt = str(setuppy_verinfo[0])+"." + \ - str(setuppy_verinfo[1])+"."+str(setuppy_verinfo[2]) -pkgver = str(pkgveralt)+"~rc"+str(setuppy_verinfo[4])+"~"+getargs.codename+str( - distnametover.get(getargs.codename, "1").replace(".", "")) -pkgdistname = getargs.codename -pkgurgency = "urgency=low" -pkgauthorname = setuppy_author -pkgauthoremail = setuppy_authoremail -pkgauthor = pkgauthorname+" <"+pkgauthoremail+">" -pkgmaintainername = setuppy_maintainer -pkgmaintaineremail = setuppy_maintaineremail -pkgmaintainer = pkgmaintainername+" <"+pkgmaintaineremail+">" -pkggiturl = "https://github.com/GameMaker2k/PyWWW-Get.git" -pkghomepage = setuppy_url -pkgsection = "python" -pkgpriority = "optional" -if(sys.version[0] == "2"): - pkgbuilddepends = "python-setuptools, python-all, debhelper, dh-python, devscripts" -if(sys.version[0] == "3"): - pkgbuilddepends = "python3-setuptools, python3-all, debhelper, dh-python, devscripts" -if(getargs.codename == "lucid" or getargs.codename == "precise"): - if(sys.version[0] == "2"): - pkgbuilddepends = "python-setuptools, python-all, debhelper, dh-python, devscripts" - if(sys.version[0] == "3"): - pkgbuilddepends = "python3-setuptools, python3-all, debhelper, dh-python, devscripts" -pkgstandardsversion = getcurstandver -if(sys.version[0] == "2"): - pkgpackage = "python-pywww-get" - pkgoldname = "python-www-get" -if(sys.version[0] == "3"): - pkgpackage = "python3-pywww-get" - pkgoldname = "python3-www-get" -pkgarchitecture = "all" -if(sys.version[0] == "2"): - pkgdepends = "${misc:Depends}, ${python:Depends}" -if(sys.version[0] == "3"): - pkgdepends = "${misc:Depends}, ${python3:Depends}" -pkgdescription = setuppy_description+"\n "+setuppy_longdescription -pkgtzstr = time.strftime("%a, %d %b %Y %H:%M:%S %z") - -if(getargs.getsource == True): - print(getargs.source) - sys.exit() -if(getargs.getparent == True): - print(os.path.realpath(os.path.dirname(getargs.source))) - sys.exit() -if(getargs.getdirname == True): - print(pkgsource+"_"+pkgveralt+".orig") - sys.exit() -if(getargs.gettarname == True): - print(pkgsource+"_"+pkgveralt+".orig.tar.gz") - sys.exit() -if(getargs.getpkgsource == True): - print(pkgsource) - sys.exit() - -print("generating debian package build directory") - -debpkg_debian_dir = os.path.realpath(getargs.source+os.path.sep+"debian") -print("creating directory "+debpkg_debian_dir) -if(not os.path.exists(debpkg_debian_dir)): - os.makedirs(debpkg_debian_dir) -os.chmod(debpkg_debian_dir, int("0755", 8)) - -debpkg_changelog_file = os.path.realpath( - debpkg_debian_dir+os.path.sep+"changelog") -print("generating file "+debpkg_changelog_file) -debpkg_string_temp = pkgsource + \ - " ("+pkgver+") "+pkgdistname+"; "+pkgurgency+"\n\n" -debpkg_string_temp += " * source package automatically created by "+profullname+"\n\n" -debpkg_string_temp += " -- "+pkgmaintainer+" "+pkgtzstr+"\n" -debpkg_file_temp = open(debpkg_changelog_file, "w") -debpkg_file_temp.write(debpkg_string_temp) -debpkg_file_temp.close() -os.chmod(debpkg_changelog_file, int("0644", 8)) - -debpkg_compat_file = os.path.realpath(debpkg_debian_dir+os.path.sep+"compat") -print("generating file "+debpkg_compat_file) -debpkg_string_temp = str(pydpkg_val)+"\n" -debpkg_file_temp = open(debpkg_compat_file, "w") -debpkg_file_temp.write(debpkg_string_temp) -debpkg_file_temp.close() -os.chmod(debpkg_compat_file, int("0644", 8)) - -debpkg_control_file = os.path.realpath(debpkg_debian_dir+os.path.sep+"control") -print("generating file "+debpkg_control_file) -debpkg_string_temp = "Source: "+pkgsource+"\n" -debpkg_string_temp += "Maintainer: "+pkgmaintainer+"\n" -debpkg_string_temp += "Homepage: "+pkghomepage+"\n" -debpkg_string_temp += "Vcs-Git: "+pkggiturl+"\n" -debpkg_string_temp += "Vcs-Browser: "+pkghomepage+"\n" -debpkg_string_temp += "Section: "+pkgsection+"\n" -debpkg_string_temp += "Priority: "+pkgpriority+"\n" -debpkg_string_temp += "Build-Depends: "+pkgbuilddepends+"\n" -debpkg_string_temp += "Standards-Version: "+pkgstandardsversion+"\n\n" -debpkg_string_temp += "Package: "+pkgpackage+"\n" -debpkg_string_temp += "Architecture: "+pkgarchitecture+"\n" -debpkg_string_temp += "Depends: "+pkgdepends+"\n" -debpkg_string_temp += "Replaces: "+pkgoldname+"\n" -debpkg_string_temp += "Description: "+pkgdescription+"\n" -debpkg_file_temp = open(debpkg_control_file, "w") -debpkg_file_temp.write(debpkg_string_temp) -debpkg_file_temp.close() -os.chmod(debpkg_control_file, int("0644", 8)) - -debpkg_copyright_file = os.path.realpath( - debpkg_debian_dir+os.path.sep+"copyright") -print("generating file "+debpkg_copyright_file) -debpkg_string_temp = "Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/\n" -debpkg_string_temp += "Upstream-Name: "+pkgupstreamname+"\n" -debpkg_string_temp += "Source: "+pkghomepage+"\n\n" -debpkg_string_temp += "Files: *\n" -debpkg_string_temp += "Copyright: Copyright 2011-2016 "+pkgauthor+"\n" -debpkg_string_temp += "License: BSD\n\n" -debpkg_string_temp += "License: BSD\n" -debpkg_string_temp += " Revised BSD License\n\n" -debpkg_string_temp += "Copyright (C) 2011-2016 Game Maker 2k. \n" -debpkg_string_temp += "All rights reserved.\n\n" -debpkg_string_temp += "Redistribution and use in source and binary forms, with or without\n" -debpkg_string_temp += "modification, are permitted provided that the following conditions are met:\n\n" -debpkg_string_temp += " 1. Redistributions of source code must retain the above copyright notice,\n" -debpkg_string_temp += " this list of conditions and the following disclaimer.\n\n" -debpkg_string_temp += " 2. Redistributions in binary form must reproduce the above copyright \n" -debpkg_string_temp += " notice, this list of conditions and the following disclaimer in \n" -debpkg_string_temp += " the documentation and/or other materials provided with the distribution.\n\n" -debpkg_string_temp += " 3. Neither the name of Game Maker 2k nor the names of its contributors\n" -debpkg_string_temp += " may be used to endorse or promote products derived from this software\n" -debpkg_string_temp += " without specific prior written permission.\n\n" -debpkg_string_temp += "THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS IS\" \n" -debpkg_string_temp += "AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE \n" -debpkg_string_temp += "IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE \n" -debpkg_string_temp += "ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE \n" -debpkg_string_temp += "LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR \n" -debpkg_string_temp += "CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF \n" -debpkg_string_temp += "SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS \n" -debpkg_string_temp += "INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN \n" -debpkg_string_temp += "CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) \n" -debpkg_string_temp += "ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF \n" -debpkg_string_temp += "THE POSSIBILITY OF SUCH DAMAGE.\n\n" -debpkg_string_temp += "The views and conclusions contained in the software and documentation are those of the\n" -debpkg_string_temp += "authors and should not be interpreted as representing official policies, either expressed\n" -debpkg_string_temp += "or implied, of Game Maker 2k.\n" -debpkg_file_temp = open(debpkg_copyright_file, "w") -debpkg_file_temp.write(debpkg_string_temp) -debpkg_file_temp.close() -os.chmod(debpkg_copyright_file, int("0644", 8)) - -debpkg_rules_file = os.path.realpath(debpkg_debian_dir+os.path.sep+"rules") -print("generating file "+debpkg_rules_file) -if(sys.version[0] == "2" and (buildsystem == "python" or buildsystem == "python_distutils")): - debpkg_string_temp = "#!/usr/bin/make -f\n\n" - debpkg_string_temp += "# This file was automatically generated by "+profullname+" at\n" - debpkg_string_temp += "# "+pkgtzstr+"\n\n" - debpkg_string_temp += "export DH_VERBOSE=1\n\n" - debpkg_string_temp += "%:\n" - debpkg_string_temp += " dh $@ --with python2 --buildsystem=python_distutils\n" -if(sys.version[0] == "3" and (buildsystem == "python" or buildsystem == "python_distutils")): - debpkg_string_temp = "#!/usr/bin/make -f\n\n" - debpkg_string_temp += "# This file was automatically generated by "+profullname+" at\n" - debpkg_string_temp += "# "+pkgtzstr+"\n\n" - debpkg_string_temp += "export DH_VERBOSE=1\n\n" - debpkg_string_temp += "%:\n" - debpkg_string_temp += " dh $@ --with python3\n" - debpkg_string_temp += "override_dh_auto_build:\n" - debpkg_string_temp += " python3 setup.py build\n\n" - debpkg_string_temp += "override_dh_auto_test:\n" - debpkg_string_temp += " python3 setup.py test\n\n" - debpkg_string_temp += "override_dh_auto_install:\n" - debpkg_string_temp += " python3 setup.py install \\\n" - debpkg_string_temp += " --force --root=$(CURDIR)/debian/" + \ - pkgpackage+" \\\n" - debpkg_string_temp += " --no-compile -O0 --install-layout=deb\n\n" - debpkg_string_temp += "override_dh_auto_clean:\n" - debpkg_string_temp += " python3 setup.py clean\n" -if(sys.version[0] == "2" and (buildsystem == "pybuild" or buildsystem == "python_build")): - debpkg_string_temp = "#!/usr/bin/make -f\n\n" - debpkg_string_temp += "# This file was automatically generated by "+profullname+" at\n" - debpkg_string_temp += "# "+pkgtzstr+"\n\n" - debpkg_string_temp += "export DH_VERBOSE=1\n" - debpkg_string_temp += "export PYBUILD_NAME=pywww-get\n\n" - debpkg_string_temp += "%:\n" - debpkg_string_temp += " dh $@ --with python2 --buildsystem=pybuild\n" -if(sys.version[0] == "3" and (buildsystem == "pybuild" or buildsystem == "python_build")): - debpkg_string_temp = "#!/usr/bin/make -f\n\n" - debpkg_string_temp += "# This file was automatically generated by "+profullname+" at\n" - debpkg_string_temp += "# "+pkgtzstr+"\n\n" - debpkg_string_temp += "export DH_VERBOSE=1\n" - debpkg_string_temp += "export PYBUILD_NAME=pywww-get\n\n" - debpkg_string_temp += "%:\n" - debpkg_string_temp += " dh $@ --with python3 --buildsystem=pybuild\n" -if((sys.version[0] == "2" or sys.version[0] == "3") and buildsystem == "cmake"): - debpkg_string_temp = "#!/usr/bin/make -f\n\n" - debpkg_string_temp += "# This file was automatically generated by "+profullname+" at\n" - debpkg_string_temp += "# "+pkgtzstr+"\n\n" - debpkg_string_temp += "export DH_VERBOSE=1\n\n" - debpkg_string_temp += "%:\n" - debpkg_string_temp += " dh $@ --buildsystem=cmake --parallel\n" -debpkg_file_temp = open(debpkg_rules_file, "w") -debpkg_file_temp.write(debpkg_string_temp) -debpkg_file_temp.close() -os.chmod(debpkg_rules_file, int("0755", 8)) - -debpkg_source_dir = os.path.realpath(debpkg_debian_dir+os.path.sep+"source") -print("creating directory "+debpkg_source_dir) -if(not os.path.exists(debpkg_source_dir)): - os.makedirs(debpkg_source_dir) -os.chmod(debpkg_source_dir, int("0755", 8)) - -debpkg_format_file = os.path.realpath(debpkg_source_dir+os.path.sep+"format") -print("generating file "+debpkg_format_file) -debpkg_string_temp = "3.0 (native)\n" -debpkg_file_temp = open(debpkg_format_file, "w") -debpkg_file_temp.write(debpkg_string_temp) -debpkg_file_temp.close() -os.chmod(debpkg_format_file, int("0644", 8)) - -debpkg_options_file = os.path.realpath(debpkg_source_dir+os.path.sep+"options") -print("generating file "+debpkg_options_file) -debpkg_string_temp = "extend-diff-ignore=\"\\.egg-info\"\n" -debpkg_file_temp = open(debpkg_options_file, "w") -debpkg_file_temp.write(debpkg_string_temp) -debpkg_file_temp.close() -os.chmod(debpkg_options_file, int("0644", 8)) diff --git a/pkgbuild/ubuntu/python2/pydeb-gen.sh b/pkgbuild/ubuntu/python2/pydeb-gen.sh deleted file mode 100755 index 41c52bd..0000000 --- a/pkgbuild/ubuntu/python2/pydeb-gen.sh +++ /dev/null @@ -1,45 +0,0 @@ -#!/usr/bin/env bash - -pythonexec="$(command -v python2)" -if hash realpath 2>/dev/null; then - pyrealpath="$(command -v realpath)" - scriptdir="$(${pyrealpath} $(dirname $(readlink -f $0)))" -else - scriptdir="$(dirname $(readlink -f $0))" - pyrealpath="${pythonexec} ${scriptdir}/realpath.py" - scriptdir="$(${pyrealpath} ${scriptdir})" - pyrealpath="${pythonexec} ${scriptdir}/realpath.py" -fi -pyscriptfile="${scriptdir}/pydeb-gen.py" -pyshellfile="${scriptdir}/pydeb-gen.sh" -codename="xenial" -oldwd="$(pwd)" - -if [ $# -eq 0 ]; then - pypkgdir="$(${pythonexec} "${pyscriptfile}" -g)" - pypkgparentdir="$(${pythonexec} "${pyscriptfile}" -s "${pypkgdir}" -p)" - pypkgtarname="$(${pythonexec} "${pyscriptfile}" -s "${pypkgdir}" -t)" - pypkgdirname="$(${pythonexec} "${pyscriptfile}" -s "${pypkgdir}" -d)" - pypkgsource="$(${pythonexec} "${pyscriptfile}" -s "${pypkgdir}" -e)" -fi -if [ $# -gt 0 ]; then - if [ $# -gt 1 ]; then - codename="${2}" - fi - pypkgdir="$(${pythonexec} "${pyscriptfile}" -s "${1}" -g)" - pypkgparentdir="$(${pythonexec} "${pyscriptfile}" -s "${pypkgdir}" -p)" - pypkgtarname="$(${pythonexec} "${pyscriptfile}" -s "${pypkgdir}" -t)" - pypkgdirname="$(${pythonexec} "${pyscriptfile}" -s "${pypkgdir}" -d)" - pypkgsource="$(${pythonexec} "${pyscriptfile}" -s "${pypkgdir}" -e)" -fi - -cd "${pypkgdir}" -${pythonexec} "./setup.py" "sdist" -srcfiles="$(${pythonexec} "${pypkgdir}/setup.py" getsourceinfo)" -cd "${pypkgparentdir}" -tar -cavvf "${pypkgparentdir}/${pypkgtarname}" --transform="s/$(basename ${pypkgdir})/${pypkgdirname}/" ${srcfiles} -file -z -k "${pypkgparentdir}/${pypkgtarname}" -cd "${pypkgdir}" -${pythonexec} "${pypkgdir}/setup.py" cleansourceinfo -${pythonexec} "${pyscriptfile}" -s "${pypkgdir}" -c "${codename}" -cd "${oldwd}" diff --git a/pkgbuild/ubuntu/python2/realpath.py b/pkgbuild/ubuntu/python2/realpath.py deleted file mode 100755 index 9e40990..0000000 --- a/pkgbuild/ubuntu/python2/realpath.py +++ /dev/null @@ -1,39 +0,0 @@ -#!/usr/bin/env python2 - -''' - This program is free software; you can redistribute it and/or modify - it under the terms of the Revised BSD License. - - 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 - Revised BSD License for more details. - - Copyright 2011-2016 Game Maker 2k - https://github.com/GameMaker2k - Copyright 2011-2016 Kazuki Przyborowski - https://github.com/KazukiPrzyborowski - - $FileInfo: realpath.py - Last Update: 4/23/2016 Ver. 0.0.5 RC 3 - Author: cooldude2k $ -''' - -from __future__ import absolute_import, division, print_function, unicode_literals -import os -import sys -import argparse - -__version_info__ = (0, 0, 5, "rc3") -if(__version_info__[3] != None): - __version__ = str(__version_info__[0])+"."+str(__version_info__[1])+"."+str( - __version_info__[2])+"+"+str(__version_info__[3]) -if(__version_info__[3] == None): - __version__ = str( - __version_info__[0])+"."+str(__version_info__[1])+"."+str(__version_info__[2]) - -proname = "realpath" -prover = __version__ -profullname = proname+" "+prover - -parser = argparse.ArgumentParser(conflict_handler="resolve", add_help=True) -parser.add_argument("-v", "--version", action="version", version=profullname) -parser.add_argument("filepath", help="enter a file name/path") -getargs = parser.parse_args() -print(os.path.realpath(getargs.filepath)) diff --git a/pkgbuild/ubuntu/python2/which.py b/pkgbuild/ubuntu/python2/which.py deleted file mode 100755 index af5429a..0000000 --- a/pkgbuild/ubuntu/python2/which.py +++ /dev/null @@ -1,46 +0,0 @@ -#!/usr/bin/env python2 - -''' - This program is free software; you can redistribute it and/or modify - it under the terms of the Revised BSD License. - - 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 - Revised BSD License for more details. - - Copyright 2011-2016 Game Maker 2k - https://github.com/GameMaker2k - Copyright 2011-2016 Kazuki Przyborowski - https://github.com/KazukiPrzyborowski - - $FileInfo: which.py - Last Update: 4/23/2016 Ver. 0.0.5 RC 3 - Author: cooldude2k $ -''' - -from __future__ import absolute_import, division, print_function, unicode_literals -import os -import sys -import argparse - -__version_info__ = (0, 0, 5, "rc3") -if(__version_info__[3] != None): - __version__ = str(__version_info__[0])+"."+str(__version_info__[1])+"."+str( - __version_info__[2])+"+"+str(__version_info__[3]) -if(__version_info__[3] == None): - __version__ = str( - __version_info__[0])+"."+str(__version_info__[1])+"."+str(__version_info__[2]) - -proname = "which" -prover = __version__ -profullname = proname+" "+prover - - -def which_exec(execfile): - for path in os.environ["PATH"].split(":"): - if os.path.exists(path + "/" + execfile): - return path + "/" + execfile - - -parser = argparse.ArgumentParser(conflict_handler="resolve", add_help=True) -parser.add_argument("-v", "--version", action="version", version=profullname) -parser.add_argument("filename", help="enter a file name/path") -getargs = parser.parse_args() -print(which_exec(getargs.filename)) diff --git a/pkgbuild/ubuntu/python3/basename.py b/pkgbuild/ubuntu/python3/basename.py deleted file mode 100755 index 346121c..0000000 --- a/pkgbuild/ubuntu/python3/basename.py +++ /dev/null @@ -1,39 +0,0 @@ -#!/usr/bin/env python3 - -''' - This program is free software; you can redistribute it and/or modify - it under the terms of the Revised BSD License. - - 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 - Revised BSD License for more details. - - Copyright 2011-2016 Game Maker 2k - https://github.com/GameMaker2k - Copyright 2011-2016 Kazuki Przyborowski - https://github.com/KazukiPrzyborowski - - $FileInfo: basename.py - Last Update: 2/15/2016 Ver. 0.0.5 RC 3 - Author: cooldude2k $ -''' - -from __future__ import absolute_import, division, print_function, unicode_literals -import os -import sys -import argparse - -__version_info__ = (0, 0, 5, "rc3") -if(__version_info__[3] != None): - __version__ = str(__version_info__[0])+"."+str(__version_info__[1])+"."+str( - __version_info__[2])+"+"+str(__version_info__[3]) -if(__version_info__[3] == None): - __version__ = str( - __version_info__[0])+"."+str(__version_info__[1])+"."+str(__version_info__[2]) - -proname = "basename" -prover = __version__ -profullname = proname+" "+prover - -parser = argparse.ArgumentParser(conflict_handler="resolve", add_help=True) -parser.add_argument("-v", "--version", action="version", version=profullname) -parser.add_argument("filepath", help="enter a file name/path") -getargs = parser.parse_args() -print(os.path.basename(getargs.filepath)) diff --git a/pkgbuild/ubuntu/python3/dirname.py b/pkgbuild/ubuntu/python3/dirname.py deleted file mode 100755 index 080502f..0000000 --- a/pkgbuild/ubuntu/python3/dirname.py +++ /dev/null @@ -1,39 +0,0 @@ -#!/usr/bin/env python3 - -''' - This program is free software; you can redistribute it and/or modify - it under the terms of the Revised BSD License. - - 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 - Revised BSD License for more details. - - Copyright 2011-2016 Game Maker 2k - https://github.com/GameMaker2k - Copyright 2011-2016 Kazuki Przyborowski - https://github.com/KazukiPrzyborowski - - $FileInfo: dirname.py - Last Update: 2/15/2016 Ver. 0.0.5 RC 3 - Author: cooldude2k $ -''' - -from __future__ import absolute_import, division, print_function, unicode_literals -import os -import sys -import argparse - -__version_info__ = (0, 0, 5, "rc3") -if(__version_info__[3] != None): - __version__ = str(__version_info__[0])+"."+str(__version_info__[1])+"."+str( - __version_info__[2])+"+"+str(__version_info__[3]) -if(__version_info__[3] == None): - __version__ = str( - __version_info__[0])+"."+str(__version_info__[1])+"."+str(__version_info__[2]) - -proname = "dirname" -prover = __version__ -profullname = proname+" "+prover - -parser = argparse.ArgumentParser(conflict_handler="resolve", add_help=True) -parser.add_argument("-v", "--version", action="version", version=profullname) -parser.add_argument("filepath", help="enter a file name/path") -getargs = parser.parse_args() -print(os.path.dirname(getargs.filepath)) diff --git a/pkgbuild/ubuntu/python3/pydeb-gen.py b/pkgbuild/ubuntu/python3/pydeb-gen.py deleted file mode 100755 index 1ce77b4..0000000 --- a/pkgbuild/ubuntu/python3/pydeb-gen.py +++ /dev/null @@ -1,377 +0,0 @@ -#!/usr/bin/env python3 - -''' - This program is free software; you can redistribute it and/or modify - it under the terms of the Revised BSD License. - - 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 - Revised BSD License for more details. - - Copyright 2011-2016 Game Maker 2k - https://github.com/GameMaker2k - Copyright 2011-2016 Kazuki Przyborowski - https://github.com/KazukiPrzyborowski - - $FileInfo: pydeb-gen.py - Last Update: 6/1/2016 Ver. 0.2.0 RC 1 - Author: cooldude2k $ -''' - -from __future__ import absolute_import, division, print_function, unicode_literals -import re -import os -import sys -import time -import datetime -import argparse -import subprocess -import json - -__version_info__ = (0, 2, 0, "rc1") -if(__version_info__[3] != None): - __version__ = str(__version_info__[0])+"."+str(__version_info__[1])+"."+str( - __version_info__[2])+"+"+str(__version_info__[3]) -if(__version_info__[3] == None): - __version__ = str( - __version_info__[0])+"."+str(__version_info__[1])+"."+str(__version_info__[2]) - -proname = "pydeb-gen" -prover = __version__ -profullname = proname+" "+prover -buildsystem = "pybuild" - - -def which_exec(execfile): - for path in os.environ["PATH"].split(":"): - if os.path.exists(path + "/" + execfile): - return path + "/" + execfile - - -distupnametover = {'Warty': "4.10", 'Hoary': "5.04", 'Breezy': "5.10", 'Dapper': "6.06", 'Edgy': "6.10", 'Feisty': "7.04", 'Gutsy': "7.10", 'Hardy': "8.04", 'Intrepid': "8.10", 'Jaunty': "9.04", 'Karmic': "9.10", 'Lucid': "10.04", 'Maverick': "10.10", - 'Natty': "11.04", 'Oneiric': "11.10", 'Precise': "12.04", 'Quantal': "12.10", 'Raring': "13.04", 'Saucy': "13.10", 'Trusty': "14.04", 'Utopic': "14.10", 'Vivid': "15.04", 'Wily': "15.10", 'Xenial': "16.04", 'Yakkety': "16.10", 'Zesty': "16.10"} -distnametover = {'warty': "4.10", 'hoary': "5.04", 'breezy': "5.10", 'dapper': "6.06", 'edgy': "6.10", 'feisty': "7.04", 'gutsy': "7.10", 'hardy': "8.04", 'intrepid': "8.10", 'jaunty': "9.04", 'karmic': "9.10", 'lucid': "10.04", 'maverick': "10.10", - 'natty': "11.04", 'oneiric': "11.10", 'precise': "12.04", 'quantal': "12.10", 'raring': "13.04", 'saucy': "13.10", 'trusty': "14.04", 'utopic': "14.10", 'vivid': "15.04", 'wily': "15.10", 'xenial': "16.04", 'yakkety': "16.10", 'zesty': "17.04"} -distnamelist = distnametover.keys() -distvertoname = {'4.10': "warty", '5.04': "hoary", '5.10': "breezy", '6.06': "dapper", '6.10': "edgy", '7.04': "feisty", '7.10': "gutsy", '8.04': "hardy", '8.10': "intrepid", '9.04': "jaunty", '9.10': "karmic", '10.04': "lucid", - '10.10': "maverick", '11.04': "natty", '11.10': "oneiric", '12.04': "precise", '12.10': "quantal", '13.04': "raring", '13.10': "saucy", '14.04': "trusty", '14.10': "utopic", '15.04': "vivid", '15.10': "wily", '16.04': "xenial", '17.04': "zesty"} -distvertoupname = {'4.10': "Warty", '5.04': "Hoary", '5.10': "Breezy", '6.06': "Dapper", '6.10': "Edgy", '7.04': "Feisty", '7.10': "Gutsy", '8.04': "Hardy", '8.10': "Intrepid", '9.04': "Jaunty", '9.10': "Karmic", '10.04': "Lucid", - '10.10': "Maverick", '11.04': "Natty", '11.10': "Oneiric", '12.04': "Precise", '12.10': "Quantal", '13.04': "Raring", '13.10': "Saucy", '14.04': "Trusty", '14.10': "Utopic", '15.04': "Vivid", '15.10': "Wily", '16.04': "Xenial", '17.04': "Zesty"} -distnamelistalt = distvertoname.values() -distnametoveralt = {'Warty Warthog': "4.10", 'Hoary Hedgehog': "5.04", 'Breezy Badger': "5.10", 'Dapper Drake': "6.06", 'Edgy Eft': "6.10", - 'Feisty Fawn': "7.04", 'Gutsy Gibbon': "7.10", 'Hardy Heron': "8.04", 'Intrepid Ibex': "8.10", 'Jaunty Jackalope': "9.04", 'Karmic Koala': "9.10", 'Lucid Lynx': "10.04", 'Maverick Meerkat': "10.10", 'Natty Narwhal': "11.04", 'Oneiric Ocelot': "11.10", 'Precise Pangolin': "12.04", 'Quantal Quetzal': "12.10", 'Raring Ringtail': "13.04", 'Saucy Salamander': "13.10", 'Trusty Tahr': "14.04", 'Utopic Unicorn': "14.10", 'Vivid Vervet': "15.04", 'Wily Werewolf': "15.10", 'Xenial Xerus': "16.04", 'Yakkety Yak': "16.10", 'Zesty Zapus': "17.04"} -distvertonamealt = {'4.10': "Warty Warthog", '5.04': "Hoary Hedgehog", '5.10': "Breezy Badger", '6.06': "Dapper Drake", '6.10': "Edgy Eft", - '7.04': "Feisty Fawn", '7.10': "Gutsy Gibbon", '8.04': "Hardy Heron", '8.10': "Intrepid Ibex", '9.04': "Jaunty Jackalope", '9.10': "Karmic Koala", '10.04': "Lucid Lynx", '10.10': "Maverick Meerkat", '11.04': "Natty Narwhal", '11.10': "Oneiric Ocelot", '12.04': "Precise Pangolin", '12.10': "Quantal Quetzal", '13.04': "Raring Ringtail", '13.10': "Saucy Salamander", '14.04': "Trusty Tahr", '14.10': "Utopic Unicorn", '15.04': "Vivid Vervet", '15.10': "Wily Werewolf", '16.04': "Xenial Xerus", '16.10': "Yakkety Yak", '17.04': "Zesty Zapus"} - -lmdistvertoname = {'1.0': "ada", '2.0': "barbara", '2.1': "bea", '2.2': "bianca", '3.0': "cassandra", '3.1': "celena", '4.0': "daryna", '5': "elyssa", '6': "felicia", '7': "gloria", '8': "helena", '9': "isadora", - '10': "julia", '11': "katya", '12': "lisa", '13': "maya", '14': "nadia", '15': "olivia", '16': "petra", '17': "qiana", '17.1': "rebecca", '17.2': "rafaela", '17.3': "rosa", '18': "sarah", '18.1': "serena"} -lmdistvertonamealt = {'1.0': "Ada", '2.0': "Barbara", '2.1': "Bea", '2.2': "Bianca", '3.0': "Cassandra", '3.1': "Celena", '4.0': "Daryna", '5': "Elyssa", '6': "Felicia", '7': "Gloria", '8': "Helena", '9': "Isadora", - '10': "Julia", '11': "Katya", '12': "Lisa", '13': "Maya", '14': "Nadia", '15': "Olivia", '16': "Petra", '17': "Qiana", '17.1': "Rebecca", '17.2': "Rafaela", '17.3': "Rosa", '18': "Sarah", '18.1': "Serena"} -lmdistnamelistalt = lmdistvertoname.values() -lmdistnametover = {'ada': "1.0", 'barbara': "2.0", 'bea': "2.1", 'bianca': "2.2", 'cassandra': "3.0", 'celena': "3.1", 'daryna': "4.0", 'elyssa': "5", 'felicia': "6", 'gloria': "7", 'helena': "8", 'isadora': "9", - 'julia': "10", 'katya': "11", 'lisa': "12", 'maya': "13", 'nadia': "14", 'olivia': "15", 'petra': "16", 'qiana': "17", 'rebecca': "17.1", 'rafaela': "17.2", 'rosa': "17.3", 'sarah': "18", 'serena': "18.1"} -lmdistnametoveralt = {'Ada': "1.0", 'Barbara': "2.0", 'Bea': "2.1", 'Bianca': "2.2", 'Cassandra': "3.0", 'Celena': "3.1", 'Daryna': "4.0", 'Elyssa': "5", 'Felicia': "6", 'Gloria': "7", 'Helena': "8", 'Isadora': "9", - 'Julia': "10", 'Katya': "11", 'Lisa': "12", 'Maya': "13", 'Nadia': "14", 'Olivia': "15", 'Petra': "16", 'Qiana': "17", 'Rebecca': "17.1", 'Rafaela': "17.2", 'Rosa': "17.3", 'Sarah': "18", 'Serena': "18.1"} -lmdistnamelist = lmdistnametover.keys() -distlmnametouname = {"ada": "dapper", "barbara": "edgy", "bea": "edgy", "bianca": "edgy", "cassandra": "feisty", "celena": "feisty", "daryna": "gutsy", "elyssa": "hardy", "felicia": "intrepid", "gloria": "jaunty", "helena": "karmic", "isadora": "lucid", - "julia": "maverick", "katya": "natty", "lisa": "oneiric", "maya": "precise", "nadia": "quantal", "olivia": "raring", "petra": "saucy", "qiana": "trusty", "rebecca": "trusty", "rafaela": "trusty", "rosa": "trusty", "sarah": "xenial", "serena": "xenial"} -distlmnametounamealt = {"Ada": "Dapper", "Barbara": "Edgy", "Bea": "Edgy", "Bianca": "Edgy", "Cassandra": "Feisty", "Celena": "Feisty", "Daryna": "Gutsy", "Elyssa": "Hardy", "Felicia": "Intrepid", "Gloria": "Jaunty", "Helena": "Karmic", "Isadora": "Lucid", - "Julia": "Maverick", "Katya": "Natty", "Lisa": "Oneiric", "Maya": "Precise", "Nadia": "Quantal", "Olivia": "Raring", "Petra": "Saucy", "Qiana": "Trusty", "Rebecca": "Trusty", "Rafaela": "Trusty", "Rosa": "Trusty", "Sarah": "Xenial", "Serena": "Xenial"} - -ubuntu_oldstable = "wily" -ubuntu_stable = "xenial" -ubuntu_lts_satble = "xenial" -ubuntu_testing = "yakkety" -linuxmint_ubuntu_stable = ubuntu_lts_satble - -parser = argparse.ArgumentParser(conflict_handler="resolve", add_help=True) -parser.add_argument("-v", "--version", action="version", version=profullname) -parser.add_argument( - "-s", "--source", default=os.path.realpath(os.getcwd()), help="source dir") -parser.add_argument("-g", "--getsource", - action="store_true", help="get source dir") -parser.add_argument("-p", "--getparent", - action="store_true", help="get parent dir") -parser.add_argument("-t", "--gettarname", - action="store_true", help="get tar name") -parser.add_argument("-d", "--getdirname", - action="store_true", help="get dir name") -parser.add_argument("-c", "--codename", default=ubuntu_stable, - help="enter release code name") -parser.add_argument("-e", "--getpkgsource", - action="store_true", help="get pkg source") -getargs = parser.parse_args() -getargs.source = os.path.realpath(getargs.source) -pkgsetuppy = os.path.realpath(getargs.source+os.path.sep+"setup.py") -pyexecpath = os.path.realpath(sys.executable) -if(not os.path.exists(getargs.source) or not os.path.isdir(getargs.source)): - raise Exception("Could not find directory.") -if(not os.path.exists(pkgsetuppy) or not os.path.isfile(pkgsetuppy)): - raise Exception("Could not find setup.py in directory.") - -getargs.codename = distlmnametouname.get(getargs.codename, getargs.codename) -getargs.codename = distlmnametounamealt.get(getargs.codename, getargs.codename) -getargs.codename = getargs.codename.lower() -if(not getargs.codename in distnamelist): - print("Could not build for ubuntu "+getargs.codename+" codename.") - sys.exit() - -pypkgenlistp = subprocess.Popen( - [pyexecpath, pkgsetuppy, "getversioninfo"], stdout=subprocess.PIPE, stderr=subprocess.PIPE) -pypkgenout, pypkgenerr = pypkgenlistp.communicate() -if(sys.version[0] == "3"): - pypkgenout = pypkgenout.decode('utf-8') -pymodule = json.loads(pypkgenout) -setuppy_verinfo = pymodule['versionlist'] -setuppy_author = pymodule['author'] -setuppy_authoremail = pymodule['authoremail'] -setuppy_maintainer = pymodule['maintainer'] -setuppy_maintaineremail = pymodule['maintaineremail'] -setuppy_description = pymodule['description'] -setuppy_license = pymodule['license'] -setuppy_keywords = pymodule['keywords'] -setuppy_url = pymodule['url'] -setuppy_downloadurl = pymodule['downloadurl'] -setuppy_longdescription = pymodule['longdescription'] -setuppy_platforms = pymodule['platforms'] -standverfilename = os.path.realpath(os.path.sep+"usr"+os.path.sep+"share"+os.path.sep + - "lintian"+os.path.sep+"data"+os.path.sep+"standards-version"+os.path.sep+"release-dates") -standverfile = open(standverfilename, "r") -standverdata = standverfile.read() -standverfile.close() -getstandver = re.findall("([0-9]\.[0-9]\.[0-9])\s+([0-9]+)", standverdata) -getcurstandver = getstandver[0][0] -dpkglocatout = which_exec("dpkg") -pydpkglistp = subprocess.Popen( - [dpkglocatout, "-s", "debhelper"], stdout=subprocess.PIPE, stderr=subprocess.PIPE) -pydpkgout, pydpkgerr = pydpkglistp.communicate() -if(sys.version[0] == "3"): - pydpkgout = pydpkgout.decode("utf-8") -pydpkg_esc = re.escape("Version:")+'\s+([0-9]+)'+re.escape(".") -pydpkg_val = re.findall(pydpkg_esc, pydpkgout.replace("ubuntu", "."))[0] - -if(sys.version[0] == "2"): - pkgsource = "py2www-get" -if(sys.version[0] == "3"): - pkgsource = "py3www-get" -pkgupstreamname = "PyWWW-Get" -pkgveralt = str(setuppy_verinfo[0])+"." + \ - str(setuppy_verinfo[1])+"."+str(setuppy_verinfo[2]) -pkgver = str(pkgveralt)+"~rc"+str(setuppy_verinfo[4])+"~"+getargs.codename+str( - distnametover.get(getargs.codename, "1").replace(".", "")) -pkgdistname = getargs.codename -pkgurgency = "urgency=low" -pkgauthorname = setuppy_author -pkgauthoremail = setuppy_authoremail -pkgauthor = pkgauthorname+" <"+pkgauthoremail+">" -pkgmaintainername = setuppy_maintainer -pkgmaintaineremail = setuppy_maintaineremail -pkgmaintainer = pkgmaintainername+" <"+pkgmaintaineremail+">" -pkggiturl = "https://github.com/GameMaker2k/PyWWW-Get.git" -pkghomepage = setuppy_url -pkgsection = "python" -pkgpriority = "optional" -if(sys.version[0] == "2"): - pkgbuilddepends = "python-setuptools, python-all, debhelper, dh-python, devscripts" -if(sys.version[0] == "3"): - pkgbuilddepends = "python3-setuptools, python3-all, debhelper, dh-python, devscripts" -if(getargs.codename == "lucid" or getargs.codename == "precise"): - if(sys.version[0] == "2"): - pkgbuilddepends = "python-setuptools, python-all, debhelper, dh-python, devscripts" - if(sys.version[0] == "3"): - pkgbuilddepends = "python3-setuptools, python3-all, debhelper, dh-python, devscripts" -pkgstandardsversion = getcurstandver -if(sys.version[0] == "2"): - pkgpackage = "python-pywww-get" - pkgoldname = "python-www-get" -if(sys.version[0] == "3"): - pkgpackage = "python3-pywww-get" - pkgoldname = "python3-www-get" -pkgarchitecture = "all" -if(sys.version[0] == "2"): - pkgdepends = "${misc:Depends}, ${python:Depends}" -if(sys.version[0] == "3"): - pkgdepends = "${misc:Depends}, ${python3:Depends}" -pkgdescription = setuppy_description+"\n "+setuppy_longdescription -pkgtzstr = time.strftime("%a, %d %b %Y %H:%M:%S %z") - -if(getargs.getsource == True): - print(getargs.source) - sys.exit() -if(getargs.getparent == True): - print(os.path.realpath(os.path.dirname(getargs.source))) - sys.exit() -if(getargs.getdirname == True): - print(pkgsource+"_"+pkgveralt+".orig") - sys.exit() -if(getargs.gettarname == True): - print(pkgsource+"_"+pkgveralt+".orig.tar.gz") - sys.exit() -if(getargs.getpkgsource == True): - print(pkgsource) - sys.exit() - -print("generating debian package build directory") - -debpkg_debian_dir = os.path.realpath(getargs.source+os.path.sep+"debian") -print("creating directory "+debpkg_debian_dir) -if(not os.path.exists(debpkg_debian_dir)): - os.makedirs(debpkg_debian_dir) -os.chmod(debpkg_debian_dir, int("0755", 8)) - -debpkg_changelog_file = os.path.realpath( - debpkg_debian_dir+os.path.sep+"changelog") -print("generating file "+debpkg_changelog_file) -debpkg_string_temp = pkgsource + \ - " ("+pkgver+") "+pkgdistname+"; "+pkgurgency+"\n\n" -debpkg_string_temp += " * source package automatically created by "+profullname+"\n\n" -debpkg_string_temp += " -- "+pkgmaintainer+" "+pkgtzstr+"\n" -debpkg_file_temp = open(debpkg_changelog_file, "w") -debpkg_file_temp.write(debpkg_string_temp) -debpkg_file_temp.close() -os.chmod(debpkg_changelog_file, int("0644", 8)) - -debpkg_compat_file = os.path.realpath(debpkg_debian_dir+os.path.sep+"compat") -print("generating file "+debpkg_compat_file) -debpkg_string_temp = str(pydpkg_val)+"\n" -debpkg_file_temp = open(debpkg_compat_file, "w") -debpkg_file_temp.write(debpkg_string_temp) -debpkg_file_temp.close() -os.chmod(debpkg_compat_file, int("0644", 8)) - -debpkg_control_file = os.path.realpath(debpkg_debian_dir+os.path.sep+"control") -print("generating file "+debpkg_control_file) -debpkg_string_temp = "Source: "+pkgsource+"\n" -debpkg_string_temp += "Maintainer: "+pkgmaintainer+"\n" -debpkg_string_temp += "Homepage: "+pkghomepage+"\n" -debpkg_string_temp += "Vcs-Git: "+pkggiturl+"\n" -debpkg_string_temp += "Vcs-Browser: "+pkghomepage+"\n" -debpkg_string_temp += "Section: "+pkgsection+"\n" -debpkg_string_temp += "Priority: "+pkgpriority+"\n" -debpkg_string_temp += "Build-Depends: "+pkgbuilddepends+"\n" -debpkg_string_temp += "Standards-Version: "+pkgstandardsversion+"\n\n" -debpkg_string_temp += "Package: "+pkgpackage+"\n" -debpkg_string_temp += "Architecture: "+pkgarchitecture+"\n" -debpkg_string_temp += "Depends: "+pkgdepends+"\n" -debpkg_string_temp += "Replaces: "+pkgoldname+"\n" -debpkg_string_temp += "Description: "+pkgdescription+"\n" -debpkg_file_temp = open(debpkg_control_file, "w") -debpkg_file_temp.write(debpkg_string_temp) -debpkg_file_temp.close() -os.chmod(debpkg_control_file, int("0644", 8)) - -debpkg_copyright_file = os.path.realpath( - debpkg_debian_dir+os.path.sep+"copyright") -print("generating file "+debpkg_copyright_file) -debpkg_string_temp = "Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/\n" -debpkg_string_temp += "Upstream-Name: "+pkgupstreamname+"\n" -debpkg_string_temp += "Source: "+pkghomepage+"\n\n" -debpkg_string_temp += "Files: *\n" -debpkg_string_temp += "Copyright: Copyright 2011-2016 "+pkgauthor+"\n" -debpkg_string_temp += "License: BSD\n\n" -debpkg_string_temp += "License: BSD\n" -debpkg_string_temp += " Revised BSD License\n\n" -debpkg_string_temp += "Copyright (C) 2011-2016 Game Maker 2k. \n" -debpkg_string_temp += "All rights reserved.\n\n" -debpkg_string_temp += "Redistribution and use in source and binary forms, with or without\n" -debpkg_string_temp += "modification, are permitted provided that the following conditions are met:\n\n" -debpkg_string_temp += " 1. Redistributions of source code must retain the above copyright notice,\n" -debpkg_string_temp += " this list of conditions and the following disclaimer.\n\n" -debpkg_string_temp += " 2. Redistributions in binary form must reproduce the above copyright \n" -debpkg_string_temp += " notice, this list of conditions and the following disclaimer in \n" -debpkg_string_temp += " the documentation and/or other materials provided with the distribution.\n\n" -debpkg_string_temp += " 3. Neither the name of Game Maker 2k nor the names of its contributors\n" -debpkg_string_temp += " may be used to endorse or promote products derived from this software\n" -debpkg_string_temp += " without specific prior written permission.\n\n" -debpkg_string_temp += "THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS IS\" \n" -debpkg_string_temp += "AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE \n" -debpkg_string_temp += "IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE \n" -debpkg_string_temp += "ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE \n" -debpkg_string_temp += "LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR \n" -debpkg_string_temp += "CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF \n" -debpkg_string_temp += "SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS \n" -debpkg_string_temp += "INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN \n" -debpkg_string_temp += "CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) \n" -debpkg_string_temp += "ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF \n" -debpkg_string_temp += "THE POSSIBILITY OF SUCH DAMAGE.\n\n" -debpkg_string_temp += "The views and conclusions contained in the software and documentation are those of the\n" -debpkg_string_temp += "authors and should not be interpreted as representing official policies, either expressed\n" -debpkg_string_temp += "or implied, of Game Maker 2k.\n" -debpkg_file_temp = open(debpkg_copyright_file, "w") -debpkg_file_temp.write(debpkg_string_temp) -debpkg_file_temp.close() -os.chmod(debpkg_copyright_file, int("0644", 8)) - -debpkg_rules_file = os.path.realpath(debpkg_debian_dir+os.path.sep+"rules") -print("generating file "+debpkg_rules_file) -if(sys.version[0] == "2" and (buildsystem == "python" or buildsystem == "python_distutils")): - debpkg_string_temp = "#!/usr/bin/make -f\n\n" - debpkg_string_temp += "# This file was automatically generated by "+profullname+" at\n" - debpkg_string_temp += "# "+pkgtzstr+"\n\n" - debpkg_string_temp += "export DH_VERBOSE=1\n\n" - debpkg_string_temp += "%:\n" - debpkg_string_temp += " dh $@ --with python2 --buildsystem=python_distutils\n" -if(sys.version[0] == "3" and (buildsystem == "python" or buildsystem == "python_distutils")): - debpkg_string_temp = "#!/usr/bin/make -f\n\n" - debpkg_string_temp += "# This file was automatically generated by "+profullname+" at\n" - debpkg_string_temp += "# "+pkgtzstr+"\n\n" - debpkg_string_temp += "export DH_VERBOSE=1\n\n" - debpkg_string_temp += "%:\n" - debpkg_string_temp += " dh $@ --with python3\n" - debpkg_string_temp += "override_dh_auto_build:\n" - debpkg_string_temp += " python3 setup.py build\n\n" - debpkg_string_temp += "override_dh_auto_test:\n" - debpkg_string_temp += " python3 setup.py test\n\n" - debpkg_string_temp += "override_dh_auto_install:\n" - debpkg_string_temp += " python3 setup.py install \\\n" - debpkg_string_temp += " --force --root=$(CURDIR)/debian/" + \ - pkgpackage+" \\\n" - debpkg_string_temp += " --no-compile -O0 --install-layout=deb\n\n" - debpkg_string_temp += "override_dh_auto_clean:\n" - debpkg_string_temp += " python3 setup.py clean\n" -if(sys.version[0] == "2" and (buildsystem == "pybuild" or buildsystem == "python_build")): - debpkg_string_temp = "#!/usr/bin/make -f\n\n" - debpkg_string_temp += "# This file was automatically generated by "+profullname+" at\n" - debpkg_string_temp += "# "+pkgtzstr+"\n\n" - debpkg_string_temp += "export DH_VERBOSE=1\n" - debpkg_string_temp += "export PYBUILD_NAME=pywww-get\n\n" - debpkg_string_temp += "%:\n" - debpkg_string_temp += " dh $@ --with python2 --buildsystem=pybuild\n" -if(sys.version[0] == "3" and (buildsystem == "pybuild" or buildsystem == "python_build")): - debpkg_string_temp = "#!/usr/bin/make -f\n\n" - debpkg_string_temp += "# This file was automatically generated by "+profullname+" at\n" - debpkg_string_temp += "# "+pkgtzstr+"\n\n" - debpkg_string_temp += "export DH_VERBOSE=1\n" - debpkg_string_temp += "export PYBUILD_NAME=pywww-get\n\n" - debpkg_string_temp += "%:\n" - debpkg_string_temp += " dh $@ --with python3 --buildsystem=pybuild\n" -if((sys.version[0] == "2" or sys.version[0] == "3") and buildsystem == "cmake"): - debpkg_string_temp = "#!/usr/bin/make -f\n\n" - debpkg_string_temp += "# This file was automatically generated by "+profullname+" at\n" - debpkg_string_temp += "# "+pkgtzstr+"\n\n" - debpkg_string_temp += "export DH_VERBOSE=1\n\n" - debpkg_string_temp += "%:\n" - debpkg_string_temp += " dh $@ --buildsystem=cmake --parallel\n" -debpkg_file_temp = open(debpkg_rules_file, "w") -debpkg_file_temp.write(debpkg_string_temp) -debpkg_file_temp.close() -os.chmod(debpkg_rules_file, int("0755", 8)) - -debpkg_source_dir = os.path.realpath(debpkg_debian_dir+os.path.sep+"source") -print("creating directory "+debpkg_source_dir) -if(not os.path.exists(debpkg_source_dir)): - os.makedirs(debpkg_source_dir) -os.chmod(debpkg_source_dir, int("0755", 8)) - -debpkg_format_file = os.path.realpath(debpkg_source_dir+os.path.sep+"format") -print("generating file "+debpkg_format_file) -debpkg_string_temp = "3.0 (native)\n" -debpkg_file_temp = open(debpkg_format_file, "w") -debpkg_file_temp.write(debpkg_string_temp) -debpkg_file_temp.close() -os.chmod(debpkg_format_file, int("0644", 8)) - -debpkg_options_file = os.path.realpath(debpkg_source_dir+os.path.sep+"options") -print("generating file "+debpkg_options_file) -debpkg_string_temp = "extend-diff-ignore=\"\\.egg-info\"\n" -debpkg_file_temp = open(debpkg_options_file, "w") -debpkg_file_temp.write(debpkg_string_temp) -debpkg_file_temp.close() -os.chmod(debpkg_options_file, int("0644", 8)) diff --git a/pkgbuild/ubuntu/python3/pydeb-gen.sh b/pkgbuild/ubuntu/python3/pydeb-gen.sh deleted file mode 100755 index 687357c..0000000 --- a/pkgbuild/ubuntu/python3/pydeb-gen.sh +++ /dev/null @@ -1,45 +0,0 @@ -#!/usr/bin/env bash - -pythonexec="$(command -v python3)" -if hash realpath 2>/dev/null; then - pyrealpath="$(command -v realpath)" - scriptdir="$(${pyrealpath} $(dirname $(readlink -f $0)))" -else - scriptdir="$(dirname $(readlink -f $0))" - pyrealpath="${pythonexec} ${scriptdir}/realpath.py" - scriptdir="$(${pyrealpath} ${scriptdir})" - pyrealpath="${pythonexec} ${scriptdir}/realpath.py" -fi -pyscriptfile="${scriptdir}/pydeb-gen.py" -pyshellfile="${scriptdir}/pydeb-gen.sh" -codename="xenial" -oldwd="$(pwd)" - -if [ $# -eq 0 ]; then - pypkgdir="$(${pythonexec} "${pyscriptfile}" -g)" - pypkgparentdir="$(${pythonexec} "${pyscriptfile}" -s "${pypkgdir}" -p)" - pypkgtarname="$(${pythonexec} "${pyscriptfile}" -s "${pypkgdir}" -t)" - pypkgdirname="$(${pythonexec} "${pyscriptfile}" -s "${pypkgdir}" -d)" - pypkgsource="$(${pythonexec} "${pyscriptfile}" -s "${pypkgdir}" -e)" -fi -if [ $# -gt 0 ]; then - if [ $# -gt 1 ]; then - codename="${2}" - fi - pypkgdir="$(${pythonexec} "${pyscriptfile}" -s "${1}" -g)" - pypkgparentdir="$(${pythonexec} "${pyscriptfile}" -s "${pypkgdir}" -p)" - pypkgtarname="$(${pythonexec} "${pyscriptfile}" -s "${pypkgdir}" -t)" - pypkgdirname="$(${pythonexec} "${pyscriptfile}" -s "${pypkgdir}" -d)" - pypkgsource="$(${pythonexec} "${pyscriptfile}" -s "${pypkgdir}" -e)" -fi - -cd "${pypkgdir}" -${pythonexec} "./setup.py" "sdist" -srcfiles="$(${pythonexec} "${pypkgdir}/setup.py" getsourceinfo)" -cd "${pypkgparentdir}" -tar -cavvf "${pypkgparentdir}/${pypkgtarname}" --transform="s/$(basename ${pypkgdir})/${pypkgdirname}/" ${srcfiles} -file -z -k "${pypkgparentdir}/${pypkgtarname}" -cd "${pypkgdir}" -${pythonexec} "${pypkgdir}/setup.py" cleansourceinfo -${pythonexec} "${pyscriptfile}" -s "${pypkgdir}" -c "${codename}" -cd "${oldwd}" diff --git a/pkgbuild/ubuntu/python3/realpath.py b/pkgbuild/ubuntu/python3/realpath.py deleted file mode 100755 index 7350f44..0000000 --- a/pkgbuild/ubuntu/python3/realpath.py +++ /dev/null @@ -1,39 +0,0 @@ -#!/usr/bin/env python3 - -''' - This program is free software; you can redistribute it and/or modify - it under the terms of the Revised BSD License. - - 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 - Revised BSD License for more details. - - Copyright 2011-2016 Game Maker 2k - https://github.com/GameMaker2k - Copyright 2011-2016 Kazuki Przyborowski - https://github.com/KazukiPrzyborowski - - $FileInfo: realpath.py - Last Update: 2/15/2016 Ver. 0.0.5 RC 3 - Author: cooldude2k $ -''' - -from __future__ import absolute_import, division, print_function, unicode_literals -import os -import sys -import argparse - -__version_info__ = (0, 0, 5, "rc3") -if(__version_info__[3] != None): - __version__ = str(__version_info__[0])+"."+str(__version_info__[1])+"."+str( - __version_info__[2])+"+"+str(__version_info__[3]) -if(__version_info__[3] == None): - __version__ = str( - __version_info__[0])+"."+str(__version_info__[1])+"."+str(__version_info__[2]) - -proname = "realpath" -prover = __version__ -profullname = proname+" "+prover - -parser = argparse.ArgumentParser(conflict_handler="resolve", add_help=True) -parser.add_argument("-v", "--version", action="version", version=profullname) -parser.add_argument("filepath", help="enter a file name/path") -getargs = parser.parse_args() -print(os.path.realpath(getargs.filepath)) diff --git a/pkgbuild/ubuntu/python3/which.py b/pkgbuild/ubuntu/python3/which.py deleted file mode 100755 index 22cccbd..0000000 --- a/pkgbuild/ubuntu/python3/which.py +++ /dev/null @@ -1,46 +0,0 @@ -#!/usr/bin/env python3 - -''' - This program is free software; you can redistribute it and/or modify - it under the terms of the Revised BSD License. - - 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 - Revised BSD License for more details. - - Copyright 2011-2016 Game Maker 2k - https://github.com/GameMaker2k - Copyright 2011-2016 Kazuki Przyborowski - https://github.com/KazukiPrzyborowski - - $FileInfo: which.py - Last Update: 2/15/2016 Ver. 0.0.5 RC 3 - Author: cooldude2k $ -''' - -from __future__ import absolute_import, division, print_function, unicode_literals -import os -import sys -import argparse - -__version_info__ = (0, 0, 5, "rc3") -if(__version_info__[3] != None): - __version__ = str(__version_info__[0])+"."+str(__version_info__[1])+"."+str( - __version_info__[2])+"+"+str(__version_info__[3]) -if(__version_info__[3] == None): - __version__ = str( - __version_info__[0])+"."+str(__version_info__[1])+"."+str(__version_info__[2]) - -proname = "which" -prover = __version__ -profullname = proname+" "+prover - - -def which_exec(execfile): - for path in os.environ["PATH"].split(":"): - if os.path.exists(path + "/" + execfile): - return path + "/" + execfile - - -parser = argparse.ArgumentParser(conflict_handler="resolve", add_help=True) -parser.add_argument("-v", "--version", action="version", version=profullname) -parser.add_argument("filename", help="enter a file name/path") -getargs = parser.parse_args() -print(which_exec(getargs.filename)) diff --git a/py2pkg-gen.sh b/py2pkg-gen.sh deleted file mode 100755 index a03943e..0000000 --- a/py2pkg-gen.sh +++ /dev/null @@ -1,4 +0,0 @@ -#!/usr/bin/env bash - -pythonexec="$(command -v python2)" -${pythonexec} "./pypkg-gen.py" "$@" diff --git a/py3pkg-gen.sh b/py3pkg-gen.sh deleted file mode 100755 index b9f7488..0000000 --- a/py3pkg-gen.sh +++ /dev/null @@ -1,4 +0,0 @@ -#!/usr/bin/env bash - -pythonexec="$(command -v python3)" -${pythonexec} "./pypkg-gen.py" "$@" diff --git a/pypkg-gen.py b/pypkg-gen.py deleted file mode 100755 index dfb5de2..0000000 --- a/pypkg-gen.py +++ /dev/null @@ -1,127 +0,0 @@ -#!/usr/bin/env python - -''' - This program is free software; you can redistribute it and/or modify - it under the terms of the Revised BSD License. - - 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 - Revised BSD License for more details. - - Copyright 2011-2016 Game Maker 2k - https://github.com/GameMaker2k - Copyright 2011-2016 Kazuki Przyborowski - https://github.com/KazukiPrzyborowski - - $FileInfo: pypkg-gen.py - Last Update: 6/1/2016 Ver. 0.2.0 RC 1 - Author: cooldude2k $ -''' - -from __future__ import absolute_import, division, print_function, unicode_literals -import re -import os -import sys -import time -import platform -import datetime -import argparse -import subprocess - -__version_info__ = (0, 2, 0, "rc1") -if(__version_info__[3] != None): - __version__ = str(__version_info__[0])+"."+str(__version_info__[1])+"."+str( - __version_info__[2])+"+"+str(__version_info__[3]) -if(__version_info__[3] == None): - __version__ = str( - __version_info__[0])+"."+str(__version_info__[1])+"."+str(__version_info__[2]) - -proname = "pypkg-gen" -prover = __version__ -profullname = proname+" "+prover - - -def which_exec(execfile): - for path in os.environ["PATH"].split(":"): - if os.path.exists(path + "/" + execfile): - return path + "/" + execfile - - -getlinuxdist = platform.linux_distribution() -setdistroname = "debian" -setdistrocname = "jessie" -if(getlinuxdist[0].lower() == "debian" or getlinuxdist[0].lower() == "ubuntu" or getlinuxdist[0].lower() == "linuxmint"): - setdistroname = getlinuxdist[0].lower() - setdistrocname = getlinuxdist[2].lower() - if(setdistrocname == ""): - lsblocatout = which_exec("lsb_release") - pylsblistp = subprocess.Popen( - [lsblocatout, "-c"], stdout=subprocess.PIPE, stderr=subprocess.PIPE) - pylsbout, pylsberr = pylsblistp.communicate() - if(sys.version[0] == "3"): - pylsbout = pylsbout.decode("utf-8") - pylsb_esc = re.escape("Codename:")+'([a-zA-Z\t+\s+]+)' - pylsbname = re.findall(pylsb_esc, pylsbout)[0].lower() - setdistrocname = pylsbname.strip() -if(getlinuxdist[0].lower() == "archlinux"): - setdistroname = getlinuxdist[0].lower() - setdistrocname = None -parser = argparse.ArgumentParser(conflict_handler="resolve", add_help=True) -parser.add_argument("-v", "--version", action="version", version=profullname) -parser.add_argument( - "-s", "--source", default=os.path.realpath(os.getcwd()), help="source dir") -parser.add_argument("-d", "--distro", default=setdistroname, - help="enter linux distribution name") -parser.add_argument("-c", "--codename", default=setdistrocname, - help="enter release code name") -parser.add_argument( - "-p", "--pyver", default=sys.version[0], help="enter version of python to use") -getargs = parser.parse_args() - -bashlocatout = which_exec("bash") - -getargs.source = os.path.realpath(getargs.source) -getargs.codename = getargs.codename.lower() -getargs.distro = getargs.distro.lower() - -if(getargs.pyver == "2"): - getpyver = "python2" -if(getargs.pyver == "3"): - getpyver = "python3" -if(getargs.pyver != "2" and getargs.pyver != "3"): - if(sys.version[0] == "2"): - getpyver = "python2" - if(sys.version[0] == "3"): - getpyver = "python3" - -get_pkgbuild_dir = os.path.realpath(getargs.source+os.path.sep+"pkgbuild") -get_pkgbuild_dist_pre_list = [d for d in os.listdir( - get_pkgbuild_dir) if os.path.isdir(os.path.join(get_pkgbuild_dir, d))] -get_pkgbuild_dist_list = [] -for dists in get_pkgbuild_dist_pre_list: - tmp_pkgbuild_python = os.path.realpath( - get_pkgbuild_dir+os.path.sep+dists+os.path.sep+getpyver) - if(os.path.exists(tmp_pkgbuild_python) and os.path.isdir(tmp_pkgbuild_python)): - get_pkgbuild_dist_list.append(dists) -if(not getargs.distro in get_pkgbuild_dist_list): - print("Could not build for "+getargs.distro+" distro.") - sys.exit() - -if(getargs.distro == "debian" or getargs.distro == "ubuntu" or getargs.distro == "linuxmint"): - pypkgpath = os.path.realpath(getargs.source+os.path.sep+"pkgbuild" + - os.path.sep+getargs.distro+os.path.sep+getpyver+os.path.sep+"pydeb-gen.sh") - pypkgenlistp = subprocess.Popen([bashlocatout, pypkgpath, getargs.source, - getargs.codename], stdout=subprocess.PIPE, stderr=subprocess.PIPE) - pypkgenout, pypkgenerr = pypkgenlistp.communicate() - if(sys.version[0] == "3"): - pypkgenout = pypkgenout.decode("utf-8") - print(pypkgenout) - pypkgenlistp.wait() - -if(getargs.distro == "archlinux"): - pypkgpath = os.path.realpath(getargs.source+os.path.sep+"pkgbuild" + - os.path.sep+getargs.distro+os.path.sep+getpyver+os.path.sep+"pypac-gen.sh") - pypkgenlistp = subprocess.Popen([bashlocatout, pypkgpath, getargs.source, - getargs.codename], stdout=subprocess.PIPE, stderr=subprocess.PIPE) - pypkgenout, pypkgenerr = pypkgenlistp.communicate() - if(sys.version[0] == "3"): - pypkgenout = pypkgenout.decode("utf-8") - print(pypkgenout) - pypkgenlistp.wait() diff --git a/pywwwget-dl.py b/pywwwget-dl.py index ee581e5..c649d74 100755 --- a/pywwwget-dl.py +++ b/pywwwget-dl.py @@ -15,7 +15,7 @@ $FileInfo: pywwwget-dl.py - Last Update: 10/5/2023 Ver. 2.0.2 RC 1 - Author: cooldude2k $ ''' -from __future__ import division, absolute_import, print_function +from __future__ import absolute_import, division, print_function, unicode_literals, generators, with_statement, nested_scopes import re import os import sys diff --git a/pywwwget.py b/pywwwget.py index 78ffed0..a65c214 100644 --- a/pywwwget.py +++ b/pywwwget.py @@ -15,7 +15,7 @@ $FileInfo: pywwwget.py - Last Update: 10/5/2023 Ver. 2.0.2 RC 1 - Author: cooldude2k $ ''' -from __future__ import division, absolute_import, print_function +from __future__ import absolute_import, division, print_function, unicode_literals, generators, with_statement, nested_scopes import re import os import sys diff --git a/pywwwgetmini.py b/pywwwgetmini.py index 9f1874b..523c1d4 100644 --- a/pywwwgetmini.py +++ b/pywwwgetmini.py @@ -16,7 +16,7 @@ $FileInfo: pywwwget.py - Last Update: 10/17/2024 Ver. 0.9.6 RC 1 - Author: cooldude2k $ ''' -from __future__ import absolute_import, division, print_function, unicode_literals +from __future__ import absolute_import, division, print_function, unicode_literals, generators, with_statement, nested_scopes import os import socket import shutil diff --git a/pywwwgetold-dl.py b/pywwwgetold-dl.py index 807eff8..8fa1160 100644 --- a/pywwwgetold-dl.py +++ b/pywwwgetold-dl.py @@ -15,7 +15,7 @@ $FileInfo: pywwwget-dl.py - Last Update: 10/5/2023 Ver. 2.0.2 RC 1 - Author: cooldude2k $ ''' -from __future__ import division, absolute_import, print_function +from __future__ import absolute_import, division, print_function, unicode_literals, generators, with_statement, nested_scopes import re import os import sys diff --git a/pywwwgetold.py b/pywwwgetold.py index 6539d5b..8759bc6 100755 --- a/pywwwgetold.py +++ b/pywwwgetold.py @@ -15,7 +15,7 @@ $FileInfo: pywwwgetold.py - Last Update: 10/5/2023 Ver. 2.0.2 RC 1 - Author: cooldude2k $ ''' -from __future__ import division, absolute_import, print_function +from __future__ import absolute_import, division, print_function, unicode_literals, generators, with_statement, nested_scopes import re import os import sys