Bash Script Structure: Difference between revisions

From Chorke Wiki
Jump to navigation Jump to search
(Created page with "==Bash for Chorke== ~/.chorke/ ├─ tmp/ └─ var/ └─ bash/ └─ java/ ├─ com │ ├─ ebis/...")
 
No edit summary
 
(18 intermediate revisions by the same user not shown)
Line 1: Line 1:
__TOC__
==Bash for Chorke==
==Bash for Chorke==
~/.chorke/
 
    ├─ tmp/
<syntaxhighlight lang="bash">
    └─ var/
# build version
      └─ bash/
VERSION=9.99.99
          └─ java/
 
            ├─ com
# locale bash script path setting
            │  ├─ ebis/
BASH_HOME=$HOME/.chorke/var/bash
            │ └─ ehis/
BASH_PATH=$BASH_HOME/java/org/init
            └─ org
 
                ├─ amqp/
# remote bash script path setting
                ├─ core/
BASH_SITE=http://cdn.chorke.org/bash
                ├─ ecma/
BASH_BASE=$BASH_SITE/java/init
               └─ init/
 
                  ├─ make
# remote bash scripts download to locale
                  ├─ make/all
for b in init make pull push sync;do\
                  ├─ pull
    curl -L "$BASH_BASE/$b/$VERSION">"$BASH_PATH/$VERSION/$b";\
                  └─ push
done
</syntaxhighlight>
 
==Tree for Chorke==
  ~/.chorke/var/bash/java/
  └─ org/
      ├─ amqp/
      └─ init/
        ├─ 0.00.00/
        ├─ 0.00.01/
        ├─ 9.99.98/
        └─ 9.99.99/
            ├─ init
            ├─ make
            ├─ pull
            ├─ push
            └─ sync


==Bash for Shahed==
==Bash for Shahed==
~/.shahed/
 
     ├─ tmp/
<syntaxhighlight lang="bash">
    └─ var/
# build version
      └─ bash/
VERSION=9.99.99
          └─ zend/
 
            └─ biz/
# locale bash script path setting
                ├─ site/
BASH_HOME=$HOME/.shahed/var/bash
                └─ bash/
BASH_PATH=$BASH_HOME/php/biz/site
                  ├─ make
 
                  ├─ make/all
# remote bash script path setting
                  ├─ pull
BASH_SITE=http://cdn.shahed.biz/bash
                  └─ push
BASH_BASE=$BASH_SITE/php/site
 
# remote bash scripts download to locale
for b in init make pull push sync;do\
     curl -L "$BASH_BASE/$b/$VERSION">"$BASH_PATH/$VERSION/$b";\
done
</syntaxhighlight>
 
==Tree for Shahed==
~/.shahed/var/bash/php/
  └─ biz/
      ├─ bash/
      └─ site/
        ├─ 0.00.00/
        ├─ 0.00.01/
        ├─ 9.99.98/
        └─ 9.99.99/
            ├─ init
            ├─ make
            ├─ pull
            ├─ push
            └─ sync

Latest revision as of 10:41, 11 January 2018

Bash for Chorke

# build version
VERSION=9.99.99

# locale bash script path setting
BASH_HOME=$HOME/.chorke/var/bash
BASH_PATH=$BASH_HOME/java/org/init

# remote bash script path setting
BASH_SITE=http://cdn.chorke.org/bash
BASH_BASE=$BASH_SITE/java/init

# remote bash scripts download to locale
for b in init make pull push sync;do\
    curl -L "$BASH_BASE/$b/$VERSION">"$BASH_PATH/$VERSION/$b";\
done

Tree for Chorke

~/.chorke/var/bash/java/
  └─ org/
     ├─ amqp/
     └─ init/
        ├─ 0.00.00/
        ├─ 0.00.01/
        ├─ 9.99.98/
        └─ 9.99.99/
           ├─ init
           ├─ make
           ├─ pull
           ├─ push
           └─ sync

Bash for Shahed

# build version
VERSION=9.99.99

# locale bash script path setting
BASH_HOME=$HOME/.shahed/var/bash
BASH_PATH=$BASH_HOME/php/biz/site

# remote bash script path setting
BASH_SITE=http://cdn.shahed.biz/bash
BASH_BASE=$BASH_SITE/php/site

# remote bash scripts download to locale
for b in init make pull push sync;do\
    curl -L "$BASH_BASE/$b/$VERSION">"$BASH_PATH/$VERSION/$b";\
done

Tree for Shahed

~/.shahed/var/bash/php/
  └─ biz/
     ├─ bash/
     └─ site/
        ├─ 0.00.00/
        ├─ 0.00.01/
        ├─ 9.99.98/
        └─ 9.99.99/
           ├─ init
           ├─ make
           ├─ pull
           ├─ push
           └─ sync