Skip to content

Commit

Permalink
Add devel shell wrapper and git-add script
Browse files Browse the repository at this point in the history
  • Loading branch information
jmelnick committed Jun 20, 2011
1 parent f660354 commit 8ef69f9
Show file tree
Hide file tree
Showing 2 changed files with 52 additions and 0 deletions.
36 changes: 36 additions & 0 deletions devel.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
#!/bin/sh

#
# Vars: handler and command
#

DEVEL_SH_HANDLER=$1
DEVEL_SH_COMMAND=$2

if [ ! -n "$DEVEL_SH_HANDLER" ]
then
echo "Enter handler:"
read DEVEL_SH_HANDLER
fi

if [ ! -n "$DEVEL_SH_COMMAND" ]
then
echo "Enter command:"
read DEVEL_SH_COMMAND
fi

#
# Path
#
DEVEL_SH_PATH="./shell/devel/$DEVEL_SH_HANDLER/$DEVEL_SH_COMMAND.sh"

if [ ! -f $DEVEL_SH_PATH ]
then
echo "ERROR: Handler or command doesn't exist! ($DEVEL_SH_PATH)"
exit
fi

#
# Source the include to use current shell
#
. $DEVEL_SH_PATH
16 changes: 16 additions & 0 deletions shell/devel/git/add.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
#!/bin/sh

git add -f app/code/community/Dhmedia/Devel/
git add -f app/code/local/Mage/Core/Block/Template.php
git add -f app/design/frontend/default/default/template/devel/
git add -f app/design/frontend/default/default/layout/devel/
git add -f app/etc/modules/Dhmedia_Devel.xml
git add -f js/codemirror/
git add -f js/devel/
git add -f lib/krumo/
git add -f js/devel/
git add -f shell/devel/
git add -f skin/frontend/default/default/devel/
git add -f .gitignore
git add -f devel.sh
git status

0 comments on commit 8ef69f9

Please sign in to comment.