From bea98907f58e299293b5c693a1804ee1002f7494 Mon Sep 17 00:00:00 2001 From: Alex Honor Date: Wed, 5 Sep 2012 06:55:46 -0700 Subject: [PATCH] removed extraneous/incomplete stubbs:extract command --- modules/stubbs/commands/extract/default.sh | 60 ---------------------- modules/stubbs/commands/extract/metadata | 5 -- 2 files changed, 65 deletions(-) delete mode 100644 modules/stubbs/commands/extract/default.sh delete mode 100644 modules/stubbs/commands/extract/metadata diff --git a/modules/stubbs/commands/extract/default.sh b/modules/stubbs/commands/extract/default.sh deleted file mode 100644 index 5074fb8..0000000 --- a/modules/stubbs/commands/extract/default.sh +++ /dev/null @@ -1,60 +0,0 @@ -#!/usr/bin/env bash -# -# NAME -# -# extract -# -# DESCRIPTION -# -# extracts the rerun module from the self extracting archive -# - -# Parse the command options -[ -r $RERUN_MODULES/stubbs/commands/extract/options.sh ] && { - source $RERUN_MODULES/stubbs/commands/extract/options.sh -} - -# Read module function library -[ -r $RERUN_MODULES/stubbs/lib/functions.sh ] && { - source $RERUN_MODULES/stubbs/lib/functions.sh -} - -# ------------------------------ -# Your implementation goes here. -# ------------------------------ - -if [ -z "${RERUN}" ] -then - echo "RERUN environment not defined" 1>&2 - exit 1 -fi - -if [ ! -x "${RERUN}" ] -then - echo "RERUN script ${RERUN} does not exist or is not executable" 1>&2 - exit 1 -fi - -if [ -z "${RERUN_MODULES}" ] -then - echo "RERUN_MODULES environment not defined" 1>&2 - exit 1 -fi - -if [ ! -d "${RERUN_MODULES}" ] -then - echo "RERUN_MODULES ${RERUN_MODULES} directory does not exist" 1>&2 - exit 1 -fi - -echo "DEBUG:" -echo "DEBUG: oldCWD: ${oldCWD}" -cwd=$(pwd) -pushd "${RERUN_MODULES}/.." - tar cf - modules rerun | (cd ${oldCWD} && tar xf -) -popd -echo "END DEBUG:" - -exit $? - -# Done diff --git a/modules/stubbs/commands/extract/metadata b/modules/stubbs/commands/extract/metadata deleted file mode 100644 index 4014109..0000000 --- a/modules/stubbs/commands/extract/metadata +++ /dev/null @@ -1,5 +0,0 @@ -# generated by stubbs:add-command -# Mon Feb 13 11:14:31 PST 2012 -NAME=extract -DESCRIPTION="extracts the rerun module from the self extracting archive" -