From 8ad915fe0a1e949ba2f335c3b31ea0733196236a Mon Sep 17 00:00:00 2001 From: Gesugao-san Date: Fri, 8 Oct 2021 22:00:00 +0300 Subject: [PATCH] Version separated and Py3 version added --- {scripts => bin/bash}/.editorconfig | 0 {scripts => bin/bash}/_config.bash | 4 ++-- {scripts => bin/bash}/_config.ini | 0 {scripts => bin/bash}/tmp.txt | 0 bin/python/.editorconfig | 7 +++++++ bin/python/_config.json | 1 + bin/python/_config.py | 17 +++++++++++++++++ 7 files changed, 27 insertions(+), 2 deletions(-) rename {scripts => bin/bash}/.editorconfig (100%) rename {scripts => bin/bash}/_config.bash (91%) rename {scripts => bin/bash}/_config.ini (100%) rename {scripts => bin/bash}/tmp.txt (100%) create mode 100644 bin/python/.editorconfig create mode 100644 bin/python/_config.json create mode 100644 bin/python/_config.py diff --git a/scripts/.editorconfig b/bin/bash/.editorconfig similarity index 100% rename from scripts/.editorconfig rename to bin/bash/.editorconfig diff --git a/scripts/_config.bash b/bin/bash/_config.bash similarity index 91% rename from scripts/_config.bash rename to bin/bash/_config.bash index 9a8d90e..3106704 100644 --- a/scripts/_config.bash +++ b/bin/bash/_config.bash @@ -17,9 +17,9 @@ BYONDUrl="http://www.byond.com/download/build/" # BYOND version get_BYOND_version_hardcoded() { - imported=$(awk '/^BYOND_MAJOR_HARDCODED/{print $3}' _config.ini) + imported=$(awk '/^BYOND_MAJOR_HARDCODED/{print $3}' '_config.ini') # -F " = " export BYOND_MAJOR_HARDCODED=$imported; - imported=$(awk '/^BYOND_MINOR_HARDCODED/{print $3}' _config.ini) + imported=$(awk '/^BYOND_MINOR_HARDCODED/{print $3}' '_config.ini') export BYOND_MINOR_HARDCODED=$imported; unset imported; echo "BYOND_MAJOR_HARDCODED = $BYOND_MAJOR_HARDCODED" diff --git a/scripts/_config.ini b/bin/bash/_config.ini similarity index 100% rename from scripts/_config.ini rename to bin/bash/_config.ini diff --git a/scripts/tmp.txt b/bin/bash/tmp.txt similarity index 100% rename from scripts/tmp.txt rename to bin/bash/tmp.txt diff --git a/bin/python/.editorconfig b/bin/python/.editorconfig new file mode 100644 index 0000000..1de0d01 --- /dev/null +++ b/bin/python/.editorconfig @@ -0,0 +1,7 @@ +# EditorConfig is awesome: https://EditorConfig.org + +# top-most EditorConfig file +root = true + +[*] +end_of_line = lf diff --git a/bin/python/_config.json b/bin/python/_config.json new file mode 100644 index 0000000..0967ef4 --- /dev/null +++ b/bin/python/_config.json @@ -0,0 +1 @@ +{} diff --git a/bin/python/_config.py b/bin/python/_config.py new file mode 100644 index 0000000..1aab72f --- /dev/null +++ b/bin/python/_config.py @@ -0,0 +1,17 @@ +# -*- coding: utf-8 -*- + +# Authors: @Gesugao-san; +# Licence: MIT + +# Usefull links: +# https://www.google.com/search?q=python+parsing+html +# https://stackoverflow.com/a/419185 + + +def say_hello_world(): + print ("Hello world.") + +# Python program to use +# main for function call. +if __name__ == "__main__": + say_hello_world()