penguins-eggs 9.3.20 → 9.3.23
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.oclif.manifest.json +1 -1
- package/README.md +143 -80
- package/conf/derivatives.yaml +32 -31
- package/dist/classes/distro.js +10 -3
- package/dist/classes/pacman.js +3 -3
- package/dist/commands/adapt.js +6 -4
- package/dist/commands/analyze.js +2 -2
- package/dist/commands/calamares.js +9 -4
- package/dist/commands/config.js +7 -4
- package/dist/commands/cuckoo.js +4 -6
- package/dist/commands/dad.js +7 -2
- package/dist/commands/export/deb.js +7 -2
- package/dist/commands/export/iso.js +7 -2
- package/dist/commands/install.js +14 -16
- package/dist/commands/kill.js +4 -2
- package/dist/commands/mom.js +5 -2
- package/dist/commands/produce.js +15 -17
- package/dist/commands/status.js +6 -3
- package/dist/commands/syncfrom.js +6 -6
- package/dist/commands/syncto.js +5 -3
- package/dist/commands/tools/clean.js +4 -2
- package/dist/commands/tools/ppa.js +6 -2
- package/dist/commands/tools/skel.js +5 -6
- package/dist/commands/tools/stat.js +6 -1
- package/dist/commands/tools/yolk.js +4 -2
- package/dist/commands/update.js +4 -2
- package/dist/commands/wardrobe/get.js +8 -4
- package/dist/commands/wardrobe/list.js +8 -4
- package/dist/commands/wardrobe/show.js +9 -4
- package/dist/commands/wardrobe/wear.js +9 -4
- package/dist/lib/dependencies.js +7 -6
- package/package.json +3 -3
- package/scripts/README.md +120 -0
- package/scripts/includes/common.sh +59 -0
- package/scripts/includes/easybashgui +1695 -0
- package/scripts/includes/easybashgui-debug +146 -0
- package/scripts/includes/easybashgui.lib +8039 -0
- package/scripts/includes/easybashlib +550 -0
- package/scripts/includes/easydialog-legacy +163 -0
- package/scripts/mom.sh +56 -0
- /package/scripts/{mom-cli.sh → old-mom-cli.sh} +0 -0
|
@@ -0,0 +1,146 @@
|
|
|
1
|
+
#!/usr/bin/env bash
|
|
2
|
+
#
|
|
3
|
+
#####################################
|
|
4
|
+
#####################################
|
|
5
|
+
#
|
|
6
|
+
# easybashgui "module"
|
|
7
|
+
#
|
|
8
|
+
# This file is intended to be packaged with scripts that use easybashgui.
|
|
9
|
+
#
|
|
10
|
+
# This file will try to source easybashgui_X.X.X.lib, or provide
|
|
11
|
+
# fallback functions, thus avoiding a hard dependency on easybashgui ".lib" file.
|
|
12
|
+
#
|
|
13
|
+
#########################
|
|
14
|
+
#
|
|
15
|
+
# Copyright (C) 2020 Vittorio Cagnetta
|
|
16
|
+
#
|
|
17
|
+
# Author: Vittorio Cagnetta <vaisarger@gmail.com>
|
|
18
|
+
# Author: Christian ? <https://launchpad.net/~cgat-1>
|
|
19
|
+
#
|
|
20
|
+
# This program is free software; you can redistribute it and/or modify
|
|
21
|
+
# it under the terms of the GNU General Public License as published by
|
|
22
|
+
# the Free Software Foundation; version 3 of the License.
|
|
23
|
+
#
|
|
24
|
+
# This program is distributed in the hope that it will be useful,
|
|
25
|
+
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
26
|
+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
27
|
+
# GNU General Public License for more details.
|
|
28
|
+
#
|
|
29
|
+
# You should have received a copy of the GNU General Public License along with this program,
|
|
30
|
+
# called, in this distribution, "EasyBashGUI-license"; if not, write to the
|
|
31
|
+
# Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA.
|
|
32
|
+
#
|
|
33
|
+
#########################
|
|
34
|
+
#
|
|
35
|
+
# There are two easy methods to use easybashgui in your projects.
|
|
36
|
+
#
|
|
37
|
+
# The basic method introduces a hard dependency on easybashgui. This means
|
|
38
|
+
# easybashgui must be installed on the machine your script is running on,
|
|
39
|
+
# or your script will fail with an error. This method only requires to
|
|
40
|
+
# call "source easybashgui" (once) in your script to be able to use
|
|
41
|
+
# easybashgui functions if easybashgui is installed, but will make
|
|
42
|
+
# your script fail without it.
|
|
43
|
+
#
|
|
44
|
+
# The easybashincl method however allows your script to run
|
|
45
|
+
# without easybashgui installed, or even available:
|
|
46
|
+
#
|
|
47
|
+
# 1) Ship a copy of just the "easybashgui" file from the easybashgui
|
|
48
|
+
# package with your script's package.
|
|
49
|
+
# (in same directory as the calling script, or in an includes/ subdirectory)
|
|
50
|
+
# 2) Copy the "easybashincl code snippet" from the "easybashgui" file
|
|
51
|
+
# into your script.
|
|
52
|
+
# 3) Call "eb_incl easybashgui" from your script.
|
|
53
|
+
#
|
|
54
|
+
# If you also include the easybashgui.lib file in your package, and
|
|
55
|
+
# use the easybashincl method, your script will also work with any supported dialog
|
|
56
|
+
# frontend without requiring a separate easybashgui download and installation
|
|
57
|
+
# on the target system.
|
|
58
|
+
|
|
59
|
+
|
|
60
|
+
### INCLUDABLE EASYBASH MODULES ###
|
|
61
|
+
# The easybashincl code snippet below allows easy inclusion of
|
|
62
|
+
# bash scripts from other bash scripts.
|
|
63
|
+
#
|
|
64
|
+
# Unlike the bash builtin "source" (or "."), it does not require the
|
|
65
|
+
# file to be installed in your $PATH.
|
|
66
|
+
#
|
|
67
|
+
# If the requested module (bash script file) is not in the $PATH,
|
|
68
|
+
# the "eb_incl" function will look for it in these places:
|
|
69
|
+
#
|
|
70
|
+
# * same directory as the calling script
|
|
71
|
+
# * includes/ subdirectory
|
|
72
|
+
# * ${SHELL_LIBRARY_PATH}
|
|
73
|
+
#
|
|
74
|
+
# Improvement thanks to Stefano Borini's answer at
|
|
75
|
+
# http://stackoverflow.com/questions/78497/design-patterns-or-best-practices-for-shell-scripts
|
|
76
|
+
#
|
|
77
|
+
#
|
|
78
|
+
###################################################################
|
|
79
|
+
MODULE_VERSION="12.0.4"
|
|
80
|
+
MODULE_NAME="easybashgui-debug"
|
|
81
|
+
###################################################################
|
|
82
|
+
#
|
|
83
|
+
clean_temp()
|
|
84
|
+
{
|
|
85
|
+
local FUNCT_NAME="clean_temp"
|
|
86
|
+
local IFS=$' \t\n'
|
|
87
|
+
#
|
|
88
|
+
if [ -f "${dir_tmp}/${file_tmp}" ] 2> /dev/null
|
|
89
|
+
then
|
|
90
|
+
rm -f "${dir_tmp}/${file_tmp}" 2> /dev/null
|
|
91
|
+
fi
|
|
92
|
+
#
|
|
93
|
+
if [ -f "${dir_tmp}/${file_ignore}" ] 2> /dev/null
|
|
94
|
+
then
|
|
95
|
+
rm -f "${dir_tmp}/${file_ignore}" 2> /dev/null
|
|
96
|
+
fi
|
|
97
|
+
#
|
|
98
|
+
}
|
|
99
|
+
#
|
|
100
|
+
###################################################################
|
|
101
|
+
# Every easybash module should prevent repeated inclusion by
|
|
102
|
+
# starting with an if-clause similar to the following:
|
|
103
|
+
# ( With its proper module-name in the
|
|
104
|
+
# "eb_incl_<module-name>__imported" variable. )
|
|
105
|
+
ebg_debug_check="YES"
|
|
106
|
+
if [ "${ebg_debug_check}" = "YES" ]
|
|
107
|
+
then
|
|
108
|
+
#
|
|
109
|
+
# avoid "easybashgui-debug" repeated inclusion
|
|
110
|
+
if [ "${eb_incl_easybashgui_debug__imported+defined}" = "defined" ]
|
|
111
|
+
then
|
|
112
|
+
#
|
|
113
|
+
[ "${supermode:-unset}" = "unset" ] && declare supermode=""
|
|
114
|
+
#
|
|
115
|
+
if [ ${#supermode} -eq 0 ]
|
|
116
|
+
then
|
|
117
|
+
# Prevent repeated inclusion *only if* ${supermode} is not set ...
|
|
118
|
+
echo "${MODULE_NAME}: ERR: easybashgui-debug not sourced (already sourced)! -supermode not set- ."
|
|
119
|
+
return 0
|
|
120
|
+
fi
|
|
121
|
+
#
|
|
122
|
+
if [ "${supermode}" = "${mode}" ]
|
|
123
|
+
then
|
|
124
|
+
# Prevent repeated inclusion *only if* ${supermode} = ${mode} ...
|
|
125
|
+
echo "${MODULE_NAME}: ERR: easybashgui-debug not sourced (already sourced) -supermode is not different from mode- ."
|
|
126
|
+
return 0
|
|
127
|
+
fi
|
|
128
|
+
#
|
|
129
|
+
fi
|
|
130
|
+
#
|
|
131
|
+
echo -e "...easybashgui-debug sourcing..."
|
|
132
|
+
#
|
|
133
|
+
#eb_incl_easybashgui_debug__imported=1
|
|
134
|
+
eb_incl_easybashgui_debug__imported=please_prevent_next_time
|
|
135
|
+
#
|
|
136
|
+
export easybashgui_debug_mode=YES
|
|
137
|
+
#
|
|
138
|
+
fi
|
|
139
|
+
#
|
|
140
|
+
###################################################################
|
|
141
|
+
|
|
142
|
+
#
|
|
143
|
+
# Now let's source actual functions...
|
|
144
|
+
# =>
|
|
145
|
+
target="easybashgui-debug"
|
|
146
|
+
source easybashgui
|