Bash Script Structure: Difference between revisions

From Chorke Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 4: Line 4:


<syntaxhighlight lang="bash">
<syntaxhighlight lang="bash">
# build version
VERSION=9.99.99
# locale bash script path setting
# locale bash script path setting
BASH_HOME=$HOME/.chorke/var/bash
BASH_HOME=$HOME/.chorke/var/bash
Line 14: Line 17:
# remote bash scripts download to locale
# remote bash scripts download to locale
for b in init make pull push sync;do\
for b in init make pull push sync;do\
     curl "$BASH_SITE/$b>$BASH_PATH/$b";\
     curl "$BASH_SITE/$b/$VERSION>$BASH_PATH/$VERSION/$b";\
done
done
</syntaxhighlight>
</syntaxhighlight>
Line 20: Line 23:
==Tree for Chorke==
==Tree for Chorke==
  ~/.chorke/var/bash/java/
  ~/.chorke/var/bash/java/
  ├─ com/
  │  ├─ ebis/
  │  └─ ehis/
   └─ org/
   └─ org/
       ├─ amqp/
       ├─ amqp/
      ├─ core/
      ├─ ecma/
       └─ init/
       └─ init/
         ├─ init
         ├─ 0.00.00/
        ├─ make
        ├─ 0.00.01/
        ├─ pull
        ├─ 9.99.98/
        ├─ push
        └─ 9.99.99/
        └─ sync
            ├─ init
            ├─ make
            ├─ pull
            ├─ push
            └─ sync


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


<syntaxhighlight lang="bash">
<syntaxhighlight lang="bash">
# build version
VERSION=9.99.99
# locale bash script path setting
# locale bash script path setting
BASH_HOME=$HOME/.shahed/var/bash
BASH_HOME=$HOME/.shahed/var/bash
Line 47: Line 52:
# remote bash scripts download to locale
# remote bash scripts download to locale
for b in init make pull push sync;do\
for b in init make pull push sync;do\
     curl "$BASH_SITE/$b>$BASH_PATH/$b";\
     curl "$BASH_SITE/$b/$VERSION>$BASH_PATH/$VERSION/$b";\
done
done
</syntaxhighlight>
</syntaxhighlight>
Line 56: Line 61:
       ├─ bash/
       ├─ bash/
       └─ site/
       └─ site/
         ├─ init
         ├─ 0.00.00/
        ├─ make
        ├─ 0.00.01/
        ├─ pull
        ├─ 9.99.98/
        ├─ push
        └─ 9.99.99/
        └─ sync
            ├─ init
            ├─ make
            ├─ pull
            ├─ push
            └─ sync

Revision as of 02:13, 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_BASE=http://cdn.chorke.org/bash
BASH_SITE=$BASH_BASE/java/init

# remote bash scripts download to locale
for b in init make pull push sync;do\
    curl "$BASH_SITE/$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_BASE=http://cdn.shahed.biz/bash
BASH_SITE=$BASH_BASE/php/site

# remote bash scripts download to locale
for b in init make pull push sync;do\
    curl "$BASH_SITE/$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