Added some repositories
This commit is contained in:
parent
4244233ec7
commit
32b531c87c
Makefile
__scripts__
applications
django
Makefile
tutorial
10 Python Tips and Tricks For Writing Better Code.mp4Django - How To Translate A Website (Tutorial).mp4Python Django Tutorial 21 - Full text search with haystack and whoosh.mp4Python Django Tutorial Deploying Your Application (Option %231) - Deploy to a Linux Server.mp4Python Django Tutorial Deploying Your Application (Option %232) - Deploy using Heroku.mp4Python Django Tutorial Full-Featured Web App Part 1 - Getting Started.mp4Python Django Tutorial Full-Featured Web App Part 10 - Create, Update, and Delete Posts.mp4Python Django Tutorial Full-Featured Web App Part 11 - Pagination.mp4Python Django Tutorial Full-Featured Web App Part 12 - Email and Password Reset.mp4Python Django Tutorial Full-Featured Web App Part 13 - Using AWS S3 for File Uploads.mp4Python Django Tutorial Full-Featured Web App Part 2 - Applications and Routes.mp4Python Django Tutorial Full-Featured Web App Part 3 - Templates.mp4Python Django Tutorial Full-Featured Web App Part 4 - Admin Page.mp4Python Django Tutorial Full-Featured Web App Part 5 - Database and Migrations.mp4Python Django Tutorial Full-Featured Web App Part 6 - User Registration.mp4Python Django Tutorial Full-Featured Web App Part 7 - Login and Logout System.mp4Python Django Tutorial Full-Featured Web App Part 8 - User Profile and Picture.mp4Python Django Tutorial Full-Featured Web App Part 9 - Update User Profile.mp4Python Django Tutorial How to Use a Custom Domain Name for Our Application.mp4Python Django Tutorial How to enable HTTPS with a free SSLTLS Certificate using Let's Encrypt.mp4Python Tutorial virtualenv and why you should use virtual environments.mp4
linux_env
python_apps
repos.jsonunittest
13
Makefile
Normal file
13
Makefile
Normal file
@ -0,0 +1,13 @@
|
||||
help:
|
||||
@echo Possible targets: init giti
|
||||
|
||||
init:
|
||||
@python3 __scripts__/init.py
|
||||
|
||||
giti:
|
||||
@make --no-print-directory -C applications $@
|
||||
@make --no-print-directory -C embedded_linux $@
|
||||
@make --no-print-directory -C linux_env $@
|
||||
@make --no-print-directory -C python_apps $@
|
||||
@make --no-print-directory -C unittest $@
|
||||
|
62
__scripts__/init.py
Normal file
62
__scripts__/init.py
Normal file
@ -0,0 +1,62 @@
|
||||
import json
|
||||
import os
|
||||
|
||||
|
||||
class repo(dict):
|
||||
KEY_URL = "URL"
|
||||
KEY_TARGET = "TARGET"
|
||||
|
||||
INIT_SCRIPTNAME = "reposinit"
|
||||
|
||||
def __init__(self, data, base_url):
|
||||
self.__base_url__ = base_url
|
||||
dict.__init__(self, data)
|
||||
|
||||
def print_gn(self, txt):
|
||||
print("\033[1;32m" + txt + "\033[00m")
|
||||
|
||||
def print_ye(self, txt):
|
||||
print("\033[1;33m" + txt + "\033[00m")
|
||||
|
||||
def init_repo(self):
|
||||
if os.path.exists(self.target_path()):
|
||||
self.print_ye("skip: Cloning repository %s (already exists)..." % self.repo_url())
|
||||
else:
|
||||
self.print_gn("clone: Cloning repository %s..." % self.repo_url())
|
||||
os.system("git clone %s %s" % (self.url(), self.target_path()))
|
||||
if os.path.exists(os.path.join(self.target_path(), self.INIT_SCRIPTNAME)):
|
||||
self.print_gn("exec: Executing init script for repository %s..." % self.repo_url())
|
||||
os.system("cd %s; ./%s" % (self.target_path(), self.INIT_SCRIPTNAME))
|
||||
print()
|
||||
|
||||
def submodules(self):
|
||||
return self[self.KEY_SUBMODULES]
|
||||
|
||||
def url(self):
|
||||
return self.__base_url__ + '/' + self.repo_url()
|
||||
|
||||
def repo_url(self):
|
||||
return self[self.KEY_URL]
|
||||
|
||||
def target_path(self):
|
||||
return os.path.join(self[self.KEY_TARGET], os.path.basename(self.url()) if not os.path.basename(self.url()).lower().endswith('.git') else os.path.basename(self.url())[:-4])
|
||||
|
||||
|
||||
class repositories(dict):
|
||||
KEY_BASEURL = "BASE_URL"
|
||||
KEY_REPOS = "REPO_LIST"
|
||||
|
||||
def __init__(self, filename):
|
||||
with open(filename, 'r') as fh:
|
||||
data = json.loads(fh.read())
|
||||
for i in range(0, len(data[self.KEY_REPOS])):
|
||||
data[self.KEY_REPOS][i] = repo(data[self.KEY_REPOS][i], data[self.KEY_BASEURL])
|
||||
dict.__init__(self, data)
|
||||
|
||||
def repolist(self):
|
||||
return self[self.KEY_REPOS]
|
||||
|
||||
if __name__ == "__main__":
|
||||
rl = repositories("repos.json")
|
||||
for r in rl.repolist():
|
||||
r.init_repo()
|
5
applications/Makefile
Normal file
5
applications/Makefile
Normal file
@ -0,0 +1,5 @@
|
||||
giti:
|
||||
@echo "\n\n\033[1;34m╔══════════════╗"
|
||||
@echo "║ applications ║"
|
||||
@echo "╚══════════════╝\033[00m"
|
||||
@ineach -p giti
|
5
django/Makefile
Normal file
5
django/Makefile
Normal file
@ -0,0 +1,5 @@
|
||||
giti:
|
||||
@echo "\n\n\033[1;34m╔════════╗"
|
||||
@echo "║ django ║"
|
||||
@echo "╚════════╝\033[00m"
|
||||
@ineach -e tutorial -p giti
|
Binary file not shown.
Binary file not shown.
BIN
django/tutorial/Python Django Tutorial 21 - Full text search with haystack and whoosh.mp4
Normal file
BIN
django/tutorial/Python Django Tutorial 21 - Full text search with haystack and whoosh.mp4
Normal file
Binary file not shown.
BIN
django/tutorial/Python Django Tutorial Deploying Your Application (Option %231) - Deploy to a Linux Server.mp4
Normal file
BIN
django/tutorial/Python Django Tutorial Deploying Your Application (Option %231) - Deploy to a Linux Server.mp4
Normal file
Binary file not shown.
BIN
django/tutorial/Python Django Tutorial Deploying Your Application (Option %232) - Deploy using Heroku.mp4
Normal file
BIN
django/tutorial/Python Django Tutorial Deploying Your Application (Option %232) - Deploy using Heroku.mp4
Normal file
Binary file not shown.
BIN
django/tutorial/Python Django Tutorial Full-Featured Web App Part 1 - Getting Started.mp4
Normal file
BIN
django/tutorial/Python Django Tutorial Full-Featured Web App Part 1 - Getting Started.mp4
Normal file
Binary file not shown.
BIN
django/tutorial/Python Django Tutorial Full-Featured Web App Part 10 - Create, Update, and Delete Posts.mp4
Normal file
BIN
django/tutorial/Python Django Tutorial Full-Featured Web App Part 10 - Create, Update, and Delete Posts.mp4
Normal file
Binary file not shown.
BIN
django/tutorial/Python Django Tutorial Full-Featured Web App Part 11 - Pagination.mp4
Normal file
BIN
django/tutorial/Python Django Tutorial Full-Featured Web App Part 11 - Pagination.mp4
Normal file
Binary file not shown.
BIN
django/tutorial/Python Django Tutorial Full-Featured Web App Part 12 - Email and Password Reset.mp4
Normal file
BIN
django/tutorial/Python Django Tutorial Full-Featured Web App Part 12 - Email and Password Reset.mp4
Normal file
Binary file not shown.
BIN
django/tutorial/Python Django Tutorial Full-Featured Web App Part 13 - Using AWS S3 for File Uploads.mp4
Normal file
BIN
django/tutorial/Python Django Tutorial Full-Featured Web App Part 13 - Using AWS S3 for File Uploads.mp4
Normal file
Binary file not shown.
BIN
django/tutorial/Python Django Tutorial Full-Featured Web App Part 2 - Applications and Routes.mp4
Normal file
BIN
django/tutorial/Python Django Tutorial Full-Featured Web App Part 2 - Applications and Routes.mp4
Normal file
Binary file not shown.
Binary file not shown.
BIN
django/tutorial/Python Django Tutorial Full-Featured Web App Part 4 - Admin Page.mp4
Normal file
BIN
django/tutorial/Python Django Tutorial Full-Featured Web App Part 4 - Admin Page.mp4
Normal file
Binary file not shown.
BIN
django/tutorial/Python Django Tutorial Full-Featured Web App Part 5 - Database and Migrations.mp4
Normal file
BIN
django/tutorial/Python Django Tutorial Full-Featured Web App Part 5 - Database and Migrations.mp4
Normal file
Binary file not shown.
BIN
django/tutorial/Python Django Tutorial Full-Featured Web App Part 6 - User Registration.mp4
Normal file
BIN
django/tutorial/Python Django Tutorial Full-Featured Web App Part 6 - User Registration.mp4
Normal file
Binary file not shown.
BIN
django/tutorial/Python Django Tutorial Full-Featured Web App Part 7 - Login and Logout System.mp4
Normal file
BIN
django/tutorial/Python Django Tutorial Full-Featured Web App Part 7 - Login and Logout System.mp4
Normal file
Binary file not shown.
BIN
django/tutorial/Python Django Tutorial Full-Featured Web App Part 8 - User Profile and Picture.mp4
Normal file
BIN
django/tutorial/Python Django Tutorial Full-Featured Web App Part 8 - User Profile and Picture.mp4
Normal file
Binary file not shown.
BIN
django/tutorial/Python Django Tutorial Full-Featured Web App Part 9 - Update User Profile.mp4
Normal file
BIN
django/tutorial/Python Django Tutorial Full-Featured Web App Part 9 - Update User Profile.mp4
Normal file
Binary file not shown.
BIN
django/tutorial/Python Django Tutorial How to Use a Custom Domain Name for Our Application.mp4
Normal file
BIN
django/tutorial/Python Django Tutorial How to Use a Custom Domain Name for Our Application.mp4
Normal file
Binary file not shown.
BIN
django/tutorial/Python Django Tutorial How to enable HTTPS with a free SSLTLS Certificate using Let's Encrypt.mp4
Normal file
BIN
django/tutorial/Python Django Tutorial How to enable HTTPS with a free SSLTLS Certificate using Let's Encrypt.mp4
Normal file
Binary file not shown.
BIN
django/tutorial/Python Tutorial virtualenv and why you should use virtual environments.mp4
Normal file
BIN
django/tutorial/Python Tutorial virtualenv and why you should use virtual environments.mp4
Normal file
Binary file not shown.
5
linux_env/Makefile
Normal file
5
linux_env/Makefile
Normal file
@ -0,0 +1,5 @@
|
||||
giti:
|
||||
@echo "\n\n\033[1;34m╔═══════════╗"
|
||||
@echo "║ linux_env ║"
|
||||
@echo "╚═══════════╝\033[00m"
|
||||
@ineach -p giti
|
5
python_apps/Makefile
Normal file
5
python_apps/Makefile
Normal file
@ -0,0 +1,5 @@
|
||||
giti:
|
||||
@echo "\n\n\033[1;34m╔═════════════╗"
|
||||
@echo "║ python_apps ║"
|
||||
@echo "╚═════════════╝\033[00m"
|
||||
@ineach -p giti
|
112
repos.json
Normal file
112
repos.json
Normal file
@ -0,0 +1,112 @@
|
||||
{
|
||||
"BASE_URL": "https://git.mount-mockery.de",
|
||||
"REPO_LIST":
|
||||
[
|
||||
{
|
||||
"URL": "dirk/bin.git",
|
||||
"TARGET": "linux_env"
|
||||
},
|
||||
{
|
||||
"URL": "dirk/bash.git",
|
||||
"TARGET": "linux_env"
|
||||
},
|
||||
{
|
||||
"URL": "dirk/starter.git",
|
||||
"TARGET": "linux_env"
|
||||
},
|
||||
|
||||
|
||||
{
|
||||
"URL": "dirk/ptpython.git",
|
||||
"TARGET": "python_apps"
|
||||
},
|
||||
{
|
||||
"URL": "dirk/pyzo.git",
|
||||
"TARGET": "python_apps"
|
||||
},
|
||||
{
|
||||
"URL": "dirk/cutelog.git",
|
||||
"TARGET": "python_apps"
|
||||
},
|
||||
|
||||
|
||||
{
|
||||
"URL": "application/nemo.git",
|
||||
"TARGET": "applications"
|
||||
},
|
||||
{
|
||||
"URL": "application/cdi.git",
|
||||
"TARGET": "applications"
|
||||
},
|
||||
{
|
||||
"URL": "application/pyrip.git",
|
||||
"TARGET": "applications"
|
||||
},
|
||||
|
||||
{
|
||||
"URL": "application/patt.git",
|
||||
"TARGET": "django"
|
||||
},
|
||||
{
|
||||
"URL": "application/pygal.git",
|
||||
"TARGET": "django"
|
||||
},
|
||||
|
||||
|
||||
|
||||
{
|
||||
"URL": "unittest/caching.git",
|
||||
"TARGET": "unittest"
|
||||
},
|
||||
{
|
||||
"URL": "unittest/fstools.git",
|
||||
"TARGET": "unittest"
|
||||
},
|
||||
{
|
||||
"URL": "unittest/geo.git",
|
||||
"TARGET": "unittest"
|
||||
},
|
||||
{
|
||||
"URL": "unittest/helpers.git",
|
||||
"TARGET": "unittest"
|
||||
},
|
||||
{
|
||||
"URL": "unittest/keyboard.git",
|
||||
"TARGET": "unittest"
|
||||
},
|
||||
{
|
||||
"URL": "unittest/media.git",
|
||||
"TARGET": "unittest"
|
||||
},
|
||||
{
|
||||
"URL": "unittest/report.git",
|
||||
"TARGET": "unittest"
|
||||
},
|
||||
{
|
||||
"URL": "unittest/socket_protocol.git",
|
||||
"TARGET": "unittest"
|
||||
},
|
||||
{
|
||||
"URL": "unittest/state_machine.git",
|
||||
"TARGET": "unittest"
|
||||
},
|
||||
{
|
||||
"URL": "unittest/stringtools.git",
|
||||
"TARGET": "unittest"
|
||||
},
|
||||
{
|
||||
"URL": "unittest/task.git",
|
||||
"TARGET": "unittest"
|
||||
},
|
||||
{
|
||||
"URL": "unittest/tcp_socket.git",
|
||||
"TARGET": "unittest"
|
||||
},
|
||||
|
||||
|
||||
{
|
||||
"URL": "embedded_linux/embedded_linux.git",
|
||||
"TARGET": "embedded_linux"
|
||||
}
|
||||
]
|
||||
}
|
26
unittest/Makefile
Normal file
26
unittest/Makefile
Normal file
@ -0,0 +1,26 @@
|
||||
MAKEFLAGS += --no-print-directory
|
||||
|
||||
help:
|
||||
@echo "Help is not yet implemented"
|
||||
@echo "Possible Maketargets: status clean gitsubup gits giti"
|
||||
|
||||
status:
|
||||
unittest_status
|
||||
|
||||
clean:
|
||||
@ineach -e eclipse-workspace,.git -p "make -k clean"
|
||||
|
||||
cleanall:
|
||||
@ineach -e eclipse-workspace,.git -p "make -kiC unittest cleanall"
|
||||
|
||||
gitsubup:
|
||||
@ineach -e eclipse-workspace,.git -p gitsubup
|
||||
|
||||
gits:
|
||||
@ineach -e eclipse-workspace,.git -p "gits;read -rsn1 -p Press\ any\ key\ to\ continue..."
|
||||
|
||||
_giti_:
|
||||
@ineach -e eclipse-workspace,.git giti
|
||||
|
||||
giti:
|
||||
@make _giti_ | less -r
|
Loading…
x
Reference in New Issue
Block a user