Bash Script Structure: Difference between revisions

From Chorke Wiki
Jump to navigation Jump to search
No edit summary
 
(11 intermediate revisions by the same user not shown)
Line 1: Line 1:
__TOC__
==Bash for Chorke==
==Bash for Chorke==
#bash settings/initialization
BASH_HOME=$HOME/.chorke/var/bash
BASH_PATH=$BASH_HOME/java/org/init
BASH_SITE=http://cdn.chorke.org/bash


#bash script download/copy
<syntaxhighlight lang="bash">
curl $BASH_SITE/java/init>$BASH_PATH/init
# build version
curl $BASH_SITE/java/make>$BASH_PATH/make
VERSION=9.99.99
curl $BASH_SITE/java/make>$BASH_PATH/make/option
 
curl $BASH_SITE/java/pull>$BASH_PATH/pull
# locale bash script path setting
curl $BASH_SITE/java/push>$BASH_PATH/push
BASH_HOME=$HOME/.chorke/var/bash
curl $BASH_SITE/java/sync>$BASH_PATH/sync
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


  ~/.chorke/
# remote bash scripts download to locale
    ├─ tmp/
for b in init make pull push sync;do\
    └─ var/
    curl -L "$BASH_BASE/$b/$VERSION">"$BASH_PATH/$VERSION/$b";\
      └─ bash/
done
          └─ java/
</syntaxhighlight>
            ├─ com/
 
            │  ├─ ebis/
==Tree for Chorke==
            │  └─ ehis/
  ~/.chorke/var/bash/java/
            └─ org/
  └─ org/
                ├─ amqp/
      ├─ amqp/
                ├─ core/
      └─ init/
                ├─ ecma/
        ├─ 0.00.00/
               └─ init/
        ├─ 0.00.01/
                  ├─ init
        ├─ 9.99.98/
                  ├─ make
        └─ 9.99.99/
                  ├─ make/all
            ├─ init
                  ├─ pull
            ├─ make
                  ├─ push
            ├─ pull
                  └─ sync
            ├─ push
            └─ sync


==Bash for Shahed==
==Bash for Shahed==


BASH_HOME=$HOME/.shahed/var/bash
<syntaxhighlight lang="bash">
BASH_PATH=$BASH_HOME/php/biz/bash
# 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
</syntaxhighlight>


  ~/.shahed/
==Tree for Shahed==
    ├─ tmp/
  ~/.shahed/var/bash/php/
    └─ var/
  └─ biz/
      └─ bash/
      ├─ bash/
          └─ php/
      └─ site/
            └─ biz/
        ├─ 0.00.00/
                ├─ site/
        ├─ 0.00.01/
                └─ bash/
        ├─ 9.99.98/
                  ├─ init
        └─ 9.99.99/
                  ├─ make
            ├─ init
                  ├─ make/all
            ├─ make
                  ├─ pull
            ├─ pull
                  ├─ push
            ├─ push
                  └─ sync
            └─ 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