From fa14915e68dab7d83238e1250613b4607d4db0b5 Mon Sep 17 00:00:00 2001 From: Frederic Massart Date: Mon, 2 Sep 2013 12:08:02 +0800 Subject: [PATCH] Removed deprecated files --- moodle | 104 ----------------------------------------------------- moodle-alias.py | 41 --------------------- moodle-backport.py | 41 --------------------- moodle-backup.py | 41 --------------------- moodle-behat.py | 41 --------------------- moodle-check.py | 41 --------------------- moodle-config.py | 41 --------------------- moodle-create.py | 41 --------------------- moodle-fix.py | 41 --------------------- moodle-info.py | 41 --------------------- moodle-init.py | 41 --------------------- moodle-install.py | 41 --------------------- moodle-phpunit.py | 41 --------------------- moodle-pull.py | 41 --------------------- moodle-purge.py | 41 --------------------- moodle-push.py | 41 --------------------- moodle-rebase.py | 41 --------------------- moodle-remove.py | 41 --------------------- moodle-run.py | 41 --------------------- moodle-update.py | 41 --------------------- moodle-upgrade.py | 41 --------------------- 21 files changed, 924 deletions(-) delete mode 100755 moodle delete mode 100755 moodle-alias.py delete mode 100755 moodle-backport.py delete mode 100755 moodle-backup.py delete mode 100755 moodle-behat.py delete mode 100755 moodle-check.py delete mode 100755 moodle-config.py delete mode 100755 moodle-create.py delete mode 100755 moodle-fix.py delete mode 100755 moodle-info.py delete mode 100755 moodle-init.py delete mode 100755 moodle-install.py delete mode 100755 moodle-phpunit.py delete mode 100755 moodle-pull.py delete mode 100755 moodle-purge.py delete mode 100755 moodle-push.py delete mode 100755 moodle-rebase.py delete mode 100755 moodle-remove.py delete mode 100755 moodle-run.py delete mode 100755 moodle-update.py delete mode 100755 moodle-upgrade.py diff --git a/moodle b/moodle deleted file mode 100755 index 1534319..0000000 --- a/moodle +++ /dev/null @@ -1,104 +0,0 @@ -#!/bin/bash - -# Moodle Development Kit -# Copyright (C) 2012 Frédéric Massart - FMCorz.net -# -# This program is free software: you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation, either version 3 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program. If not, see . -# -# http://github.com/FMCorz/mdk - -COMMAND=$1 -ARGS=${@:2} - -# Resolve a command -function resolve { - PY="moodle-$1.py" - if [[ $1 == "mdk.py" ]]; then - PY="mdk.py" - fi - BIN=`which $PY` - if [ -z "$BIN" ] - then - if [ -n "${BASH_SOURCE[0]}" ] - then - SOURCE="${BASH_SOURCE[0]}" - DIR="$( dirname "$SOURCE" )" - while [ -h "$SOURCE" ] - do - SOURCE="$(readlink "$SOURCE")" - [[ $SOURCE != /* ]] && SOURCE="$DIR/$SOURCE" - DIR="$( cd -P "$( dirname "$SOURCE" )" && pwd )" - done - DIR="$( cd -P "$( dirname "$SOURCE" )" && pwd )" - BIN="$DIR/$PY" - fi - fi - if [ -z "$BIN" ] || [ ! -f "$BIN" ] - then - exit 1 - fi - echo "$BIN" -} - -# Trying to use the new Python script, if not possible resume the bash script. -# This whole file should be removed in a later version. -echo "You are using a deprecated bash script." 1>&2 -echo "Please update your symlink '`basename $0`'." 1>&2 -MDK=`resolve 'mdk.py'` -if [ -n "$MDK" ] && [ -f "$MDK" ]; then - CLI="`which python` $MDK $COMMAND $ARGS" - echo " ln -sf '$MDK' '$0'" 1>&2 - echo "" 1>&2 - echo "Executing: $CLI" 1>&2 - $CLI - exit $? -fi -echo "" - -# Checking if an alias exist for that command. -BIN=`resolve "alias"` -ALIAS=`$BIN show $COMMAND | tail -1` - -if [ -n "$ALIAS" ] -then - # It's a shell command. Let's substitute the arguments. - if [[ ${ALIAS:0:1} == '!' ]]; then - CMD="${ALIAS:1}" - for ((I = 2; I <= $#; I++)); do - ARG=${@:I:1} - CMD=${CMD//\$$((I-1))/$ARG} - done - $CMD - exit $? - fi - # If we're here, it's not a shell command. Let's parse the command and arguments. - COMMAND=`echo $ALIAS | cut -d ' ' -f 1` - ALIASARGS=`echo $ALIAS | cut -d ' ' -s -f 2-` - ARGS="$ALIASARGS $ARGS" -fi - -BIN=`resolve $COMMAND` - -if [ $? == 1 ] -then - echo "Unknown Moodle command '$1'..." - exit 1 -elif [ ! -x "$BIN" ] -then - echo "Permission denied. '$BIN' is not executable." - exit 1 -fi - -$BIN $ARGS -exit $? diff --git a/moodle-alias.py b/moodle-alias.py deleted file mode 100755 index f26aa02..0000000 --- a/moodle-alias.py +++ /dev/null @@ -1,41 +0,0 @@ -#!/usr/bin/env python -# -*- coding: utf-8 -*- - -""" -Moodle Development Kit - -Copyright (c) 2012 Frédéric Massart - FMCorz.net - -This program is free software: you can redistribute it and/or modify -it under the terms of the GNU General Public License as published by -the Free Software Foundation, either version 3 of the License, or -(at your option) any later version. - -This program is distributed in the hope that it will be useful, -but WITHOUT ANY WARRANTY; without even the implied warranty of -MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -GNU General Public License for more details. - -You should have received a copy of the GNU General Public License -along with this program. If not, see . - -http://github.com/FMCorz/mdk -""" - -import sys -from os.path import basename -from lib.command import CommandRunner -from lib.commands import getCommand -from lib.config import Conf - -f = basename(__file__) -sys.stderr.write("Do not call %s directly.\n" % (f)) -sys.stderr.write("This file will be removed in a later version.\n") -sys.stderr.write("Please use `mdk [command] [arguments]`\n") -sys.stderr.write("\n") - -cmd = f.replace('moodle-', '').replace('.py', '') -cls = getCommand(cmd) -Cmd = cls(Conf()) -Runner = CommandRunner(Cmd) -Runner.run(None, prog='%s %s' % ('mdk', cmd)) diff --git a/moodle-backport.py b/moodle-backport.py deleted file mode 100755 index f26aa02..0000000 --- a/moodle-backport.py +++ /dev/null @@ -1,41 +0,0 @@ -#!/usr/bin/env python -# -*- coding: utf-8 -*- - -""" -Moodle Development Kit - -Copyright (c) 2012 Frédéric Massart - FMCorz.net - -This program is free software: you can redistribute it and/or modify -it under the terms of the GNU General Public License as published by -the Free Software Foundation, either version 3 of the License, or -(at your option) any later version. - -This program is distributed in the hope that it will be useful, -but WITHOUT ANY WARRANTY; without even the implied warranty of -MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -GNU General Public License for more details. - -You should have received a copy of the GNU General Public License -along with this program. If not, see . - -http://github.com/FMCorz/mdk -""" - -import sys -from os.path import basename -from lib.command import CommandRunner -from lib.commands import getCommand -from lib.config import Conf - -f = basename(__file__) -sys.stderr.write("Do not call %s directly.\n" % (f)) -sys.stderr.write("This file will be removed in a later version.\n") -sys.stderr.write("Please use `mdk [command] [arguments]`\n") -sys.stderr.write("\n") - -cmd = f.replace('moodle-', '').replace('.py', '') -cls = getCommand(cmd) -Cmd = cls(Conf()) -Runner = CommandRunner(Cmd) -Runner.run(None, prog='%s %s' % ('mdk', cmd)) diff --git a/moodle-backup.py b/moodle-backup.py deleted file mode 100755 index f26aa02..0000000 --- a/moodle-backup.py +++ /dev/null @@ -1,41 +0,0 @@ -#!/usr/bin/env python -# -*- coding: utf-8 -*- - -""" -Moodle Development Kit - -Copyright (c) 2012 Frédéric Massart - FMCorz.net - -This program is free software: you can redistribute it and/or modify -it under the terms of the GNU General Public License as published by -the Free Software Foundation, either version 3 of the License, or -(at your option) any later version. - -This program is distributed in the hope that it will be useful, -but WITHOUT ANY WARRANTY; without even the implied warranty of -MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -GNU General Public License for more details. - -You should have received a copy of the GNU General Public License -along with this program. If not, see . - -http://github.com/FMCorz/mdk -""" - -import sys -from os.path import basename -from lib.command import CommandRunner -from lib.commands import getCommand -from lib.config import Conf - -f = basename(__file__) -sys.stderr.write("Do not call %s directly.\n" % (f)) -sys.stderr.write("This file will be removed in a later version.\n") -sys.stderr.write("Please use `mdk [command] [arguments]`\n") -sys.stderr.write("\n") - -cmd = f.replace('moodle-', '').replace('.py', '') -cls = getCommand(cmd) -Cmd = cls(Conf()) -Runner = CommandRunner(Cmd) -Runner.run(None, prog='%s %s' % ('mdk', cmd)) diff --git a/moodle-behat.py b/moodle-behat.py deleted file mode 100755 index f26aa02..0000000 --- a/moodle-behat.py +++ /dev/null @@ -1,41 +0,0 @@ -#!/usr/bin/env python -# -*- coding: utf-8 -*- - -""" -Moodle Development Kit - -Copyright (c) 2012 Frédéric Massart - FMCorz.net - -This program is free software: you can redistribute it and/or modify -it under the terms of the GNU General Public License as published by -the Free Software Foundation, either version 3 of the License, or -(at your option) any later version. - -This program is distributed in the hope that it will be useful, -but WITHOUT ANY WARRANTY; without even the implied warranty of -MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -GNU General Public License for more details. - -You should have received a copy of the GNU General Public License -along with this program. If not, see . - -http://github.com/FMCorz/mdk -""" - -import sys -from os.path import basename -from lib.command import CommandRunner -from lib.commands import getCommand -from lib.config import Conf - -f = basename(__file__) -sys.stderr.write("Do not call %s directly.\n" % (f)) -sys.stderr.write("This file will be removed in a later version.\n") -sys.stderr.write("Please use `mdk [command] [arguments]`\n") -sys.stderr.write("\n") - -cmd = f.replace('moodle-', '').replace('.py', '') -cls = getCommand(cmd) -Cmd = cls(Conf()) -Runner = CommandRunner(Cmd) -Runner.run(None, prog='%s %s' % ('mdk', cmd)) diff --git a/moodle-check.py b/moodle-check.py deleted file mode 100755 index f26aa02..0000000 --- a/moodle-check.py +++ /dev/null @@ -1,41 +0,0 @@ -#!/usr/bin/env python -# -*- coding: utf-8 -*- - -""" -Moodle Development Kit - -Copyright (c) 2012 Frédéric Massart - FMCorz.net - -This program is free software: you can redistribute it and/or modify -it under the terms of the GNU General Public License as published by -the Free Software Foundation, either version 3 of the License, or -(at your option) any later version. - -This program is distributed in the hope that it will be useful, -but WITHOUT ANY WARRANTY; without even the implied warranty of -MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -GNU General Public License for more details. - -You should have received a copy of the GNU General Public License -along with this program. If not, see . - -http://github.com/FMCorz/mdk -""" - -import sys -from os.path import basename -from lib.command import CommandRunner -from lib.commands import getCommand -from lib.config import Conf - -f = basename(__file__) -sys.stderr.write("Do not call %s directly.\n" % (f)) -sys.stderr.write("This file will be removed in a later version.\n") -sys.stderr.write("Please use `mdk [command] [arguments]`\n") -sys.stderr.write("\n") - -cmd = f.replace('moodle-', '').replace('.py', '') -cls = getCommand(cmd) -Cmd = cls(Conf()) -Runner = CommandRunner(Cmd) -Runner.run(None, prog='%s %s' % ('mdk', cmd)) diff --git a/moodle-config.py b/moodle-config.py deleted file mode 100755 index f26aa02..0000000 --- a/moodle-config.py +++ /dev/null @@ -1,41 +0,0 @@ -#!/usr/bin/env python -# -*- coding: utf-8 -*- - -""" -Moodle Development Kit - -Copyright (c) 2012 Frédéric Massart - FMCorz.net - -This program is free software: you can redistribute it and/or modify -it under the terms of the GNU General Public License as published by -the Free Software Foundation, either version 3 of the License, or -(at your option) any later version. - -This program is distributed in the hope that it will be useful, -but WITHOUT ANY WARRANTY; without even the implied warranty of -MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -GNU General Public License for more details. - -You should have received a copy of the GNU General Public License -along with this program. If not, see . - -http://github.com/FMCorz/mdk -""" - -import sys -from os.path import basename -from lib.command import CommandRunner -from lib.commands import getCommand -from lib.config import Conf - -f = basename(__file__) -sys.stderr.write("Do not call %s directly.\n" % (f)) -sys.stderr.write("This file will be removed in a later version.\n") -sys.stderr.write("Please use `mdk [command] [arguments]`\n") -sys.stderr.write("\n") - -cmd = f.replace('moodle-', '').replace('.py', '') -cls = getCommand(cmd) -Cmd = cls(Conf()) -Runner = CommandRunner(Cmd) -Runner.run(None, prog='%s %s' % ('mdk', cmd)) diff --git a/moodle-create.py b/moodle-create.py deleted file mode 100755 index f26aa02..0000000 --- a/moodle-create.py +++ /dev/null @@ -1,41 +0,0 @@ -#!/usr/bin/env python -# -*- coding: utf-8 -*- - -""" -Moodle Development Kit - -Copyright (c) 2012 Frédéric Massart - FMCorz.net - -This program is free software: you can redistribute it and/or modify -it under the terms of the GNU General Public License as published by -the Free Software Foundation, either version 3 of the License, or -(at your option) any later version. - -This program is distributed in the hope that it will be useful, -but WITHOUT ANY WARRANTY; without even the implied warranty of -MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -GNU General Public License for more details. - -You should have received a copy of the GNU General Public License -along with this program. If not, see . - -http://github.com/FMCorz/mdk -""" - -import sys -from os.path import basename -from lib.command import CommandRunner -from lib.commands import getCommand -from lib.config import Conf - -f = basename(__file__) -sys.stderr.write("Do not call %s directly.\n" % (f)) -sys.stderr.write("This file will be removed in a later version.\n") -sys.stderr.write("Please use `mdk [command] [arguments]`\n") -sys.stderr.write("\n") - -cmd = f.replace('moodle-', '').replace('.py', '') -cls = getCommand(cmd) -Cmd = cls(Conf()) -Runner = CommandRunner(Cmd) -Runner.run(None, prog='%s %s' % ('mdk', cmd)) diff --git a/moodle-fix.py b/moodle-fix.py deleted file mode 100755 index f26aa02..0000000 --- a/moodle-fix.py +++ /dev/null @@ -1,41 +0,0 @@ -#!/usr/bin/env python -# -*- coding: utf-8 -*- - -""" -Moodle Development Kit - -Copyright (c) 2012 Frédéric Massart - FMCorz.net - -This program is free software: you can redistribute it and/or modify -it under the terms of the GNU General Public License as published by -the Free Software Foundation, either version 3 of the License, or -(at your option) any later version. - -This program is distributed in the hope that it will be useful, -but WITHOUT ANY WARRANTY; without even the implied warranty of -MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -GNU General Public License for more details. - -You should have received a copy of the GNU General Public License -along with this program. If not, see . - -http://github.com/FMCorz/mdk -""" - -import sys -from os.path import basename -from lib.command import CommandRunner -from lib.commands import getCommand -from lib.config import Conf - -f = basename(__file__) -sys.stderr.write("Do not call %s directly.\n" % (f)) -sys.stderr.write("This file will be removed in a later version.\n") -sys.stderr.write("Please use `mdk [command] [arguments]`\n") -sys.stderr.write("\n") - -cmd = f.replace('moodle-', '').replace('.py', '') -cls = getCommand(cmd) -Cmd = cls(Conf()) -Runner = CommandRunner(Cmd) -Runner.run(None, prog='%s %s' % ('mdk', cmd)) diff --git a/moodle-info.py b/moodle-info.py deleted file mode 100755 index f26aa02..0000000 --- a/moodle-info.py +++ /dev/null @@ -1,41 +0,0 @@ -#!/usr/bin/env python -# -*- coding: utf-8 -*- - -""" -Moodle Development Kit - -Copyright (c) 2012 Frédéric Massart - FMCorz.net - -This program is free software: you can redistribute it and/or modify -it under the terms of the GNU General Public License as published by -the Free Software Foundation, either version 3 of the License, or -(at your option) any later version. - -This program is distributed in the hope that it will be useful, -but WITHOUT ANY WARRANTY; without even the implied warranty of -MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -GNU General Public License for more details. - -You should have received a copy of the GNU General Public License -along with this program. If not, see . - -http://github.com/FMCorz/mdk -""" - -import sys -from os.path import basename -from lib.command import CommandRunner -from lib.commands import getCommand -from lib.config import Conf - -f = basename(__file__) -sys.stderr.write("Do not call %s directly.\n" % (f)) -sys.stderr.write("This file will be removed in a later version.\n") -sys.stderr.write("Please use `mdk [command] [arguments]`\n") -sys.stderr.write("\n") - -cmd = f.replace('moodle-', '').replace('.py', '') -cls = getCommand(cmd) -Cmd = cls(Conf()) -Runner = CommandRunner(Cmd) -Runner.run(None, prog='%s %s' % ('mdk', cmd)) diff --git a/moodle-init.py b/moodle-init.py deleted file mode 100755 index f26aa02..0000000 --- a/moodle-init.py +++ /dev/null @@ -1,41 +0,0 @@ -#!/usr/bin/env python -# -*- coding: utf-8 -*- - -""" -Moodle Development Kit - -Copyright (c) 2012 Frédéric Massart - FMCorz.net - -This program is free software: you can redistribute it and/or modify -it under the terms of the GNU General Public License as published by -the Free Software Foundation, either version 3 of the License, or -(at your option) any later version. - -This program is distributed in the hope that it will be useful, -but WITHOUT ANY WARRANTY; without even the implied warranty of -MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -GNU General Public License for more details. - -You should have received a copy of the GNU General Public License -along with this program. If not, see . - -http://github.com/FMCorz/mdk -""" - -import sys -from os.path import basename -from lib.command import CommandRunner -from lib.commands import getCommand -from lib.config import Conf - -f = basename(__file__) -sys.stderr.write("Do not call %s directly.\n" % (f)) -sys.stderr.write("This file will be removed in a later version.\n") -sys.stderr.write("Please use `mdk [command] [arguments]`\n") -sys.stderr.write("\n") - -cmd = f.replace('moodle-', '').replace('.py', '') -cls = getCommand(cmd) -Cmd = cls(Conf()) -Runner = CommandRunner(Cmd) -Runner.run(None, prog='%s %s' % ('mdk', cmd)) diff --git a/moodle-install.py b/moodle-install.py deleted file mode 100755 index f26aa02..0000000 --- a/moodle-install.py +++ /dev/null @@ -1,41 +0,0 @@ -#!/usr/bin/env python -# -*- coding: utf-8 -*- - -""" -Moodle Development Kit - -Copyright (c) 2012 Frédéric Massart - FMCorz.net - -This program is free software: you can redistribute it and/or modify -it under the terms of the GNU General Public License as published by -the Free Software Foundation, either version 3 of the License, or -(at your option) any later version. - -This program is distributed in the hope that it will be useful, -but WITHOUT ANY WARRANTY; without even the implied warranty of -MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -GNU General Public License for more details. - -You should have received a copy of the GNU General Public License -along with this program. If not, see . - -http://github.com/FMCorz/mdk -""" - -import sys -from os.path import basename -from lib.command import CommandRunner -from lib.commands import getCommand -from lib.config import Conf - -f = basename(__file__) -sys.stderr.write("Do not call %s directly.\n" % (f)) -sys.stderr.write("This file will be removed in a later version.\n") -sys.stderr.write("Please use `mdk [command] [arguments]`\n") -sys.stderr.write("\n") - -cmd = f.replace('moodle-', '').replace('.py', '') -cls = getCommand(cmd) -Cmd = cls(Conf()) -Runner = CommandRunner(Cmd) -Runner.run(None, prog='%s %s' % ('mdk', cmd)) diff --git a/moodle-phpunit.py b/moodle-phpunit.py deleted file mode 100755 index f26aa02..0000000 --- a/moodle-phpunit.py +++ /dev/null @@ -1,41 +0,0 @@ -#!/usr/bin/env python -# -*- coding: utf-8 -*- - -""" -Moodle Development Kit - -Copyright (c) 2012 Frédéric Massart - FMCorz.net - -This program is free software: you can redistribute it and/or modify -it under the terms of the GNU General Public License as published by -the Free Software Foundation, either version 3 of the License, or -(at your option) any later version. - -This program is distributed in the hope that it will be useful, -but WITHOUT ANY WARRANTY; without even the implied warranty of -MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -GNU General Public License for more details. - -You should have received a copy of the GNU General Public License -along with this program. If not, see . - -http://github.com/FMCorz/mdk -""" - -import sys -from os.path import basename -from lib.command import CommandRunner -from lib.commands import getCommand -from lib.config import Conf - -f = basename(__file__) -sys.stderr.write("Do not call %s directly.\n" % (f)) -sys.stderr.write("This file will be removed in a later version.\n") -sys.stderr.write("Please use `mdk [command] [arguments]`\n") -sys.stderr.write("\n") - -cmd = f.replace('moodle-', '').replace('.py', '') -cls = getCommand(cmd) -Cmd = cls(Conf()) -Runner = CommandRunner(Cmd) -Runner.run(None, prog='%s %s' % ('mdk', cmd)) diff --git a/moodle-pull.py b/moodle-pull.py deleted file mode 100755 index e033045..0000000 --- a/moodle-pull.py +++ /dev/null @@ -1,41 +0,0 @@ -#!/usr/bin/env python -# -*- coding: utf-8 -*- - -""" -Moodle Development Kit - -Copyright (c) 2013 Frédéric Massart - FMCorz.net - -This program is free software: you can redistribute it and/or modify -it under the terms of the GNU General Public License as published by -the Free Software Foundation, either version 3 of the License, or -(at your option) any later version. - -This program is distributed in the hope that it will be useful, -but WITHOUT ANY WARRANTY; without even the implied warranty of -MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -GNU General Public License for more details. - -You should have received a copy of the GNU General Public License -along with this program. If not, see . - -http://github.com/FMCorz/mdk -""" - -import sys -from os.path import basename -from lib.command import CommandRunner -from lib.commands import getCommand -from lib.config import Conf - -f = basename(__file__) -sys.stderr.write("Do not call %s directly.\n" % (f)) -sys.stderr.write("This file will be removed in a later version.\n") -sys.stderr.write("Please use `mdk [command] [arguments]`\n") -sys.stderr.write("\n") - -cmd = f.replace('moodle-', '').replace('.py', '') -cls = getCommand(cmd) -Cmd = cls(Conf()) -Runner = CommandRunner(Cmd) -Runner.run(None, prog='%s %s' % ('mdk', cmd)) diff --git a/moodle-purge.py b/moodle-purge.py deleted file mode 100755 index f26aa02..0000000 --- a/moodle-purge.py +++ /dev/null @@ -1,41 +0,0 @@ -#!/usr/bin/env python -# -*- coding: utf-8 -*- - -""" -Moodle Development Kit - -Copyright (c) 2012 Frédéric Massart - FMCorz.net - -This program is free software: you can redistribute it and/or modify -it under the terms of the GNU General Public License as published by -the Free Software Foundation, either version 3 of the License, or -(at your option) any later version. - -This program is distributed in the hope that it will be useful, -but WITHOUT ANY WARRANTY; without even the implied warranty of -MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -GNU General Public License for more details. - -You should have received a copy of the GNU General Public License -along with this program. If not, see . - -http://github.com/FMCorz/mdk -""" - -import sys -from os.path import basename -from lib.command import CommandRunner -from lib.commands import getCommand -from lib.config import Conf - -f = basename(__file__) -sys.stderr.write("Do not call %s directly.\n" % (f)) -sys.stderr.write("This file will be removed in a later version.\n") -sys.stderr.write("Please use `mdk [command] [arguments]`\n") -sys.stderr.write("\n") - -cmd = f.replace('moodle-', '').replace('.py', '') -cls = getCommand(cmd) -Cmd = cls(Conf()) -Runner = CommandRunner(Cmd) -Runner.run(None, prog='%s %s' % ('mdk', cmd)) diff --git a/moodle-push.py b/moodle-push.py deleted file mode 100755 index f26aa02..0000000 --- a/moodle-push.py +++ /dev/null @@ -1,41 +0,0 @@ -#!/usr/bin/env python -# -*- coding: utf-8 -*- - -""" -Moodle Development Kit - -Copyright (c) 2012 Frédéric Massart - FMCorz.net - -This program is free software: you can redistribute it and/or modify -it under the terms of the GNU General Public License as published by -the Free Software Foundation, either version 3 of the License, or -(at your option) any later version. - -This program is distributed in the hope that it will be useful, -but WITHOUT ANY WARRANTY; without even the implied warranty of -MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -GNU General Public License for more details. - -You should have received a copy of the GNU General Public License -along with this program. If not, see . - -http://github.com/FMCorz/mdk -""" - -import sys -from os.path import basename -from lib.command import CommandRunner -from lib.commands import getCommand -from lib.config import Conf - -f = basename(__file__) -sys.stderr.write("Do not call %s directly.\n" % (f)) -sys.stderr.write("This file will be removed in a later version.\n") -sys.stderr.write("Please use `mdk [command] [arguments]`\n") -sys.stderr.write("\n") - -cmd = f.replace('moodle-', '').replace('.py', '') -cls = getCommand(cmd) -Cmd = cls(Conf()) -Runner = CommandRunner(Cmd) -Runner.run(None, prog='%s %s' % ('mdk', cmd)) diff --git a/moodle-rebase.py b/moodle-rebase.py deleted file mode 100755 index f26aa02..0000000 --- a/moodle-rebase.py +++ /dev/null @@ -1,41 +0,0 @@ -#!/usr/bin/env python -# -*- coding: utf-8 -*- - -""" -Moodle Development Kit - -Copyright (c) 2012 Frédéric Massart - FMCorz.net - -This program is free software: you can redistribute it and/or modify -it under the terms of the GNU General Public License as published by -the Free Software Foundation, either version 3 of the License, or -(at your option) any later version. - -This program is distributed in the hope that it will be useful, -but WITHOUT ANY WARRANTY; without even the implied warranty of -MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -GNU General Public License for more details. - -You should have received a copy of the GNU General Public License -along with this program. If not, see . - -http://github.com/FMCorz/mdk -""" - -import sys -from os.path import basename -from lib.command import CommandRunner -from lib.commands import getCommand -from lib.config import Conf - -f = basename(__file__) -sys.stderr.write("Do not call %s directly.\n" % (f)) -sys.stderr.write("This file will be removed in a later version.\n") -sys.stderr.write("Please use `mdk [command] [arguments]`\n") -sys.stderr.write("\n") - -cmd = f.replace('moodle-', '').replace('.py', '') -cls = getCommand(cmd) -Cmd = cls(Conf()) -Runner = CommandRunner(Cmd) -Runner.run(None, prog='%s %s' % ('mdk', cmd)) diff --git a/moodle-remove.py b/moodle-remove.py deleted file mode 100755 index f26aa02..0000000 --- a/moodle-remove.py +++ /dev/null @@ -1,41 +0,0 @@ -#!/usr/bin/env python -# -*- coding: utf-8 -*- - -""" -Moodle Development Kit - -Copyright (c) 2012 Frédéric Massart - FMCorz.net - -This program is free software: you can redistribute it and/or modify -it under the terms of the GNU General Public License as published by -the Free Software Foundation, either version 3 of the License, or -(at your option) any later version. - -This program is distributed in the hope that it will be useful, -but WITHOUT ANY WARRANTY; without even the implied warranty of -MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -GNU General Public License for more details. - -You should have received a copy of the GNU General Public License -along with this program. If not, see . - -http://github.com/FMCorz/mdk -""" - -import sys -from os.path import basename -from lib.command import CommandRunner -from lib.commands import getCommand -from lib.config import Conf - -f = basename(__file__) -sys.stderr.write("Do not call %s directly.\n" % (f)) -sys.stderr.write("This file will be removed in a later version.\n") -sys.stderr.write("Please use `mdk [command] [arguments]`\n") -sys.stderr.write("\n") - -cmd = f.replace('moodle-', '').replace('.py', '') -cls = getCommand(cmd) -Cmd = cls(Conf()) -Runner = CommandRunner(Cmd) -Runner.run(None, prog='%s %s' % ('mdk', cmd)) diff --git a/moodle-run.py b/moodle-run.py deleted file mode 100755 index f26aa02..0000000 --- a/moodle-run.py +++ /dev/null @@ -1,41 +0,0 @@ -#!/usr/bin/env python -# -*- coding: utf-8 -*- - -""" -Moodle Development Kit - -Copyright (c) 2012 Frédéric Massart - FMCorz.net - -This program is free software: you can redistribute it and/or modify -it under the terms of the GNU General Public License as published by -the Free Software Foundation, either version 3 of the License, or -(at your option) any later version. - -This program is distributed in the hope that it will be useful, -but WITHOUT ANY WARRANTY; without even the implied warranty of -MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -GNU General Public License for more details. - -You should have received a copy of the GNU General Public License -along with this program. If not, see . - -http://github.com/FMCorz/mdk -""" - -import sys -from os.path import basename -from lib.command import CommandRunner -from lib.commands import getCommand -from lib.config import Conf - -f = basename(__file__) -sys.stderr.write("Do not call %s directly.\n" % (f)) -sys.stderr.write("This file will be removed in a later version.\n") -sys.stderr.write("Please use `mdk [command] [arguments]`\n") -sys.stderr.write("\n") - -cmd = f.replace('moodle-', '').replace('.py', '') -cls = getCommand(cmd) -Cmd = cls(Conf()) -Runner = CommandRunner(Cmd) -Runner.run(None, prog='%s %s' % ('mdk', cmd)) diff --git a/moodle-update.py b/moodle-update.py deleted file mode 100755 index f26aa02..0000000 --- a/moodle-update.py +++ /dev/null @@ -1,41 +0,0 @@ -#!/usr/bin/env python -# -*- coding: utf-8 -*- - -""" -Moodle Development Kit - -Copyright (c) 2012 Frédéric Massart - FMCorz.net - -This program is free software: you can redistribute it and/or modify -it under the terms of the GNU General Public License as published by -the Free Software Foundation, either version 3 of the License, or -(at your option) any later version. - -This program is distributed in the hope that it will be useful, -but WITHOUT ANY WARRANTY; without even the implied warranty of -MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -GNU General Public License for more details. - -You should have received a copy of the GNU General Public License -along with this program. If not, see . - -http://github.com/FMCorz/mdk -""" - -import sys -from os.path import basename -from lib.command import CommandRunner -from lib.commands import getCommand -from lib.config import Conf - -f = basename(__file__) -sys.stderr.write("Do not call %s directly.\n" % (f)) -sys.stderr.write("This file will be removed in a later version.\n") -sys.stderr.write("Please use `mdk [command] [arguments]`\n") -sys.stderr.write("\n") - -cmd = f.replace('moodle-', '').replace('.py', '') -cls = getCommand(cmd) -Cmd = cls(Conf()) -Runner = CommandRunner(Cmd) -Runner.run(None, prog='%s %s' % ('mdk', cmd)) diff --git a/moodle-upgrade.py b/moodle-upgrade.py deleted file mode 100755 index f26aa02..0000000 --- a/moodle-upgrade.py +++ /dev/null @@ -1,41 +0,0 @@ -#!/usr/bin/env python -# -*- coding: utf-8 -*- - -""" -Moodle Development Kit - -Copyright (c) 2012 Frédéric Massart - FMCorz.net - -This program is free software: you can redistribute it and/or modify -it under the terms of the GNU General Public License as published by -the Free Software Foundation, either version 3 of the License, or -(at your option) any later version. - -This program is distributed in the hope that it will be useful, -but WITHOUT ANY WARRANTY; without even the implied warranty of -MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -GNU General Public License for more details. - -You should have received a copy of the GNU General Public License -along with this program. If not, see . - -http://github.com/FMCorz/mdk -""" - -import sys -from os.path import basename -from lib.command import CommandRunner -from lib.commands import getCommand -from lib.config import Conf - -f = basename(__file__) -sys.stderr.write("Do not call %s directly.\n" % (f)) -sys.stderr.write("This file will be removed in a later version.\n") -sys.stderr.write("Please use `mdk [command] [arguments]`\n") -sys.stderr.write("\n") - -cmd = f.replace('moodle-', '').replace('.py', '') -cls = getCommand(cmd) -Cmd = cls(Conf()) -Runner = CommandRunner(Cmd) -Runner.run(None, prog='%s %s' % ('mdk', cmd)) -- 2.11.0