Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Changed Git Add shell script

  • Loading branch information...
commit 7c99785ba187a72fc76d51ed4681e0a776bdd657 1 parent a55ff12
@jmelnick jmelnick authored
Showing with 22 additions and 18 deletions.
  1. +17 −5 devel.sh
  2. +5 −13 shell/devel/git/add.sh
View
22 devel.sh
@@ -23,14 +23,26 @@ fi
# Path
#
DEVEL_SH_PATH="./shell/devel/$DEVEL_SH_HANDLER/$DEVEL_SH_COMMAND.sh"
+DEVEL_PHP_PATH="./shell/devel/$DEVEL_SH_HANDLER/$DEVEL_SH_COMMAND.php"
-if [ ! -f $DEVEL_SH_PATH ]
+if [ -f $DEVEL_SH_PATH ]
then
- echo "ERROR: Handler or command doesn't exist! ($DEVEL_SH_PATH)"
- exit
+ #
+ # Source the include to use current shell
+ #
+ . $DEVEL_SH_PATH; exit
+fi
+
+if [ -f $DEVEL_PHP_PATH ]
+then
+ #
+ # Source the include to use current shell
+ #
+ php $DEVEL_PHP_PATH; exit
fi
#
-# Source the include to use current shell
+# ERROR
#
-. $DEVEL_SH_PATH
+echo "ERROR: Handler or command doesn't exist! ($DEVEL_SH_PATH)"
+exit
View
18 shell/devel/git/add.sh
@@ -1,16 +1,8 @@
#!/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
+while read line
+do
+ git add -f $line
+done < shell/devel/devel/files.txt
+
git status
Please sign in to comment.
Something went wrong with that request. Please try again.