diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..4c96675 --- /dev/null +++ b/.gitignore @@ -0,0 +1,100 @@ +# Byte-compiled / optimized / DLL files +__pycache__/ +*.py[cod] +*$py.class + +# C extensions +*.so + +# Distribution / packaging +.Python +env/ +build/ +develop-eggs/ +dist/ +downloads/ +eggs/ +.eggs/ +lib/ +lib64/ +parts/ +sdist/ +var/ +wheels/ +*.egg-info/ +.installed.cfg +*.egg + +# PyInstaller +# Usually these files are written by a python script from a template +# before PyInstaller builds the exe, so as to inject date/other infos into it. +*.manifest +*.spec + +# Installer logs +pip-log.txt +pip-delete-this-directory.txt + +# Unit test / coverage reports +htmlcov/ +.tox/ +.coverage +.coverage.* +.cache +nosetests.xml +coverage.xml +*,cover +.hypothesis/ + +# Translations +*.mo +*.pot + +# Django stuff: +*.log +local_settings.py + +# Flask stuff: +instance/ +.webassets-cache + +# Scrapy stuff: +.scrapy + +# Sphinx documentation +docs/_build/ + +# PyBuilder +target/ + +# Jupyter Notebook +.ipynb_checkpoints + +# pyenv +.python-version + +# celery beat schedule file +celerybeat-schedule + +# SageMath parsed files +*.sage.py + +# dotenv +.env + +# virtualenv +.venv +venv/ +ENV/ + +# Spyder project settings +.spyderproject + +# Rope project settings +.ropeproject + +# Idea (PyCharm) project configuration +.idea/ + +# Script directories +scripts/ diff --git a/.travis.yml b/.travis.yml index e7735ef..9beb1f9 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,14 +1,6 @@ language: python python: - "2.7" - -install: - - sudo apt-get install python-tk - - sudo pip install nvpy - - sudo apt-get install python-stdeb fakeroot python-all - + script: - - cd deb-package-builder - - sudo python setup.py --command-packages=stdeb.command bdist_deb - - sudo dpkg -i deb_dist/python-batch-renamer-cli_1.0.2b3-1_all.deb - + - sudo python setup.py install diff --git a/LICENSE b/LICENSE index 93c69f7..b96506a 100644 --- a/LICENSE +++ b/LICENSE @@ -1,6 +1,6 @@ MIT License -Copyright (c) 2016 Girish Oemrawsingh +Copyright (c) 2017 Girish Oemrawsingh Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/Linux Build/_codecs_cn.x86_64-linux-gnu.so b/Linux Build/_codecs_cn.x86_64-linux-gnu.so deleted file mode 100644 index adca602..0000000 Binary files a/Linux Build/_codecs_cn.x86_64-linux-gnu.so and /dev/null differ diff --git a/Linux Build/_codecs_hk.x86_64-linux-gnu.so b/Linux Build/_codecs_hk.x86_64-linux-gnu.so deleted file mode 100644 index 549483e..0000000 Binary files a/Linux Build/_codecs_hk.x86_64-linux-gnu.so and /dev/null differ diff --git a/Linux Build/_codecs_iso2022.x86_64-linux-gnu.so b/Linux Build/_codecs_iso2022.x86_64-linux-gnu.so deleted file mode 100644 index aee69b3..0000000 Binary files a/Linux Build/_codecs_iso2022.x86_64-linux-gnu.so and /dev/null differ diff --git a/Linux Build/_codecs_jp.x86_64-linux-gnu.so b/Linux Build/_codecs_jp.x86_64-linux-gnu.so deleted file mode 100644 index b372fed..0000000 Binary files a/Linux Build/_codecs_jp.x86_64-linux-gnu.so and /dev/null differ diff --git a/Linux Build/_codecs_kr.x86_64-linux-gnu.so b/Linux Build/_codecs_kr.x86_64-linux-gnu.so deleted file mode 100644 index 4f69846..0000000 Binary files a/Linux Build/_codecs_kr.x86_64-linux-gnu.so and /dev/null differ diff --git a/Linux Build/_codecs_tw.x86_64-linux-gnu.so b/Linux Build/_codecs_tw.x86_64-linux-gnu.so deleted file mode 100644 index 4b29bee..0000000 Binary files a/Linux Build/_codecs_tw.x86_64-linux-gnu.so and /dev/null differ diff --git a/Linux Build/_multibytecodec.x86_64-linux-gnu.so b/Linux Build/_multibytecodec.x86_64-linux-gnu.so deleted file mode 100644 index 4b193ad..0000000 Binary files a/Linux Build/_multibytecodec.x86_64-linux-gnu.so and /dev/null differ diff --git a/Linux Build/batch-renamer-cli b/Linux Build/batch-renamer-cli deleted file mode 100755 index 1bf18a1..0000000 Binary files a/Linux Build/batch-renamer-cli and /dev/null differ diff --git a/Linux Build/bz2.x86_64-linux-gnu.so b/Linux Build/bz2.x86_64-linux-gnu.so deleted file mode 100644 index 7cf46eb..0000000 Binary files a/Linux Build/bz2.x86_64-linux-gnu.so and /dev/null differ diff --git a/Linux Build/libpython2.7.so.1.0 b/Linux Build/libpython2.7.so.1.0 deleted file mode 100644 index 61c8ce9..0000000 Binary files a/Linux Build/libpython2.7.so.1.0 and /dev/null differ diff --git a/Linux Build/library.zip b/Linux Build/library.zip deleted file mode 100644 index d639b81..0000000 Binary files a/Linux Build/library.zip and /dev/null differ diff --git a/README.md b/README.md index cbbdb8b..b4a97af 100644 --- a/README.md +++ b/README.md @@ -1,44 +1,35 @@ ## Batch Renamer [![Build Status](https://travis-ci.org/darko3/batch-renamer.svg?branch=master)](https://travis-ci.org/darko3/batch-renamer) [![Packagist](https://img.shields.io/badge/python-2.7-yellow.svg)](https://www.python.org) [![Packagist](https://img.shields.io/packagist/l/doctrine/orm.svg?maxAge=2592000)](https://github.com/darko3/batch-renamer/blob/master/LICENSE) [![Packagist](https://img.shields.io/badge/OS-Linux%20|%20Windows-orange.svg)](#) -![alt text](http://i.imgur.com/xQL2Zbi.png "Screenshot from v1.0.2b") +![alt text](http://i.imgur.com/YhuX94a.png "Screenshot from v1.0.3") +An easy to use python script for quickly renaming multiple files ending with incrementing numbers. -A script written in Python 2.7 to batch rename files in a folder with the specified name ending with incrementing numbers. - -*The code will be rewritten in February 2017* +## Installation -## Releases -* Batch File Renamer v1.0.1 -* Batch File Renamer v1.0.2a -* Batch File Renamer v1.0.2b +1. Clone the git repository -Latest release: v1.0.2b + `$ git clone https://github.com/darko3/batch-renamer.git` -You can find all releases on the releases page: [https://github.com/darko3/batch-renamer/releases](https://github.com/darko3/batch-renamer/releases) +2. Change directory into the git repository -## Installation -> *Only Ubuntu Xenial, Trusty, Vivid and Wily are supported if you're installing from a PPA + `$ cd batch-renamer` -3rd party modules used: -* colorama +3. Run setup.py -colorama can be installed with pip with the following command: + `$ sudo python setup.py install` -`pip install colorama` +4. If all the above commands were successful, you should now be able to run the script from the commandline -**colorama is only needed if you're going to be building with cx_Freeze or if you're running the program from the source code (*.py files).** - -Please see https://darko3.github.io/batch-renamer/installation for installation inctructions. + `$ batch-rename` ## Requirements -**Update: Windows and Linux installers are now compiled, see https://github.com/darko3/batch-renamer/releases for the binary files.** - +* Python 2.x - 3.x +* Colorama module -* Python 2.7 (optional, only needed if you are going to be running from source) -* A Linux or Windows Operating System +You can install colorama with `$ sudo pip install colorama`. ## License This project is licensed under the terms of the MIT license. diff --git a/Windows Build/_ctypes.pyd b/Windows Build/_ctypes.pyd deleted file mode 100644 index 9faa9cb..0000000 Binary files a/Windows Build/_ctypes.pyd and /dev/null differ diff --git a/Windows Build/batch-renamer-cli.exe b/Windows Build/batch-renamer-cli.exe deleted file mode 100644 index 6319ad5..0000000 Binary files a/Windows Build/batch-renamer-cli.exe and /dev/null differ diff --git a/Windows Build/bz2.pyd b/Windows Build/bz2.pyd deleted file mode 100644 index bb76b7c..0000000 Binary files a/Windows Build/bz2.pyd and /dev/null differ diff --git a/Windows Build/library.zip b/Windows Build/library.zip deleted file mode 100644 index 599a85b..0000000 Binary files a/Windows Build/library.zip and /dev/null differ diff --git a/Windows Build/python27.dll b/Windows Build/python27.dll deleted file mode 100644 index 69f9edb..0000000 Binary files a/Windows Build/python27.dll and /dev/null differ diff --git a/Windows Build/unicodedata.pyd b/Windows Build/unicodedata.pyd deleted file mode 100644 index b3e9bbb..0000000 Binary files a/Windows Build/unicodedata.pyd and /dev/null differ diff --git a/batch-renamer-cli.py b/batch-rename.py similarity index 69% rename from batch-renamer-cli.py rename to batch-rename.py index 346f88c..c37452f 100755 --- a/batch-renamer-cli.py +++ b/batch-rename.py @@ -3,7 +3,7 @@ """ MIT License -Copyright (c) 2016 Girish Oemrawsingh +Copyright (c) 2017 Girish Oemrawsingh Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal @@ -24,6 +24,7 @@ SOFTWARE. """ +# Import required modules import os import sys import time @@ -31,21 +32,21 @@ # This is a 3rd party module, it's needed for colors in the windows commandline # If you don't have it, you can install it with pip -# pip install colorama +# $ pip install colorama import colorama # import the color module I wrote for my projects -from color import Color as tcolor -from color import textType as ttype +from batch_renamer_cli import Color as TextColor +from batch_renamer_cli import textType as TextType -version = '1.0.2b' -github_project_page = ttype.bold + tcolor.green + 'https://github.com/darko3/batch-renamer' + tcolor.white +version = '1.0.3' +github_project_page = TextType.bold + TextColor.green + 'https://github.com/darko3/batch-renamer' + TextColor.white usage = """ -Batch File Renamer %s - (C) 2016 Girish Oemrawsingh +Batch File Renamer %s - (C) 2017 Girish Oemrawsingh View this project on Github: %s -usage: ./batch-renamer-cli.py [options] +usage: ./batch-rename.py [options] Options: @@ -55,6 +56,9 @@ """ % (version, github_project_page) +rename_warning = """PLEASE CHECK IF THE FOLDER PATH AND NEW NAME IS CORRECT BECAUSE YOU CAN EASILY RENAME FILES IN ANY +FOLDER YOU DID NOT INTEND TO\nPRESS [ENTER] TO CONTINUE OR CTRL + C TO EXIT\n""" + def main(folder, new_name): @@ -89,6 +93,7 @@ def main(folder, new_name): else: rename_files(folder, new_name) + def rename_files(folder_path, new_name): file_counter = 0 @@ -97,21 +102,16 @@ def rename_files(folder_path, new_name): print("Folder path: %s\n" % folder_path) try: - raw_input(ttype.bold + tcolor.red + """PLEASE CHECK IF THE FOLDER PATH AND NEW NAME IS CORRECT -BECAUSE YOU CAN EASILY RENAME FILES IN ANY FOLDER YOU DID NOT INTEND TO\n -PRESS [ENTER] TO CONTINUE OR CTRL + C TO EXIT\n""" + tcolor.white) + raw_input(TextType.bold + TextColor.red + rename_warning + TextColor.white) except NameError: - input(ttype.bold + tcolor.red + """PLEASE CHECK IF THE FOLDER PATH AND NEW NAME IS CORRECT -BECAUSE YOU CAN EASILY RENAME FILES IN ANY FOLDER YOU DID NOT INTEND TO\n -PRESS [ENTER] TO CONTINUE OR CTRL + C TO EXIT\n""" + tcolor.white) + input(TextType.bold + TextColor.red + rename_warning + TextColor.white) except KeyboardInterrupt: - print("\nThank you for using Batch File Renamer by Girish Oemrawsingh.") - print("You can view this project on Github: %s" % github_project_page) - sys.exit(2) - - + print("\n\nThank you for using Batch File Renamer by Girish Oemrawsingh.") + print("You can view this project on Github: %s\n" % github_project_page) + sys.exit(1) + start = time.time() for root, dirs, files in os.walk(folder_path): @@ -124,16 +124,16 @@ def rename_files(folder_path, new_name): file_path = "%s/%s" % (root, f) print("Renaming %s" % file_path) ext = os.path.splitext(new_name)[1] - fname = os.path.splitext(new_name)[0] - os.rename(file_path, "%s/%s %s%s" % (root, fname, file_counter, ext)) + file_name = os.path.splitext(new_name)[0] + os.rename(file_path, "%s/%s-%s%s" % (root, file_name, file_counter, ext)) end = time.time() total_time = end - start - print("\nFinished renaming %d files with a total time of %f seconds." % (file_counter, total_time)) + print("Finished renaming %d files with a total time of %f seconds.\n" % (file_counter, total_time)) if __name__ == "__main__": - folder = '' - new_name = '' + # folder = '' + # new_name = '' colorama.init() - main(folder, new_name) + main(folder='', new_name='') diff --git a/batch_renamer_cli/__init__.py b/batch_renamer_cli/__init__.py new file mode 100644 index 0000000..748d10d --- /dev/null +++ b/batch_renamer_cli/__init__.py @@ -0,0 +1,5 @@ +#!/usr/bin/python + +# __init__.py file for batch-renamer-cli package + +from .color import * diff --git a/batch_renamer_cli/color.py b/batch_renamer_cli/color.py new file mode 100755 index 0000000..7640d0b --- /dev/null +++ b/batch_renamer_cli/color.py @@ -0,0 +1,16 @@ +# A simple color module I wrote for my projects +# Feel free to copy this script and use it for your own projects! + + +class Color: + purple = '\033[95m' + blue = '\033[94m' + green = '\033[92m' + yellow = '\033[93m' + red = '\033[91m' + white = '\033[0m' + + +class textType: + bold = '\033[1m' + underline = '\033[4m' diff --git a/build_exe.py b/build_exe.py deleted file mode 100755 index 61af020..0000000 --- a/build_exe.py +++ /dev/null @@ -1,22 +0,0 @@ -#!/usr/bin/python2 - -# Use this script if you need to build executable files for the program -# This script works for Windows & Linux operating systems -# * Make sure you have the cx_Freeze module installed for Python: http://cx-freeze.sourceforge.net -# * Make sure you have the colorama module installed too, from a terminal run: "pip install colorama" -# To build executables, run: "python build_exe.py build" in a terminal (or in CMD if you're on Windows) - -import os -import sys -import time -import getopt -import colorama -from color import Color as tcolor -from color import textType as ttype -from cx_Freeze import setup, Executable - -build_exe_options = {"packages": ["os", "sys", "time", "getopt", "color", "colorama"]} - -includes = ["sys", "os", "time", "getopt", "color", "colorama"] - -setup(name='batch-renamer-cli', version='1.0.2b', description='Batch rename files in a folder quickly.', options = {"build_exe": {"includes":includes}}, executables= [Executable("batch-renamer-cli.py")]) diff --git a/color.py b/color.py deleted file mode 100755 index 18a6cc0..0000000 --- a/color.py +++ /dev/null @@ -1,15 +0,0 @@ -# A simple color module I wrote for my projects -# Feel free to copy this script and use it for your own projects! - -class Color: - purple = '\033[95m' - blue = '\033[94m' - green = '\033[92m' - yellow = '\033[93m' - red = '\033[91m' - white = '\033[0m' - -class textType: - bold = '\033[1m' - underline = '\033[4m' - \ No newline at end of file diff --git a/deb-package-builder/batch-renamer-cli-1.0.2b3.tar.gz b/deb-package-builder/batch-renamer-cli-1.0.2b3.tar.gz deleted file mode 100644 index 07f4a5a..0000000 Binary files a/deb-package-builder/batch-renamer-cli-1.0.2b3.tar.gz and /dev/null differ diff --git a/deb-package-builder/batch_renamer_cli.egg-info/PKG-INFO b/deb-package-builder/batch_renamer_cli.egg-info/PKG-INFO deleted file mode 100644 index 7fc3499..0000000 --- a/deb-package-builder/batch_renamer_cli.egg-info/PKG-INFO +++ /dev/null @@ -1,11 +0,0 @@ -Metadata-Version: 1.1 -Name: batch-renamer-cli -Version: 1.0.2b3 -Summary: Batch rename files in a folder quickly. -Home-page: https://github.com/darko3/batch-renamer -Author: Girish Oemrawsingh -Author-email: skrillex2408@gmail.com -License: MIT -Description: UNKNOWN -Platform: UNKNOWN -Classifier: License :: MIT diff --git a/deb-package-builder/batch_renamer_cli.egg-info/SOURCES.txt b/deb-package-builder/batch_renamer_cli.egg-info/SOURCES.txt deleted file mode 100644 index f361f3b..0000000 --- a/deb-package-builder/batch_renamer_cli.egg-info/SOURCES.txt +++ /dev/null @@ -1,9 +0,0 @@ -setup.py -batch_renamer_cli.egg-info/PKG-INFO -batch_renamer_cli.egg-info/SOURCES.txt -batch_renamer_cli.egg-info/dependency_links.txt -batch_renamer_cli.egg-info/entry_points.txt -batch_renamer_cli.egg-info/top_level.txt -br/__init__.py -br/br.py -br/color.py \ No newline at end of file diff --git a/deb-package-builder/batch_renamer_cli.egg-info/dependency_links.txt b/deb-package-builder/batch_renamer_cli.egg-info/dependency_links.txt deleted file mode 100644 index 8b13789..0000000 --- a/deb-package-builder/batch_renamer_cli.egg-info/dependency_links.txt +++ /dev/null @@ -1 +0,0 @@ - diff --git a/deb-package-builder/batch_renamer_cli.egg-info/entry_points.txt b/deb-package-builder/batch_renamer_cli.egg-info/entry_points.txt deleted file mode 100644 index 02562d1..0000000 --- a/deb-package-builder/batch_renamer_cli.egg-info/entry_points.txt +++ /dev/null @@ -1,3 +0,0 @@ -[console_scripts] -batch-renamer-cli = br.br:main - diff --git a/deb-package-builder/batch_renamer_cli.egg-info/top_level.txt b/deb-package-builder/batch_renamer_cli.egg-info/top_level.txt deleted file mode 100644 index b9a724f..0000000 --- a/deb-package-builder/batch_renamer_cli.egg-info/top_level.txt +++ /dev/null @@ -1 +0,0 @@ -br diff --git a/deb-package-builder/br/__init__.py b/deb-package-builder/br/__init__.py deleted file mode 100755 index 8b13789..0000000 --- a/deb-package-builder/br/__init__.py +++ /dev/null @@ -1 +0,0 @@ - diff --git a/deb-package-builder/br/br.py b/deb-package-builder/br/br.py deleted file mode 100755 index dc3a555..0000000 --- a/deb-package-builder/br/br.py +++ /dev/null @@ -1,133 +0,0 @@ -#!/usr/bin/python2 - -""" -MIT License - -Copyright (c) 2016 Girish Oemrawsingh - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. -""" - -import os -import sys -import time -import getopt - -# import the color module I wrote for my projects -from color import Color as tcolor -from color import textType as ttype - -version = '1.0.2b' -github_project_page = ttype.bold + tcolor.green + 'https://github.com/darko3/batch-renamer' + tcolor.white -usage = """ -Batch File Renamer %s - (C) 2016 Girish Oemrawsingh -View this project on Github: %s - - -usage: ./batch-renamer-cli.py [options] - -Options: - - -h, --help print this help menu and exit - -p, --folder-path specify folder path that includes files to rename - -n, --new-name specify the new filename for the files in the folder - -""" % (version, github_project_page) - - -def init(folder, new_name): - - try: - opts, args = getopt.getopt(sys.argv[1:], "hp:n:", ["help", "folder-path=", "new-name="]) - - except getopt.GetoptError as e: - print(usage) - print(str(e) + "\n") - sys.exit(1) - - for opt, arg in opts: - - if opt in ("-h", "--help"): - print(usage) - sys.exit(0) - - elif opt in ("-p", "--folder-path"): - folder = arg - - elif opt in ("-n", "--new-name"): - new_name = arg - - if folder == '': - print(usage) - sys.exit(1) - - elif new_name == '': - print(usage) - sys.exit(1) - - else: - rename_files(folder, new_name) - -def rename_files(folder_path, new_name): - - file_counter = 0 - - print("\nNew name: %s" % new_name) - print("Folder path: %s\n" % folder_path) - - try: - raw_input(ttype.bold + tcolor.red + """PLEASE CHECK IF THE FOLDER PATH AND NEW NAME IS CORRECT -BECAUSE YOU CAN EASILY RENAME FILES IN ANY FOLDER YOU DID NOT INTEND TO\n -PRESS [ENTER] TO CONTINUE OR CTRL + C TO EXIT\n""" + tcolor.white) - - except NameError: - input(ttype.bold + tcolor.red + """PLEASE CHECK IF THE FOLDER PATH AND NEW NAME IS CORRECT -BECAUSE YOU CAN EASILY RENAME FILES IN ANY FOLDER YOU DID NOT INTEND TO\n -PRESS [ENTER] TO CONTINUE OR CTRL + C TO EXIT\n""" + tcolor.white) - - except KeyboardInterrupt: - print("\nThank you for using Batch File Renamer by Girish Oemrawsingh.") - print("You can view this project on Github: %s" % github_project_page) - sys.exit(2) - - - start = time.time() - - for root, dirs, files in os.walk(folder_path): - - dirs.sort() - files.sort() - - for f in files: - file_counter += 1 - file_path = "%s/%s" % (root, f) - print("Renaming %s" % file_path) - ext = os.path.splitext(new_name)[1] - fname = os.path.splitext(new_name)[0] - os.rename(file_path, "%s/%s %s%s" % (root, fname, file_counter, ext)) - - end = time.time() - total_time = end - start - print("\nFinished renaming %d files with a total time of %f seconds." % (file_counter, total_time)) - - -def main(): - folder = '' - new_name = '' - init(folder, new_name) diff --git a/deb-package-builder/br/color.py b/deb-package-builder/br/color.py deleted file mode 100755 index 18a6cc0..0000000 --- a/deb-package-builder/br/color.py +++ /dev/null @@ -1,15 +0,0 @@ -# A simple color module I wrote for my projects -# Feel free to copy this script and use it for your own projects! - -class Color: - purple = '\033[95m' - blue = '\033[94m' - green = '\033[92m' - yellow = '\033[93m' - red = '\033[91m' - white = '\033[0m' - -class textType: - bold = '\033[1m' - underline = '\033[4m' - \ No newline at end of file diff --git a/deb-package-builder/deb_dist/batch-renamer-cli-1.0.2b3/.pc/.quilt_patches b/deb-package-builder/deb_dist/batch-renamer-cli-1.0.2b3/.pc/.quilt_patches deleted file mode 100644 index 6857a8d..0000000 --- a/deb-package-builder/deb_dist/batch-renamer-cli-1.0.2b3/.pc/.quilt_patches +++ /dev/null @@ -1 +0,0 @@ -debian/patches diff --git a/deb-package-builder/deb_dist/batch-renamer-cli-1.0.2b3/.pc/.quilt_series b/deb-package-builder/deb_dist/batch-renamer-cli-1.0.2b3/.pc/.quilt_series deleted file mode 100644 index c206706..0000000 --- a/deb-package-builder/deb_dist/batch-renamer-cli-1.0.2b3/.pc/.quilt_series +++ /dev/null @@ -1 +0,0 @@ -series diff --git a/deb-package-builder/deb_dist/batch-renamer-cli-1.0.2b3/.pc/.version b/deb-package-builder/deb_dist/batch-renamer-cli-1.0.2b3/.pc/.version deleted file mode 100644 index 0cfbf08..0000000 --- a/deb-package-builder/deb_dist/batch-renamer-cli-1.0.2b3/.pc/.version +++ /dev/null @@ -1 +0,0 @@ -2 diff --git a/deb-package-builder/deb_dist/batch-renamer-cli-1.0.2b3/.pc/applied-patches b/deb-package-builder/deb_dist/batch-renamer-cli-1.0.2b3/.pc/applied-patches deleted file mode 100644 index e69de29..0000000 diff --git a/deb-package-builder/deb_dist/batch-renamer-cli-1.0.2b3/.pybuild/pythonX.Y_2.7/.pydistutils.cfg b/deb-package-builder/deb_dist/batch-renamer-cli-1.0.2b3/.pybuild/pythonX.Y_2.7/.pydistutils.cfg deleted file mode 100644 index 477c406..0000000 --- a/deb-package-builder/deb_dist/batch-renamer-cli-1.0.2b3/.pybuild/pythonX.Y_2.7/.pydistutils.cfg +++ /dev/null @@ -1,10 +0,0 @@ -[clean] -all=1 -[build] -build-lib=/home/girish/Desktop/Programming/Github/Projects/Batch Renamer/batch-renamer/deb-package-builder/deb_dist/batch-renamer-cli-1.0.2b3/.pybuild/pythonX.Y_2.7/build -[install] -install-layout=deb -install-scripts=/usr/bin -install-lib=/usr/lib/python2.7/dist-packages -[easy_install] -allow_hosts=None diff --git a/deb-package-builder/deb_dist/batch-renamer-cli-1.0.2b3/.pybuild/pythonX.Y_2.7/build/br/__init__.py b/deb-package-builder/deb_dist/batch-renamer-cli-1.0.2b3/.pybuild/pythonX.Y_2.7/build/br/__init__.py deleted file mode 100644 index 8b13789..0000000 --- a/deb-package-builder/deb_dist/batch-renamer-cli-1.0.2b3/.pybuild/pythonX.Y_2.7/build/br/__init__.py +++ /dev/null @@ -1 +0,0 @@ - diff --git a/deb-package-builder/deb_dist/batch-renamer-cli-1.0.2b3/.pybuild/pythonX.Y_2.7/build/br/br.py b/deb-package-builder/deb_dist/batch-renamer-cli-1.0.2b3/.pybuild/pythonX.Y_2.7/build/br/br.py deleted file mode 100644 index dc3a555..0000000 --- a/deb-package-builder/deb_dist/batch-renamer-cli-1.0.2b3/.pybuild/pythonX.Y_2.7/build/br/br.py +++ /dev/null @@ -1,133 +0,0 @@ -#!/usr/bin/python2 - -""" -MIT License - -Copyright (c) 2016 Girish Oemrawsingh - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. -""" - -import os -import sys -import time -import getopt - -# import the color module I wrote for my projects -from color import Color as tcolor -from color import textType as ttype - -version = '1.0.2b' -github_project_page = ttype.bold + tcolor.green + 'https://github.com/darko3/batch-renamer' + tcolor.white -usage = """ -Batch File Renamer %s - (C) 2016 Girish Oemrawsingh -View this project on Github: %s - - -usage: ./batch-renamer-cli.py [options] - -Options: - - -h, --help print this help menu and exit - -p, --folder-path specify folder path that includes files to rename - -n, --new-name specify the new filename for the files in the folder - -""" % (version, github_project_page) - - -def init(folder, new_name): - - try: - opts, args = getopt.getopt(sys.argv[1:], "hp:n:", ["help", "folder-path=", "new-name="]) - - except getopt.GetoptError as e: - print(usage) - print(str(e) + "\n") - sys.exit(1) - - for opt, arg in opts: - - if opt in ("-h", "--help"): - print(usage) - sys.exit(0) - - elif opt in ("-p", "--folder-path"): - folder = arg - - elif opt in ("-n", "--new-name"): - new_name = arg - - if folder == '': - print(usage) - sys.exit(1) - - elif new_name == '': - print(usage) - sys.exit(1) - - else: - rename_files(folder, new_name) - -def rename_files(folder_path, new_name): - - file_counter = 0 - - print("\nNew name: %s" % new_name) - print("Folder path: %s\n" % folder_path) - - try: - raw_input(ttype.bold + tcolor.red + """PLEASE CHECK IF THE FOLDER PATH AND NEW NAME IS CORRECT -BECAUSE YOU CAN EASILY RENAME FILES IN ANY FOLDER YOU DID NOT INTEND TO\n -PRESS [ENTER] TO CONTINUE OR CTRL + C TO EXIT\n""" + tcolor.white) - - except NameError: - input(ttype.bold + tcolor.red + """PLEASE CHECK IF THE FOLDER PATH AND NEW NAME IS CORRECT -BECAUSE YOU CAN EASILY RENAME FILES IN ANY FOLDER YOU DID NOT INTEND TO\n -PRESS [ENTER] TO CONTINUE OR CTRL + C TO EXIT\n""" + tcolor.white) - - except KeyboardInterrupt: - print("\nThank you for using Batch File Renamer by Girish Oemrawsingh.") - print("You can view this project on Github: %s" % github_project_page) - sys.exit(2) - - - start = time.time() - - for root, dirs, files in os.walk(folder_path): - - dirs.sort() - files.sort() - - for f in files: - file_counter += 1 - file_path = "%s/%s" % (root, f) - print("Renaming %s" % file_path) - ext = os.path.splitext(new_name)[1] - fname = os.path.splitext(new_name)[0] - os.rename(file_path, "%s/%s %s%s" % (root, fname, file_counter, ext)) - - end = time.time() - total_time = end - start - print("\nFinished renaming %d files with a total time of %f seconds." % (file_counter, total_time)) - - -def main(): - folder = '' - new_name = '' - init(folder, new_name) diff --git a/deb-package-builder/deb_dist/batch-renamer-cli-1.0.2b3/.pybuild/pythonX.Y_2.7/build/br/color.py b/deb-package-builder/deb_dist/batch-renamer-cli-1.0.2b3/.pybuild/pythonX.Y_2.7/build/br/color.py deleted file mode 100644 index 18a6cc0..0000000 --- a/deb-package-builder/deb_dist/batch-renamer-cli-1.0.2b3/.pybuild/pythonX.Y_2.7/build/br/color.py +++ /dev/null @@ -1,15 +0,0 @@ -# A simple color module I wrote for my projects -# Feel free to copy this script and use it for your own projects! - -class Color: - purple = '\033[95m' - blue = '\033[94m' - green = '\033[92m' - yellow = '\033[93m' - red = '\033[91m' - white = '\033[0m' - -class textType: - bold = '\033[1m' - underline = '\033[4m' - \ No newline at end of file diff --git a/deb-package-builder/deb_dist/batch-renamer-cli-1.0.2b3/PKG-INFO b/deb-package-builder/deb_dist/batch-renamer-cli-1.0.2b3/PKG-INFO deleted file mode 100644 index 7fc3499..0000000 --- a/deb-package-builder/deb_dist/batch-renamer-cli-1.0.2b3/PKG-INFO +++ /dev/null @@ -1,11 +0,0 @@ -Metadata-Version: 1.1 -Name: batch-renamer-cli -Version: 1.0.2b3 -Summary: Batch rename files in a folder quickly. -Home-page: https://github.com/darko3/batch-renamer -Author: Girish Oemrawsingh -Author-email: skrillex2408@gmail.com -License: MIT -Description: UNKNOWN -Platform: UNKNOWN -Classifier: License :: MIT diff --git a/deb-package-builder/deb_dist/batch-renamer-cli-1.0.2b3/batch_renamer_cli.egg-info/PKG-INFO b/deb-package-builder/deb_dist/batch-renamer-cli-1.0.2b3/batch_renamer_cli.egg-info/PKG-INFO deleted file mode 100644 index 7fc3499..0000000 --- a/deb-package-builder/deb_dist/batch-renamer-cli-1.0.2b3/batch_renamer_cli.egg-info/PKG-INFO +++ /dev/null @@ -1,11 +0,0 @@ -Metadata-Version: 1.1 -Name: batch-renamer-cli -Version: 1.0.2b3 -Summary: Batch rename files in a folder quickly. -Home-page: https://github.com/darko3/batch-renamer -Author: Girish Oemrawsingh -Author-email: skrillex2408@gmail.com -License: MIT -Description: UNKNOWN -Platform: UNKNOWN -Classifier: License :: MIT diff --git a/deb-package-builder/deb_dist/batch-renamer-cli-1.0.2b3/batch_renamer_cli.egg-info/SOURCES.txt b/deb-package-builder/deb_dist/batch-renamer-cli-1.0.2b3/batch_renamer_cli.egg-info/SOURCES.txt deleted file mode 100644 index ee41386..0000000 --- a/deb-package-builder/deb_dist/batch-renamer-cli-1.0.2b3/batch_renamer_cli.egg-info/SOURCES.txt +++ /dev/null @@ -1,10 +0,0 @@ -setup.cfg -setup.py -batch_renamer_cli.egg-info/PKG-INFO -batch_renamer_cli.egg-info/SOURCES.txt -batch_renamer_cli.egg-info/dependency_links.txt -batch_renamer_cli.egg-info/entry_points.txt -batch_renamer_cli.egg-info/top_level.txt -br/__init__.py -br/br.py -br/color.py \ No newline at end of file diff --git a/deb-package-builder/deb_dist/batch-renamer-cli-1.0.2b3/batch_renamer_cli.egg-info/dependency_links.txt b/deb-package-builder/deb_dist/batch-renamer-cli-1.0.2b3/batch_renamer_cli.egg-info/dependency_links.txt deleted file mode 100644 index 8b13789..0000000 --- a/deb-package-builder/deb_dist/batch-renamer-cli-1.0.2b3/batch_renamer_cli.egg-info/dependency_links.txt +++ /dev/null @@ -1 +0,0 @@ - diff --git a/deb-package-builder/deb_dist/batch-renamer-cli-1.0.2b3/batch_renamer_cli.egg-info/entry_points.txt b/deb-package-builder/deb_dist/batch-renamer-cli-1.0.2b3/batch_renamer_cli.egg-info/entry_points.txt deleted file mode 100644 index 02562d1..0000000 --- a/deb-package-builder/deb_dist/batch-renamer-cli-1.0.2b3/batch_renamer_cli.egg-info/entry_points.txt +++ /dev/null @@ -1,3 +0,0 @@ -[console_scripts] -batch-renamer-cli = br.br:main - diff --git a/deb-package-builder/deb_dist/batch-renamer-cli-1.0.2b3/batch_renamer_cli.egg-info/top_level.txt b/deb-package-builder/deb_dist/batch-renamer-cli-1.0.2b3/batch_renamer_cli.egg-info/top_level.txt deleted file mode 100644 index b9a724f..0000000 --- a/deb-package-builder/deb_dist/batch-renamer-cli-1.0.2b3/batch_renamer_cli.egg-info/top_level.txt +++ /dev/null @@ -1 +0,0 @@ -br diff --git a/deb-package-builder/deb_dist/batch-renamer-cli-1.0.2b3/br/__init__.py b/deb-package-builder/deb_dist/batch-renamer-cli-1.0.2b3/br/__init__.py deleted file mode 100755 index 8b13789..0000000 --- a/deb-package-builder/deb_dist/batch-renamer-cli-1.0.2b3/br/__init__.py +++ /dev/null @@ -1 +0,0 @@ - diff --git a/deb-package-builder/deb_dist/batch-renamer-cli-1.0.2b3/br/br.py b/deb-package-builder/deb_dist/batch-renamer-cli-1.0.2b3/br/br.py deleted file mode 100755 index dc3a555..0000000 --- a/deb-package-builder/deb_dist/batch-renamer-cli-1.0.2b3/br/br.py +++ /dev/null @@ -1,133 +0,0 @@ -#!/usr/bin/python2 - -""" -MIT License - -Copyright (c) 2016 Girish Oemrawsingh - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. -""" - -import os -import sys -import time -import getopt - -# import the color module I wrote for my projects -from color import Color as tcolor -from color import textType as ttype - -version = '1.0.2b' -github_project_page = ttype.bold + tcolor.green + 'https://github.com/darko3/batch-renamer' + tcolor.white -usage = """ -Batch File Renamer %s - (C) 2016 Girish Oemrawsingh -View this project on Github: %s - - -usage: ./batch-renamer-cli.py [options] - -Options: - - -h, --help print this help menu and exit - -p, --folder-path specify folder path that includes files to rename - -n, --new-name specify the new filename for the files in the folder - -""" % (version, github_project_page) - - -def init(folder, new_name): - - try: - opts, args = getopt.getopt(sys.argv[1:], "hp:n:", ["help", "folder-path=", "new-name="]) - - except getopt.GetoptError as e: - print(usage) - print(str(e) + "\n") - sys.exit(1) - - for opt, arg in opts: - - if opt in ("-h", "--help"): - print(usage) - sys.exit(0) - - elif opt in ("-p", "--folder-path"): - folder = arg - - elif opt in ("-n", "--new-name"): - new_name = arg - - if folder == '': - print(usage) - sys.exit(1) - - elif new_name == '': - print(usage) - sys.exit(1) - - else: - rename_files(folder, new_name) - -def rename_files(folder_path, new_name): - - file_counter = 0 - - print("\nNew name: %s" % new_name) - print("Folder path: %s\n" % folder_path) - - try: - raw_input(ttype.bold + tcolor.red + """PLEASE CHECK IF THE FOLDER PATH AND NEW NAME IS CORRECT -BECAUSE YOU CAN EASILY RENAME FILES IN ANY FOLDER YOU DID NOT INTEND TO\n -PRESS [ENTER] TO CONTINUE OR CTRL + C TO EXIT\n""" + tcolor.white) - - except NameError: - input(ttype.bold + tcolor.red + """PLEASE CHECK IF THE FOLDER PATH AND NEW NAME IS CORRECT -BECAUSE YOU CAN EASILY RENAME FILES IN ANY FOLDER YOU DID NOT INTEND TO\n -PRESS [ENTER] TO CONTINUE OR CTRL + C TO EXIT\n""" + tcolor.white) - - except KeyboardInterrupt: - print("\nThank you for using Batch File Renamer by Girish Oemrawsingh.") - print("You can view this project on Github: %s" % github_project_page) - sys.exit(2) - - - start = time.time() - - for root, dirs, files in os.walk(folder_path): - - dirs.sort() - files.sort() - - for f in files: - file_counter += 1 - file_path = "%s/%s" % (root, f) - print("Renaming %s" % file_path) - ext = os.path.splitext(new_name)[1] - fname = os.path.splitext(new_name)[0] - os.rename(file_path, "%s/%s %s%s" % (root, fname, file_counter, ext)) - - end = time.time() - total_time = end - start - print("\nFinished renaming %d files with a total time of %f seconds." % (file_counter, total_time)) - - -def main(): - folder = '' - new_name = '' - init(folder, new_name) diff --git a/deb-package-builder/deb_dist/batch-renamer-cli-1.0.2b3/br/color.py b/deb-package-builder/deb_dist/batch-renamer-cli-1.0.2b3/br/color.py deleted file mode 100755 index 18a6cc0..0000000 --- a/deb-package-builder/deb_dist/batch-renamer-cli-1.0.2b3/br/color.py +++ /dev/null @@ -1,15 +0,0 @@ -# A simple color module I wrote for my projects -# Feel free to copy this script and use it for your own projects! - -class Color: - purple = '\033[95m' - blue = '\033[94m' - green = '\033[92m' - yellow = '\033[93m' - red = '\033[91m' - white = '\033[0m' - -class textType: - bold = '\033[1m' - underline = '\033[4m' - \ No newline at end of file diff --git a/deb-package-builder/deb_dist/batch-renamer-cli-1.0.2b3/debian/changelog b/deb-package-builder/deb_dist/batch-renamer-cli-1.0.2b3/debian/changelog deleted file mode 100644 index f766b6e..0000000 --- a/deb-package-builder/deb_dist/batch-renamer-cli-1.0.2b3/debian/changelog +++ /dev/null @@ -1,5 +0,0 @@ -batch-renamer-cli (1.0.2b3-1) unstable; urgency=low - - * source package automatically created by stdeb 0.8.5 - - -- Girish Oemrawsingh Sun, 18 Sep 2016 10:44:02 -0300 diff --git a/deb-package-builder/deb_dist/batch-renamer-cli-1.0.2b3/debian/compat b/deb-package-builder/deb_dist/batch-renamer-cli-1.0.2b3/debian/compat deleted file mode 100644 index ec63514..0000000 --- a/deb-package-builder/deb_dist/batch-renamer-cli-1.0.2b3/debian/compat +++ /dev/null @@ -1 +0,0 @@ -9 diff --git a/deb-package-builder/deb_dist/batch-renamer-cli-1.0.2b3/debian/control b/deb-package-builder/deb_dist/batch-renamer-cli-1.0.2b3/debian/control deleted file mode 100644 index aa7bbbd..0000000 --- a/deb-package-builder/deb_dist/batch-renamer-cli-1.0.2b3/debian/control +++ /dev/null @@ -1,13 +0,0 @@ -Source: batch-renamer-cli -Maintainer: Girish Oemrawsingh -Section: python -Priority: optional -Build-Depends: dh-python, python-setuptools (>= 0.6b3), python-all (>= 2.6.6-3), debhelper (>= 9) -Standards-Version: 3.9.6 -Homepage: https://github.com/darko3/batch-renamer - -Package: python-batch-renamer-cli -Architecture: all -Depends: ${misc:Depends}, ${python:Depends} -Description: Batch rename files in a folder quickly. - diff --git a/deb-package-builder/deb_dist/batch-renamer-cli-1.0.2b3/debian/debhelper-build-stamp b/deb-package-builder/deb_dist/batch-renamer-cli-1.0.2b3/debian/debhelper-build-stamp deleted file mode 100644 index 196b194..0000000 --- a/deb-package-builder/deb_dist/batch-renamer-cli-1.0.2b3/debian/debhelper-build-stamp +++ /dev/null @@ -1,2 +0,0 @@ -python-batch-renamer-cli -python-batch-renamer-cli diff --git a/deb-package-builder/deb_dist/batch-renamer-cli-1.0.2b3/debian/files b/deb-package-builder/deb_dist/batch-renamer-cli-1.0.2b3/debian/files deleted file mode 100644 index b2e8b4c..0000000 --- a/deb-package-builder/deb_dist/batch-renamer-cli-1.0.2b3/debian/files +++ /dev/null @@ -1 +0,0 @@ -python-batch-renamer-cli_1.0.2b3-1_all.deb python optional diff --git a/deb-package-builder/deb_dist/batch-renamer-cli-1.0.2b3/debian/python-batch-renamer-cli.debhelper.log b/deb-package-builder/deb_dist/batch-renamer-cli-1.0.2b3/debian/python-batch-renamer-cli.debhelper.log deleted file mode 100644 index 3aeae98..0000000 --- a/deb-package-builder/deb_dist/batch-renamer-cli-1.0.2b3/debian/python-batch-renamer-cli.debhelper.log +++ /dev/null @@ -1,18 +0,0 @@ -dh_update_autotools_config -dh_auto_configure -dh_auto_build -dh_auto_test -dh_prep -dh_auto_install -dh_installdocs -dh_installchangelogs -dh_perl -dh_link -dh_strip_nondeterminism -dh_compress -dh_fixperms -dh_installdeb -dh_gencontrol -dh_md5sums -dh_builddeb -dh_builddeb diff --git a/deb-package-builder/deb_dist/batch-renamer-cli-1.0.2b3/debian/python-batch-renamer-cli.postinst.debhelper b/deb-package-builder/deb_dist/batch-renamer-cli-1.0.2b3/debian/python-batch-renamer-cli.postinst.debhelper deleted file mode 100644 index cb26607..0000000 --- a/deb-package-builder/deb_dist/batch-renamer-cli-1.0.2b3/debian/python-batch-renamer-cli.postinst.debhelper +++ /dev/null @@ -1,7 +0,0 @@ - -# Automatically added by dhpython: -if which pycompile >/dev/null 2>&1; then - pycompile -p python-batch-renamer-cli -fi - -# End automatically added section diff --git a/deb-package-builder/deb_dist/batch-renamer-cli-1.0.2b3/debian/python-batch-renamer-cli.prerm.debhelper b/deb-package-builder/deb_dist/batch-renamer-cli-1.0.2b3/debian/python-batch-renamer-cli.prerm.debhelper deleted file mode 100644 index 39b44d1..0000000 --- a/deb-package-builder/deb_dist/batch-renamer-cli-1.0.2b3/debian/python-batch-renamer-cli.prerm.debhelper +++ /dev/null @@ -1,12 +0,0 @@ - -# Automatically added by dhpython: -if which pyclean >/dev/null 2>&1; then - pyclean -p python-batch-renamer-cli -else - dpkg -L python-batch-renamer-cli | grep \.py$ | while read file - do - rm -f "${file}"[co] >/dev/null - done -fi - -# End automatically added section diff --git a/deb-package-builder/deb_dist/batch-renamer-cli-1.0.2b3/debian/python-batch-renamer-cli.substvars b/deb-package-builder/deb_dist/batch-renamer-cli-1.0.2b3/debian/python-batch-renamer-cli.substvars deleted file mode 100644 index 815b686..0000000 --- a/deb-package-builder/deb_dist/batch-renamer-cli-1.0.2b3/debian/python-batch-renamer-cli.substvars +++ /dev/null @@ -1,5 +0,0 @@ -python:Versions=2.7 -python:Provides=python2.7-batch-renamer-cli -python:Depends=python:any, python:any (<< 2.8), python:any (>= 2.7.5-5~), python:any (>= 2.7~) -misc:Depends= -misc:Pre-Depends= diff --git a/deb-package-builder/deb_dist/batch-renamer-cli-1.0.2b3/debian/python-batch-renamer-cli/DEBIAN/control b/deb-package-builder/deb_dist/batch-renamer-cli-1.0.2b3/debian/python-batch-renamer-cli/DEBIAN/control deleted file mode 100644 index 33f3314..0000000 --- a/deb-package-builder/deb_dist/batch-renamer-cli-1.0.2b3/debian/python-batch-renamer-cli/DEBIAN/control +++ /dev/null @@ -1,11 +0,0 @@ -Package: python-batch-renamer-cli -Source: batch-renamer-cli -Version: 1.0.2b3-1 -Architecture: all -Maintainer: Girish Oemrawsingh -Installed-Size: 27 -Depends: python:any (<< 2.8), python:any (>= 2.7.5-5~) -Section: python -Priority: optional -Homepage: https://github.com/darko3/batch-renamer -Description: Batch rename files in a folder quickly. diff --git a/deb-package-builder/deb_dist/batch-renamer-cli-1.0.2b3/debian/python-batch-renamer-cli/DEBIAN/md5sums b/deb-package-builder/deb_dist/batch-renamer-cli-1.0.2b3/debian/python-batch-renamer-cli/DEBIAN/md5sums deleted file mode 100644 index 74df4d2..0000000 --- a/deb-package-builder/deb_dist/batch-renamer-cli-1.0.2b3/debian/python-batch-renamer-cli/DEBIAN/md5sums +++ /dev/null @@ -1,9 +0,0 @@ -470ab2fade8ead82cbe0d2357dad221f usr/bin/batch-renamer-cli -b5f9d0e3c4c12b19979912168bb326f9 usr/lib/python2.7/dist-packages/batch_renamer_cli-1.0.2b3.egg-info/PKG-INFO -68b329da9893e34099c7d8ad5cb9c940 usr/lib/python2.7/dist-packages/batch_renamer_cli-1.0.2b3.egg-info/dependency_links.txt -ad03b4dff1a6d50695b27b4def833e86 usr/lib/python2.7/dist-packages/batch_renamer_cli-1.0.2b3.egg-info/entry_points.txt -5f743e70c6d247cc7a650374f48ca1e3 usr/lib/python2.7/dist-packages/batch_renamer_cli-1.0.2b3.egg-info/top_level.txt -68b329da9893e34099c7d8ad5cb9c940 usr/lib/python2.7/dist-packages/br/__init__.py -a1b7276559ceb98a8a307a5b1b5e15ab usr/lib/python2.7/dist-packages/br/br.py -7a5082d8cd2c76bc74fb65d4d567a0f4 usr/lib/python2.7/dist-packages/br/color.py -a50ea88578dc75ea794358efd2442114 usr/share/doc/python-batch-renamer-cli/changelog.Debian.gz diff --git a/deb-package-builder/deb_dist/batch-renamer-cli-1.0.2b3/debian/python-batch-renamer-cli/DEBIAN/postinst b/deb-package-builder/deb_dist/batch-renamer-cli-1.0.2b3/debian/python-batch-renamer-cli/DEBIAN/postinst deleted file mode 100755 index 081693b..0000000 --- a/deb-package-builder/deb_dist/batch-renamer-cli-1.0.2b3/debian/python-batch-renamer-cli/DEBIAN/postinst +++ /dev/null @@ -1,9 +0,0 @@ -#!/bin/sh -set -e - -# Automatically added by dhpython: -if which pycompile >/dev/null 2>&1; then - pycompile -p python-batch-renamer-cli -fi - -# End automatically added section diff --git a/deb-package-builder/deb_dist/batch-renamer-cli-1.0.2b3/debian/python-batch-renamer-cli/DEBIAN/prerm b/deb-package-builder/deb_dist/batch-renamer-cli-1.0.2b3/debian/python-batch-renamer-cli/DEBIAN/prerm deleted file mode 100755 index fe0825f..0000000 --- a/deb-package-builder/deb_dist/batch-renamer-cli-1.0.2b3/debian/python-batch-renamer-cli/DEBIAN/prerm +++ /dev/null @@ -1,14 +0,0 @@ -#!/bin/sh -set -e - -# Automatically added by dhpython: -if which pyclean >/dev/null 2>&1; then - pyclean -p python-batch-renamer-cli -else - dpkg -L python-batch-renamer-cli | grep \.py$ | while read file - do - rm -f "${file}"[co] >/dev/null - done -fi - -# End automatically added section diff --git a/deb-package-builder/deb_dist/batch-renamer-cli-1.0.2b3/debian/python-batch-renamer-cli/usr/bin/batch-renamer-cli b/deb-package-builder/deb_dist/batch-renamer-cli-1.0.2b3/debian/python-batch-renamer-cli/usr/bin/batch-renamer-cli deleted file mode 100755 index 2340d4f..0000000 --- a/deb-package-builder/deb_dist/batch-renamer-cli-1.0.2b3/debian/python-batch-renamer-cli/usr/bin/batch-renamer-cli +++ /dev/null @@ -1,10 +0,0 @@ -#!/usr/bin/python -# EASY-INSTALL-ENTRY-SCRIPT: 'batch-renamer-cli==1.0.2b3','console_scripts','batch-renamer-cli' -__requires__ = 'batch-renamer-cli==1.0.2b3' -import sys -from pkg_resources import load_entry_point - -if __name__ == '__main__': - sys.exit( - load_entry_point('batch-renamer-cli==1.0.2b3', 'console_scripts', 'batch-renamer-cli')() - ) diff --git a/deb-package-builder/deb_dist/batch-renamer-cli-1.0.2b3/debian/python-batch-renamer-cli/usr/lib/python2.7/dist-packages/batch_renamer_cli-1.0.2b3.egg-info/PKG-INFO b/deb-package-builder/deb_dist/batch-renamer-cli-1.0.2b3/debian/python-batch-renamer-cli/usr/lib/python2.7/dist-packages/batch_renamer_cli-1.0.2b3.egg-info/PKG-INFO deleted file mode 100644 index 7fc3499..0000000 --- a/deb-package-builder/deb_dist/batch-renamer-cli-1.0.2b3/debian/python-batch-renamer-cli/usr/lib/python2.7/dist-packages/batch_renamer_cli-1.0.2b3.egg-info/PKG-INFO +++ /dev/null @@ -1,11 +0,0 @@ -Metadata-Version: 1.1 -Name: batch-renamer-cli -Version: 1.0.2b3 -Summary: Batch rename files in a folder quickly. -Home-page: https://github.com/darko3/batch-renamer -Author: Girish Oemrawsingh -Author-email: skrillex2408@gmail.com -License: MIT -Description: UNKNOWN -Platform: UNKNOWN -Classifier: License :: MIT diff --git a/deb-package-builder/deb_dist/batch-renamer-cli-1.0.2b3/debian/python-batch-renamer-cli/usr/lib/python2.7/dist-packages/batch_renamer_cli-1.0.2b3.egg-info/dependency_links.txt b/deb-package-builder/deb_dist/batch-renamer-cli-1.0.2b3/debian/python-batch-renamer-cli/usr/lib/python2.7/dist-packages/batch_renamer_cli-1.0.2b3.egg-info/dependency_links.txt deleted file mode 100644 index 8b13789..0000000 --- a/deb-package-builder/deb_dist/batch-renamer-cli-1.0.2b3/debian/python-batch-renamer-cli/usr/lib/python2.7/dist-packages/batch_renamer_cli-1.0.2b3.egg-info/dependency_links.txt +++ /dev/null @@ -1 +0,0 @@ - diff --git a/deb-package-builder/deb_dist/batch-renamer-cli-1.0.2b3/debian/python-batch-renamer-cli/usr/lib/python2.7/dist-packages/batch_renamer_cli-1.0.2b3.egg-info/entry_points.txt b/deb-package-builder/deb_dist/batch-renamer-cli-1.0.2b3/debian/python-batch-renamer-cli/usr/lib/python2.7/dist-packages/batch_renamer_cli-1.0.2b3.egg-info/entry_points.txt deleted file mode 100644 index 02562d1..0000000 --- a/deb-package-builder/deb_dist/batch-renamer-cli-1.0.2b3/debian/python-batch-renamer-cli/usr/lib/python2.7/dist-packages/batch_renamer_cli-1.0.2b3.egg-info/entry_points.txt +++ /dev/null @@ -1,3 +0,0 @@ -[console_scripts] -batch-renamer-cli = br.br:main - diff --git a/deb-package-builder/deb_dist/batch-renamer-cli-1.0.2b3/debian/python-batch-renamer-cli/usr/lib/python2.7/dist-packages/batch_renamer_cli-1.0.2b3.egg-info/top_level.txt b/deb-package-builder/deb_dist/batch-renamer-cli-1.0.2b3/debian/python-batch-renamer-cli/usr/lib/python2.7/dist-packages/batch_renamer_cli-1.0.2b3.egg-info/top_level.txt deleted file mode 100644 index b9a724f..0000000 --- a/deb-package-builder/deb_dist/batch-renamer-cli-1.0.2b3/debian/python-batch-renamer-cli/usr/lib/python2.7/dist-packages/batch_renamer_cli-1.0.2b3.egg-info/top_level.txt +++ /dev/null @@ -1 +0,0 @@ -br diff --git a/deb-package-builder/deb_dist/batch-renamer-cli-1.0.2b3/debian/python-batch-renamer-cli/usr/lib/python2.7/dist-packages/br/__init__.py b/deb-package-builder/deb_dist/batch-renamer-cli-1.0.2b3/debian/python-batch-renamer-cli/usr/lib/python2.7/dist-packages/br/__init__.py deleted file mode 100644 index 8b13789..0000000 --- a/deb-package-builder/deb_dist/batch-renamer-cli-1.0.2b3/debian/python-batch-renamer-cli/usr/lib/python2.7/dist-packages/br/__init__.py +++ /dev/null @@ -1 +0,0 @@ - diff --git a/deb-package-builder/deb_dist/batch-renamer-cli-1.0.2b3/debian/python-batch-renamer-cli/usr/lib/python2.7/dist-packages/br/br.py b/deb-package-builder/deb_dist/batch-renamer-cli-1.0.2b3/debian/python-batch-renamer-cli/usr/lib/python2.7/dist-packages/br/br.py deleted file mode 100644 index dc3a555..0000000 --- a/deb-package-builder/deb_dist/batch-renamer-cli-1.0.2b3/debian/python-batch-renamer-cli/usr/lib/python2.7/dist-packages/br/br.py +++ /dev/null @@ -1,133 +0,0 @@ -#!/usr/bin/python2 - -""" -MIT License - -Copyright (c) 2016 Girish Oemrawsingh - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. -""" - -import os -import sys -import time -import getopt - -# import the color module I wrote for my projects -from color import Color as tcolor -from color import textType as ttype - -version = '1.0.2b' -github_project_page = ttype.bold + tcolor.green + 'https://github.com/darko3/batch-renamer' + tcolor.white -usage = """ -Batch File Renamer %s - (C) 2016 Girish Oemrawsingh -View this project on Github: %s - - -usage: ./batch-renamer-cli.py [options] - -Options: - - -h, --help print this help menu and exit - -p, --folder-path specify folder path that includes files to rename - -n, --new-name specify the new filename for the files in the folder - -""" % (version, github_project_page) - - -def init(folder, new_name): - - try: - opts, args = getopt.getopt(sys.argv[1:], "hp:n:", ["help", "folder-path=", "new-name="]) - - except getopt.GetoptError as e: - print(usage) - print(str(e) + "\n") - sys.exit(1) - - for opt, arg in opts: - - if opt in ("-h", "--help"): - print(usage) - sys.exit(0) - - elif opt in ("-p", "--folder-path"): - folder = arg - - elif opt in ("-n", "--new-name"): - new_name = arg - - if folder == '': - print(usage) - sys.exit(1) - - elif new_name == '': - print(usage) - sys.exit(1) - - else: - rename_files(folder, new_name) - -def rename_files(folder_path, new_name): - - file_counter = 0 - - print("\nNew name: %s" % new_name) - print("Folder path: %s\n" % folder_path) - - try: - raw_input(ttype.bold + tcolor.red + """PLEASE CHECK IF THE FOLDER PATH AND NEW NAME IS CORRECT -BECAUSE YOU CAN EASILY RENAME FILES IN ANY FOLDER YOU DID NOT INTEND TO\n -PRESS [ENTER] TO CONTINUE OR CTRL + C TO EXIT\n""" + tcolor.white) - - except NameError: - input(ttype.bold + tcolor.red + """PLEASE CHECK IF THE FOLDER PATH AND NEW NAME IS CORRECT -BECAUSE YOU CAN EASILY RENAME FILES IN ANY FOLDER YOU DID NOT INTEND TO\n -PRESS [ENTER] TO CONTINUE OR CTRL + C TO EXIT\n""" + tcolor.white) - - except KeyboardInterrupt: - print("\nThank you for using Batch File Renamer by Girish Oemrawsingh.") - print("You can view this project on Github: %s" % github_project_page) - sys.exit(2) - - - start = time.time() - - for root, dirs, files in os.walk(folder_path): - - dirs.sort() - files.sort() - - for f in files: - file_counter += 1 - file_path = "%s/%s" % (root, f) - print("Renaming %s" % file_path) - ext = os.path.splitext(new_name)[1] - fname = os.path.splitext(new_name)[0] - os.rename(file_path, "%s/%s %s%s" % (root, fname, file_counter, ext)) - - end = time.time() - total_time = end - start - print("\nFinished renaming %d files with a total time of %f seconds." % (file_counter, total_time)) - - -def main(): - folder = '' - new_name = '' - init(folder, new_name) diff --git a/deb-package-builder/deb_dist/batch-renamer-cli-1.0.2b3/debian/python-batch-renamer-cli/usr/lib/python2.7/dist-packages/br/color.py b/deb-package-builder/deb_dist/batch-renamer-cli-1.0.2b3/debian/python-batch-renamer-cli/usr/lib/python2.7/dist-packages/br/color.py deleted file mode 100644 index 18a6cc0..0000000 --- a/deb-package-builder/deb_dist/batch-renamer-cli-1.0.2b3/debian/python-batch-renamer-cli/usr/lib/python2.7/dist-packages/br/color.py +++ /dev/null @@ -1,15 +0,0 @@ -# A simple color module I wrote for my projects -# Feel free to copy this script and use it for your own projects! - -class Color: - purple = '\033[95m' - blue = '\033[94m' - green = '\033[92m' - yellow = '\033[93m' - red = '\033[91m' - white = '\033[0m' - -class textType: - bold = '\033[1m' - underline = '\033[4m' - \ No newline at end of file diff --git a/deb-package-builder/deb_dist/batch-renamer-cli-1.0.2b3/debian/python-batch-renamer-cli/usr/share/doc/python-batch-renamer-cli/changelog.Debian.gz b/deb-package-builder/deb_dist/batch-renamer-cli-1.0.2b3/debian/python-batch-renamer-cli/usr/share/doc/python-batch-renamer-cli/changelog.Debian.gz deleted file mode 100644 index 25f4185..0000000 Binary files a/deb-package-builder/deb_dist/batch-renamer-cli-1.0.2b3/debian/python-batch-renamer-cli/usr/share/doc/python-batch-renamer-cli/changelog.Debian.gz and /dev/null differ diff --git a/deb-package-builder/deb_dist/batch-renamer-cli-1.0.2b3/debian/rules b/deb-package-builder/deb_dist/batch-renamer-cli-1.0.2b3/debian/rules deleted file mode 100755 index 394dace..0000000 --- a/deb-package-builder/deb_dist/batch-renamer-cli-1.0.2b3/debian/rules +++ /dev/null @@ -1,8 +0,0 @@ -#!/usr/bin/make -f - -# This file was automatically generated by stdeb 0.8.5 at -# Sun, 18 Sep 2016 10:44:02 -0300 -export PYBUILD_NAME=batch-renamer-cli -%: - dh $@ --with python2 --buildsystem=pybuild - diff --git a/deb-package-builder/deb_dist/batch-renamer-cli-1.0.2b3/debian/source/format b/deb-package-builder/deb_dist/batch-renamer-cli-1.0.2b3/debian/source/format deleted file mode 100644 index 163aaf8..0000000 --- a/deb-package-builder/deb_dist/batch-renamer-cli-1.0.2b3/debian/source/format +++ /dev/null @@ -1 +0,0 @@ -3.0 (quilt) diff --git a/deb-package-builder/deb_dist/batch-renamer-cli-1.0.2b3/debian/watch b/deb-package-builder/deb_dist/batch-renamer-cli-1.0.2b3/debian/watch deleted file mode 100644 index 18cb601..0000000 --- a/deb-package-builder/deb_dist/batch-renamer-cli-1.0.2b3/debian/watch +++ /dev/null @@ -1,4 +0,0 @@ -# please also check http://pypi.debian.net/batch-renamer-cli/watch -version=3 -opts=uversionmangle=s/(rc|a|b|c)/~$1/ \ -http://pypi.debian.net/batch-renamer-cli/batch-renamer-cli-(.+)\.(?:zip|tgz|tbz|txz|(?:tar\.(?:gz|bz2|xz))) \ No newline at end of file diff --git a/deb-package-builder/deb_dist/batch-renamer-cli-1.0.2b3/setup.cfg b/deb-package-builder/deb_dist/batch-renamer-cli-1.0.2b3/setup.cfg deleted file mode 100644 index 861a9f5..0000000 --- a/deb-package-builder/deb_dist/batch-renamer-cli-1.0.2b3/setup.cfg +++ /dev/null @@ -1,5 +0,0 @@ -[egg_info] -tag_build = -tag_date = 0 -tag_svn_revision = 0 - diff --git a/deb-package-builder/deb_dist/batch-renamer-cli-1.0.2b3/setup.py b/deb-package-builder/deb_dist/batch-renamer-cli-1.0.2b3/setup.py deleted file mode 100755 index 8561199..0000000 --- a/deb-package-builder/deb_dist/batch-renamer-cli-1.0.2b3/setup.py +++ /dev/null @@ -1,22 +0,0 @@ -#!/usr/bin/python - -import os -from setuptools import setup - -setup ( - name = "batch-renamer-cli", - version = "1.0.2b3", - author = "Girish Oemrawsingh", - author_email = "skrillex2408@gmail.com", - description = "Batch rename files in a folder quickly.", - license = "MIT", - url = "https://github.com/darko3/batch-renamer", - packages = ['br'], - entry_points = { - 'console_scripts': ['batch-renamer-cli = br.br:main'] - }, - classifiers = [ - "License :: MIT", - ], -) - diff --git a/deb-package-builder/deb_dist/batch-renamer-cli_1.0.2b3-1.debian.tar.xz b/deb-package-builder/deb_dist/batch-renamer-cli_1.0.2b3-1.debian.tar.xz deleted file mode 100644 index 41931d7..0000000 Binary files a/deb-package-builder/deb_dist/batch-renamer-cli_1.0.2b3-1.debian.tar.xz and /dev/null differ diff --git a/deb-package-builder/deb_dist/batch-renamer-cli_1.0.2b3-1.dsc b/deb-package-builder/deb_dist/batch-renamer-cli_1.0.2b3-1.dsc deleted file mode 100644 index ba73b6b..0000000 --- a/deb-package-builder/deb_dist/batch-renamer-cli_1.0.2b3-1.dsc +++ /dev/null @@ -1,20 +0,0 @@ -Format: 3.0 (quilt) -Source: batch-renamer-cli -Binary: python-batch-renamer-cli -Architecture: all -Version: 1.0.2b3-1 -Maintainer: Girish Oemrawsingh -Homepage: https://github.com/darko3/batch-renamer -Standards-Version: 3.9.6 -Build-Depends: dh-python, python-setuptools (>= 0.6b3), python-all (>= 2.6.6-3), debhelper (>= 9) -Package-List: - python-batch-renamer-cli deb python optional arch=all -Checksums-Sha1: - 7aedc40cbe848db77e5bc5578634c79df07773c6 2822 batch-renamer-cli_1.0.2b3.orig.tar.gz - 7b643c80374d6218d9cf047778f70aefaf822fea 920 batch-renamer-cli_1.0.2b3-1.debian.tar.xz -Checksums-Sha256: - 3349c0a3cdf794529a08215b4b4bc5bcecb74564953eb7882e13bffbb5f8172e 2822 batch-renamer-cli_1.0.2b3.orig.tar.gz - cf6d255db9a08c743e7040d3c29eacae90269fc446c1010a88df5ddce6ff6d16 920 batch-renamer-cli_1.0.2b3-1.debian.tar.xz -Files: - 5897dc9b8298a66a395d780c20b021e7 2822 batch-renamer-cli_1.0.2b3.orig.tar.gz - 323acda11e668a018691378d226a7581 920 batch-renamer-cli_1.0.2b3-1.debian.tar.xz diff --git a/deb-package-builder/deb_dist/batch-renamer-cli_1.0.2b3-1_amd64.changes b/deb-package-builder/deb_dist/batch-renamer-cli_1.0.2b3-1_amd64.changes deleted file mode 100644 index afc91b3..0000000 --- a/deb-package-builder/deb_dist/batch-renamer-cli_1.0.2b3-1_amd64.changes +++ /dev/null @@ -1,22 +0,0 @@ -Format: 1.8 -Date: Sun, 18 Sep 2016 10:44:02 -0300 -Source: batch-renamer-cli -Binary: python-batch-renamer-cli -Architecture: all -Version: 1.0.2b3-1 -Distribution: unstable -Urgency: low -Maintainer: Girish Oemrawsingh -Changed-By: Girish Oemrawsingh -Description: - python-batch-renamer-cli - Batch rename files in a folder quickly. -Changes: - batch-renamer-cli (1.0.2b3-1) unstable; urgency=low - . - * source package automatically created by stdeb 0.8.5 -Checksums-Sha1: - 1a83f6e5bdf7234cae03c72bbca393bab805341f 4060 python-batch-renamer-cli_1.0.2b3-1_all.deb -Checksums-Sha256: - 3db2ac522a8e6608c3244d0876548757579072417e4073b2b1ecd78abe4b0282 4060 python-batch-renamer-cli_1.0.2b3-1_all.deb -Files: - 0b1026db5f32325fe1a7a1256dd305c0 4060 python optional python-batch-renamer-cli_1.0.2b3-1_all.deb diff --git a/deb-package-builder/deb_dist/batch-renamer-cli_1.0.2b3-1_source.changes b/deb-package-builder/deb_dist/batch-renamer-cli_1.0.2b3-1_source.changes deleted file mode 100644 index 9bf2929..0000000 --- a/deb-package-builder/deb_dist/batch-renamer-cli_1.0.2b3-1_source.changes +++ /dev/null @@ -1,28 +0,0 @@ -Format: 1.8 -Date: Sun, 18 Sep 2016 10:44:02 -0300 -Source: batch-renamer-cli -Binary: python-batch-renamer-cli -Architecture: source -Version: 1.0.2b3-1 -Distribution: unstable -Urgency: low -Maintainer: Girish Oemrawsingh -Changed-By: Girish Oemrawsingh -Description: - python-batch-renamer-cli - Batch rename files in a folder quickly. -Changes: - batch-renamer-cli (1.0.2b3-1) unstable; urgency=low - . - * source package automatically created by stdeb 0.8.5 -Checksums-Sha1: - 536153167fad5330a241186e119def22da948112 1006 batch-renamer-cli_1.0.2b3-1.dsc - 7aedc40cbe848db77e5bc5578634c79df07773c6 2822 batch-renamer-cli_1.0.2b3.orig.tar.gz - 7b643c80374d6218d9cf047778f70aefaf822fea 920 batch-renamer-cli_1.0.2b3-1.debian.tar.xz -Checksums-Sha256: - a064c288bdc4346ea69d9e789e8c1ffbbbecd3733dd9f5d5cca25d059a9adc0d 1006 batch-renamer-cli_1.0.2b3-1.dsc - 3349c0a3cdf794529a08215b4b4bc5bcecb74564953eb7882e13bffbb5f8172e 2822 batch-renamer-cli_1.0.2b3.orig.tar.gz - cf6d255db9a08c743e7040d3c29eacae90269fc446c1010a88df5ddce6ff6d16 920 batch-renamer-cli_1.0.2b3-1.debian.tar.xz -Files: - 534282d7c802742dfc112a6aa4fe1725 1006 python optional batch-renamer-cli_1.0.2b3-1.dsc - 5897dc9b8298a66a395d780c20b021e7 2822 python optional batch-renamer-cli_1.0.2b3.orig.tar.gz - 323acda11e668a018691378d226a7581 920 python optional batch-renamer-cli_1.0.2b3-1.debian.tar.xz diff --git a/deb-package-builder/deb_dist/batch-renamer-cli_1.0.2b3.orig.tar.gz b/deb-package-builder/deb_dist/batch-renamer-cli_1.0.2b3.orig.tar.gz deleted file mode 100644 index 07f4a5a..0000000 Binary files a/deb-package-builder/deb_dist/batch-renamer-cli_1.0.2b3.orig.tar.gz and /dev/null differ diff --git a/deb-package-builder/deb_dist/python-batch-renamer-cli_1.0.2b3-1_all.deb b/deb-package-builder/deb_dist/python-batch-renamer-cli_1.0.2b3-1_all.deb deleted file mode 100644 index b4758ab..0000000 Binary files a/deb-package-builder/deb_dist/python-batch-renamer-cli_1.0.2b3-1_all.deb and /dev/null differ diff --git a/deb-package-builder/dist/batch-renamer-cli-1.0.2b3.tar.gz b/deb-package-builder/dist/batch-renamer-cli-1.0.2b3.tar.gz deleted file mode 100644 index 07f4a5a..0000000 Binary files a/deb-package-builder/dist/batch-renamer-cli-1.0.2b3.tar.gz and /dev/null differ diff --git a/deb-package-builder/setup.py b/deb-package-builder/setup.py deleted file mode 100755 index 8561199..0000000 --- a/deb-package-builder/setup.py +++ /dev/null @@ -1,22 +0,0 @@ -#!/usr/bin/python - -import os -from setuptools import setup - -setup ( - name = "batch-renamer-cli", - version = "1.0.2b3", - author = "Girish Oemrawsingh", - author_email = "skrillex2408@gmail.com", - description = "Batch rename files in a folder quickly.", - license = "MIT", - url = "https://github.com/darko3/batch-renamer", - packages = ['br'], - entry_points = { - 'console_scripts': ['batch-renamer-cli = br.br:main'] - }, - classifiers = [ - "License :: MIT", - ], -) - diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000..c14da58 --- /dev/null +++ b/requirements.txt @@ -0,0 +1 @@ +colorama==0.3.7 diff --git a/setup.py b/setup.py new file mode 100755 index 0000000..54a497c --- /dev/null +++ b/setup.py @@ -0,0 +1,22 @@ +#!/usr/bin/python + +import os +import shutil +from distutils.core import setup + +if not os.path.exists('scripts'): + os.makedirs('scripts') + +shutil.copyfile('batch-rename.py', 'scripts/batch-rename') + +setup( + name='Batch File Renamer', + version='1.0.3', + packages=['batch_renamer_cli'], + scripts=['scripts/batch-rename'], + url='https://github.com/darko3/batch-renamer', + license='MIT', + author='Girish Oemrawsingh', + author_email='girish.oemrawsingh@protonmail.com', + description='An easy to use python script for quickly renaming multiple files ending with incrementing numbers.' +)