Bash Script Structure: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
|||
| Line 3: | Line 3: | ||
==Bash for Chorke== | ==Bash for Chorke== | ||
<syntaxhighlight lang="bash"> | |||
# locale bash script path setting | |||
BASH_HOME=$HOME/.chorke/var/bash | |||
BASH_PATH=$BASH_HOME/java/org/init | |||
# remote bash script path setting | |||
BASH_BASE=http://cdn.chorke.org/bash | |||
BASH_SITE=$BASH_BASE/java/init | |||
for b in init make pick/make pull push sync;do\ | |||
curl $BASH_SITE/$b>$BASH_PATH/$b\ | |||
done | |||
</syntaxhighlight> | |||
~/.chorke/ | ~/.chorke/ | ||
Revision as of 12:20, 10 January 2018
Bash for Chorke
# locale bash script path setting
BASH_HOME=$HOME/.chorke/var/bash
BASH_PATH=$BASH_HOME/java/org/init
# remote bash script path setting
BASH_BASE=http://cdn.chorke.org/bash
BASH_SITE=$BASH_BASE/java/init
for b in init make pick/make pull push sync;do\
curl $BASH_SITE/$b>$BASH_PATH/$b\
done
~/.chorke/
├─ tmp/
└─ var/
└─ bash/
└─ java/
├─ com/
│ ├─ ebis/
│ └─ ehis/
└─ org/
├─ amqp/
├─ core/
├─ ecma/
└─ init/
├─ init
├─ make
├─ make/all
├─ pull
├─ push
└─ sync
Bash for Shahed
# bash settings/initialization BASH_HOME=$HOME/.shahed/var/bash BASH_PATH=$BASH_HOME/php/biz/bash BASH_SITE=http://cdn.chorke.org/bash
# bash script download/copy curl $BASH_SITE/php/init>$BASH_PATH/init curl $BASH_SITE/php/make>$BASH_PATH/make curl $BASH_SITE/php/make>$BASH_PATH/make/option curl $BASH_SITE/php/pull>$BASH_PATH/pull curl $BASH_SITE/php/push>$BASH_PATH/push curl $BASH_SITE/php/sync>$BASH_PATH/sync
~/.shahed/
├─ tmp/
└─ var/
└─ bash/
└─ php/
└─ biz/
├─ site/
└─ bash/
├─ init
├─ make
├─ make/all
├─ pull
├─ push
└─ sync