-
Notifications
You must be signed in to change notification settings - Fork 0
/
ftoProc.sh
executable file
·172 lines (133 loc) · 4.84 KB
/
ftoProc.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
#!/bin/bash
####+BEGIN: bx:bash:top-of-file :vc "cvs" partof: "bystar" :copyleft "halaal+minimal"
### Args: :control "enabled|disabled|hide|release|fVar" :vc "cvs|git|nil" :partof "bystar|nil" :copyleft "halaal+minimal|halaal+brief|nil"
typeset RcsId="$Id: dblock-iim-bash.el,v 1.4 2017-02-08 06:42:32 lsipusr Exp $"
# *CopyLeft*
__copying__="
* Libre-Halaal Software"
# This is part of ByStar Libre Services. http://www.by-star.net
# This is a Halaal Poly-Existential. See http://www.freeprotocols.org
####+END:
####+BEGIN: bx:bsip:bash:seed-spec :types "seedFtoCommon.sh"
SEED="
* /[dblock]/ /Seed/ :: [[file:/bisos/core/bsip/bin/seedFtoCommon.sh]] |
"
FILE="
* /This File/ :: /bisos/git/auth/bxRepos/bisos-pip/bootstrap/ftoProc.sh
"
if [ "${loadFiles}" == "" ] ; then
/bisos/core/bsip/bin/seedFtoCommon.sh -l $0 "$@"
exit $?
fi
####+END:
leavesExcludes=""
leavesOrdered=""
nodesExcludes=""
nodesOrdered=""
_CommentBegin_
* [[elisp:(org-cycle)][| ]] [[elisp:(blee:ppmm:org-mode-toggle)][Nat]] [[elisp:(beginning-of-buffer)][Top]] [[elisp:(delete-other-windows)][(1)]] || List :: Leaves List [[elisp:(org-cycle)][| ]]
_CommentEnd_
####+BEGIN: bx:dblock:ploneProc:bash:leavesList :types ""
# {{{ DBLOCK-leavesList
leavesList="
py2
py3
"
# }}} DBLOCK-leavesList
####+END:
_CommentBegin_
* [[elisp:(org-cycle)][| ]] [[elisp:(blee:ppmm:org-mode-toggle)][Nat]] [[elisp:(beginning-of-buffer)][Top]] [[elisp:(delete-other-windows)][(1)]] || List :: Nodes List [[elisp:(org-cycle)][| ]]
_CommentEnd_
#
# For now ftoWalk is restricted to
#
####+BEGIN: bx:dblock:ploneProc:bash:nodesList :types ""
# {{{ DBLOCK-nodesList
nodesList="
"
# }}} DBLOCK-nodesList
####+END:
####+BEGINNOT: bx:dblock:ploneProc:bash:nodesList :types ""
# {{{ DBLOCK-nodesList
nodesListPips="
blee-pip
unisos-pip
roPerf-pip
bisos-pip
"
# }}} DBLOCK-nodesList
####+END:
_CommentBegin_
* [[elisp:(org-cycle)][| ]] [[elisp:(blee:ppmm:org-mode-toggle)][Nat]] [[elisp:(beginning-of-buffer)][Top]] [[elisp:(delete-other-windows)][(1)]] || Cmnd :: examplesHookPostExample [[elisp:(org-cycle)][| ]]
_CommentEnd_
function examplesHookPost {
cat << _EOF_
$( examplesSeperatorTopLabel "EXTENSION EXAMPLES" )
_EOF_
pypiFtpWalks
templatesEvolution
return
}
function pypiFtpWalks {
local pypiProcStartTemplate="/bisos/apps/defaults/software/starts/pypiProc.sh"
local ftoProcNodeStartTemplate="/bisos/apps/defaults/update/fto/start/commonProc/anyFtoItem/ftoProcNode.sh"
cat << _EOF_
$( examplesSeperatorChapter "ftpWalks: Uninstall" )
ftoProc.sh -v -n showRun -i ftoWalkRunCmnd pypiProc.sh -i pkgUnInstall sys
$( examplesSeperatorChapter "PyPi AuxNode ftpWalks" )
ftoProc.sh -v -n showRun -i treeRecurse runFunc pypiProc.sh -i distClean
ftoProc.sh -v -n showRun -i ftoWalkRunCmnd pypiProc.sh -i distClean
ftoProc.sh -v -n showRun -i ftoWalkRunCmnd pypiProc.sh -i pkgInstall edit /bisos/venv/dev-py2-bisos-3
ftoProc.sh -v -n showRun -i ftoWalkRunCmnd pypiProc.sh -i pkgInstall edit sys
ftoProc.sh -v -n showRun -i ftoWalkRunCmnd icmPlayer.sh -i clean ftoProc.sh pypiProc.sh
ftoProc.sh -v -n showRun -i ftoWalkRunCmnd icmPlayer.sh -i pkgedPrep ftoProc.sh pypiProc.sh
$( examplesSeperatorChapter "Under Files Update" )
ftoProc.sh -v -n showRun -i updateUnderFilesTo ${ftoProcNodeStartTemplate} ftoProc.sh
ftoProc.sh -v -n showRun -i updateUnderFilesTo ${pypiProcStartTemplate} pypiProc.sh
_EOF_
return
}
function templatesEvolution {
local ftoProcNodeStartTemplate="/bisos/apps/defaults/update/fto/start/commonProc/anyFtoItem/ftoProcNode.sh"
local panelStartTemplate="/bisos/apps/defaults/update/fto/start/commonProc/anyFtoItem/mainPanel.org"
cat << _EOF_
$( examplesSeperatorSection "ftoProc.sh -- Templates Evolution" )
diff ./ftoProc.sh ${ftoProcNodeStartTemplate}
cp ./ftoProc.sh ${ftoProcNodeStartTemplate}
cp ${ftoProcNodeStartTemplate} ./ftoProc.sh
$( examplesSeperatorSection "commonPanel.org -- Templates Evolution" )
diff ./Panel.org ${panelStartTemplate}
cp ./Panel.org ${panelStartTemplate}
cp ${panelStartTemplate} ./Panel.org
_EOF_
return
}
function vis_updateUnderFilesTo {
G_funcEntry
function describeF { cat << _EOF_
_EOF_
}
EH_assert [[ $# -eq 2 ]]
local updateToFile="$1"
local underFilesName="$2"
if [ ! -f "${updateToFile}" ] ; then
EH_problem "Bad Usage Missing ${updateToFile}"
lpReturn
fi
local underFilesList=$(find . -type f -print | egrep "/${underFilesName}"'$')
for each in ${underFilesList} ; do
opDo cp ${updateToFile} ${each}
opDo bx-dblock -i dblockUpdateFile ${each}
done
lpReturn
}
####+BEGIN: bx:dblock:bash:end-of-file :types ""
_CommentBegin_
* [[elisp:(org-cycle)][| ]] Common :: /[dblock] -- End-Of-File Controls/ [[elisp:(org-cycle)][| ]]
_CommentEnd_
#+STARTUP: showall
#local variables:
#major-mode: sh-mode
#fill-column: 90
# end:
####+END: