@@ -36,7 +36,7 @@ _ub_cksum_special_derivativeScripts_contents() {
36
36
# export ub_setScriptChecksum_disable='true'
37
37
( [[ -e " $0 " .nck ]] || [[ " ${BASH_SOURCE[0]} " != " ${0} " ]] || [[ " $1 " == ' --profile' ]] || [[ " $1 " == ' --script' ]] || [[ " $1 " == ' --call' ]] || [[ " $1 " == ' --return' ]] || [[ " $1 " == ' --devenv' ]] || [[ " $1 " == ' --shell' ]] || [[ " $1 " == ' --bypass' ]] || [[ " $1 " == ' --parent' ]] || [[ " $1 " == ' --embed' ]] || [[ " $1 " == ' --compressed' ]] || [[ " $0 " == " /bin/bash" ]] || [[ " $0 " == " -bash" ]] || [[ " $0 " == " /usr/bin/bash" ]] || [[ " $0 " == " bash" ]] ) && export ub_setScriptChecksum_disable=' true'
38
38
export ub_setScriptChecksum_header=' 2591634041'
39
- export ub_setScriptChecksum_contents=' 3480762536 '
39
+ export ub_setScriptChecksum_contents=' 765495136 '
40
40
41
41
# CAUTION: Symlinks may cause problems. Disable this test for such cases if necessary.
42
42
# WARNING: Performance may be crucial here.
@@ -1447,6 +1447,11 @@ _report_setup_ubcp() {
1447
1447
[[ "$currentCygdriveC_equivalent" == "" ]] && currentCygdriveC_equivalent=$(cygpath -S | sed ' s/\/ Windows\/ System32//g' )
1448
1448
[[ "$1" == "/" ]] && currentCygdriveC_equivalent=$(echo "$PWD" | sed ' s/\(\/ cygdrive\/ [a-zA-Z]* \) .* /\1 /' )
1449
1449
1450
+
1451
+ mkdir -p "$currentCygdriveC_equivalent"/core/infrastructure/
1452
+ #cd "$currentCygdriveC_equivalent"/core/infrastructure/
1453
+
1454
+
1450
1455
find /bin/ /usr/bin/ /sbin/ /usr/sbin/ | tee "$currentCygdriveC_equivalent"/core/infrastructure/ubcp-binReport > /dev/null
1451
1456
1452
1457
@@ -1929,6 +1934,75 @@ _package-cygwin() {
1929
1934
1930
1935
1931
1936
1937
+
1938
+ # Discouraged. Few file paths, some setup, etc, may be different. Otherwise, WSL should not be treated differently.
1939
+ _if_wsl() {
1940
+ uname -a | grep -i ' microsoft' > /dev/null 2>&1 || uname -a | grep -i ' WSL2' > /dev/null 2>&1
1941
+ }
1942
+
1943
+
1944
+
1945
+ # Ingredients. Debian pacakges mirror, docker images, pre-built dist/OS images, etc.
1946
+ _set_ingredients() {
1947
+ export ub_INGREDIENTS=""
1948
+
1949
+ local currentDriveLetter
1950
+
1951
+ if ! _if_cygwin
1952
+ then
1953
+ [[ -e /mnt/ingredients/ingredients ]] && mountpoint /mnt/ingredients && export ub_INGREDIENTS=/mnt/ingredients/ingredients && return 0
1954
+
1955
+ # STRONGLY PREFERRED.
1956
+ [[ -e /mnt/ingredients ]] && mountpoint /mnt/ingredients && export ub_INGREDIENTS=/mnt/ingredients && return 0
1957
+
1958
+ # STRONGLY DISCOURAGED.
1959
+ # Do NOT create "$HOME"/core/ingredients unless for some very unexpected reason it is necessary for a non-root user to use ingredients.
1960
+ [[ -e "$HOME"/core/ingredients ]] && export ub_INGREDIENTS="$HOME"/core/ingredients && return 0
1961
+
1962
+ # WSL(2) specific.
1963
+ #_if_wsl
1964
+ #uname -a | grep -i ' microsoft' > /dev/null 2>&1 || uname -a | grep -i ' WSL2' > /dev/null 2>&1
1965
+ if type _if_wsl > /dev/null 2>&1 && _if_wsl
1966
+ then
1967
+ [[ -e /mnt/host/z/mnt/ingredients ]] && export ub_INGREDIENTS=/mnt/host/z/mnt/ingredients && return 0
1968
+ [[ -e /mnt/z/mnt/ingredients ]] && export ub_INGREDIENTS=/mnt/z/mnt/ingredients && return 0
1969
+ [[ -e /mnt/c/core/ingredients ]] && export ub_INGREDIENTS=/mnt/c/core/ingredients && return 0
1970
+ [[ -e /mnt/host/c/core/ingredients ]] && export ub_INGREDIENTS=/mnt/host/c/core/ingredients && return 0
1971
+ #
1972
+ for currentDriveLetter in d e f g h i j k l m n o p q r s t u v w D E F G H I J K L M N O P Q R S T U V W
1973
+ do
1974
+ [[ -e /mnt/"$currentDriveLetter"/ingredients ]] && export ub_INGREDIENTS=/mnt/"$currentDriveLetter"/ingredients && return 0
1975
+ done
1976
+ if [[ -e /mnt/host ]]
1977
+ then
1978
+ for currentDriveLetter in d e f g h i j k l m n o p q r s t u v w D E F G H I J K L M N O P Q R S T U V W
1979
+ do
1980
+ [[ -e /mnt/host/"$currentDriveLetter"/ingredients ]] && export ub_INGREDIENTS=/mnt/host/"$currentDriveLetter"/ingredients && return 0
1981
+ done
1982
+ fi
1983
+ fi
1984
+ fi
1985
+
1986
+ if _if_cygwin
1987
+ then
1988
+ [[ -e /cygdrive/z/mnt/ingredients ]] && export ub_INGREDIENTS=/cygdrive/z/mnt/ingredients && return 0
1989
+ [[ -e /cygdrive/c/core/ingredients ]] && export ub_INGREDIENTS=/cygdrive/c/core/ingredients && return 0
1990
+ #
1991
+ for currentDriveLetter in d e f g h i j k l m n o p q r s t u v w D E F G H I J K L M N O P Q R S T U V W
1992
+ do
1993
+ [[ -e /cygdrive/"$currentDriveLetter"/ingredients ]] && export ub_INGREDIENTS=/cygdrive/"$currentDriveLetter"/ingredients && return 0
1994
+ done
1995
+ fi
1996
+
1997
+
1998
+
1999
+
2000
+ [[ "$ub_INGREDIENTS" == "" ]] && return 1
2001
+ return 0
2002
+ }
2003
+
2004
+
2005
+
1932
2006
#####Utilities
1933
2007
1934
2008
_test_getAbsoluteLocation_sequence() {
@@ -3644,6 +3718,17 @@ _messagePlain_probe_noindent() {
3644
3718
echo
3645
3719
return 0
3646
3720
}
3721
+ # WARNING: Less track record with very unusual text. May or may not output correctly in some (unknown, unexpected) situations.
3722
+ # DANGER: MUST use this function instead of _messagePlain_probe when text is from external origins!
3723
+ _messagePlain_probe_safe () {
3724
+ _color_begin_probe
3725
+ # _color_begin_probe_noindent
3726
+ # echo -n "$@"
3727
+ _safeEcho " $@ "
3728
+ _color_end
3729
+ echo
3730
+ return
3731
+ }
3647
3732
3648
3733
# Blue. Diagnostic instrumentation.
3649
3734
# "generic/ubiquitousheader.sh"
@@ -5996,6 +6081,12 @@ _deps_dev_heavy_atom() {
5996
6081
export enUb_dev_heavy_atom=" true"
5997
6082
}
5998
6083
6084
+ _deps_dev_buildOps () {
6085
+ _deps_generic
6086
+
6087
+ export enUb_dev_buildOps=" true"
6088
+ }
6089
+
5999
6090
_deps_cloud_heavy () {
6000
6091
_deps_notLean
6001
6092
export enUb_cloud_heavy=" true"
@@ -6847,6 +6938,8 @@ _compile_bash_deps() {
6847
6938
6848
6939
if [[ " $1 " == " lean" ]]
6849
6940
then
6941
+ _deps_dev_buildOps
6942
+
6850
6943
# _deps_git
6851
6944
6852
6945
# _deps_virt_translation
@@ -6865,7 +6958,10 @@ _compile_bash_deps() {
6865
6958
# Specifically intended to be imported into user profile.
6866
6959
if [[ " $1 " == " ubcore" ]]
6867
6960
then
6961
+ _deps_dev_buildOps
6962
+
6868
6963
_deps_notLean
6964
+ _deps_os_x11
6869
6965
6870
6966
_deps_serial
6871
6967
@@ -6924,6 +7020,8 @@ _compile_bash_deps() {
6924
7020
6925
7021
if [[ " $1 " == " cautossh" ]]
6926
7022
then
7023
+ _deps_dev_buildOps
7024
+
6927
7025
_deps_os_x11
6928
7026
_deps_proxy
6929
7027
_deps_proxy_special
@@ -6965,6 +7063,7 @@ _compile_bash_deps() {
6965
7063
if [[ " $1 " == " processor" ]]
6966
7064
then
6967
7065
_deps_dev
7066
+ _deps_dev_buildOps
6968
7067
6969
7068
_deps_generic
6970
7069
@@ -6991,6 +7090,7 @@ _compile_bash_deps() {
6991
7090
if [[ " $1 " == " abstract" ]] || [[ " $1 " == " abstractfs" ]]
6992
7091
then
6993
7092
_deps_dev
7093
+ _deps_dev_buildOps
6994
7094
6995
7095
_deps_python
6996
7096
_deps_haskell
@@ -7017,6 +7117,7 @@ _compile_bash_deps() {
7017
7117
if [[ " $1 " == " fakehome" ]]
7018
7118
then
7019
7119
_deps_dev
7120
+ _deps_dev_buildOps
7020
7121
7021
7122
_deps_python
7022
7123
_deps_haskell
@@ -7045,6 +7146,7 @@ _compile_bash_deps() {
7045
7146
_deps_dev_heavy
7046
7147
# _deps_dev_heavy_atom
7047
7148
_deps_dev
7149
+ _deps_dev_buildOps
7048
7150
7049
7151
# _deps_cloud_heavy
7050
7152
@@ -7150,6 +7252,7 @@ _compile_bash_deps() {
7150
7252
_deps_dev_heavy
7151
7253
# _deps_dev_heavy_atom
7152
7254
_deps_dev
7255
+ _deps_dev_buildOps
7153
7256
7154
7257
# _deps_cloud_heavy
7155
7258
@@ -7187,7 +7290,7 @@ _compile_bash_deps() {
7187
7290
_deps_python
7188
7291
_deps_haskell
7189
7292
7190
- _deps_ai
7293
+ # _deps_ai
7191
7294
_deps_ai_shortuts
7192
7295
7193
7296
_deps_calculators
@@ -7249,12 +7352,19 @@ _compile_bash_deps() {
7249
7352
7250
7353
return 0
7251
7354
fi
7355
+
7356
+ if [[ " $1 " == " core_ai" ]]
7357
+ then
7358
+ _deps_ai
7359
+ _compile_bash_deps ' core'
7360
+ fi
7252
7361
7253
7362
if [[ " $1 " == " " ]] || [[ " $1 " == " ubiquitous_bash" ]] || [[ " $1 " == " ubiquitous_bash.sh" ]] || [[ " $1 " == " complete" ]]
7254
7363
then
7255
7364
_deps_dev_heavy
7256
7365
# _deps_dev_heavy_atom
7257
7366
_deps_dev
7367
+ _deps_dev_buildOps
7258
7368
7259
7369
_deps_cloud_heavy
7260
7370
@@ -7377,6 +7487,9 @@ _compile_bash_header() {
7377
7487
includeScriptList+=( " os/override" /override_prog.sh )
7378
7488
7379
7489
includeScriptList+=( " os/override" /override_cygwin.sh )
7490
+ includeScriptList+=( " os/override" /override_wsl.sh )
7491
+
7492
+ includeScriptList+=( " special" /ingredients.sh )
7380
7493
}
7381
7494
7382
7495
_compile_bash_header_program () {
@@ -7667,6 +7780,7 @@ _compile_bash_shortcuts() {
7667
7780
[[ " $enUb_dev " == " true" ]] && includeScriptList+=( " shortcuts/dev/scope" /devscope_app.sh )
7668
7781
7669
7782
( [[ " $enUb_github " == " true" ]] || [[ " $enUb_notLean " == " true" ]] || [[ " $enUb_cloud " == " true" ]] || [[ " $enUb_cloud_heavy " == " true" ]] || [[ " $enUb_cloud_self " == " true" ]] ) && includeScriptList+=( " shortcuts/github" /github_removeHTTPS.sh )
7783
+ ( [[ " $enUb_github " == " true" ]] || [[ " $enUb_notLean " == " true" ]] || [[ " $enUb_cloud " == " true" ]] || [[ " $enUb_cloud_heavy " == " true" ]] || [[ " $enUb_cloud_self " == " true" ]] ) && includeScriptList+=( " shortcuts/github" /github_upload_parts.sh )
7670
7784
7671
7785
( [[ " $enUb_repo " == " true" ]] && [[ " $enUb_git " == " true" ]] ) && includeScriptList+=( " shortcuts/git" /git.sh )
7672
7786
( [[ " $enUb_repo " == " true" ]] && [[ " $enUb_git " == " true" ]] ) && includeScriptList+=( " shortcuts/git" /gitBare.sh )
@@ -7960,6 +8074,7 @@ _compile_bash_selfHost() {
7960
8074
_compile_bash_overrides () {
7961
8075
export includeScriptList
7962
8076
8077
+ [[ " $enUb_dev_buildOps " == " true" ]] && includeScriptList+=( " build/zSpecial" /build-ops.sh )
7963
8078
7964
8079
includeScriptList+=( " structure" /overrides.sh )
7965
8080
}
@@ -8124,11 +8239,14 @@ _compile_bash() {
8124
8239
includeScriptList+=( " generic" /rottenheader.sh )
8125
8240
# includeScriptList+=( "generic"/minimalheader.sh )
8126
8241
# includeScriptList+=( "generic"/ubiquitousheader.sh )
8242
+
8243
+ includeScriptList+=( " special" /ingredients.sh )
8127
8244
8128
8245
# includeScriptList+=( "os/override"/override.sh )
8129
8246
# includeScriptList+=( "os/override"/override_prog.sh )
8130
8247
8131
8248
# includeScriptList+=( "os/override"/override_cygwin.sh )
8249
+ # includeScriptList+=( "os/override"/override_wsl.sh )
8132
8250
8133
8251
8134
8252
0 commit comments