ff4ff35918
Red Bear OS is a full fork. All sources must be available from git clone with zero network access. Removed gitignore rules that excluded fetched source trees under recipes/*/source/, local/recipes/kde/*/source/, local/recipes/qt/*/source/, and vendor source trees. Build artifacts (target/, build/, source.tar, *.o, *.so) remain excluded. 127291 files added — kernel, relibc, base, bootloader, pkgar, all KDE/Qt frameworks, mesa, wayland, DRM drivers, and every other recipe source.
24 lines
662 B
Plaintext
24 lines
662 B
Plaintext
# Generate an array name for storing the cache for the current session,
|
|
# storing it in fcache_name, then generate the cache for the current
|
|
# directory, or with argument -d clear the cache.
|
|
|
|
[[ $1 = -d ]] && local fcache_name
|
|
|
|
fcache_name=$zfconfig[fcache_$ZFTP_SESSION]
|
|
if [[ -z $fcache_name ]]; then
|
|
local vals
|
|
vals=(${(v)zfconfig[(I)fcache_*]##zftp_fcache_})
|
|
integer i
|
|
while [[ -n ${vals[(r)zftp_fcache_$i]} ]]; do
|
|
(( i++ ))
|
|
done
|
|
fcache_name=zftp_fcache_$i
|
|
zfconfig[fcache_$ZFTP_SESSION]=$fcache_name
|
|
fi
|
|
|
|
if [[ $1 = -d ]]; then
|
|
unset $fcache_name
|
|
elif (( ${(P)#fcache_name} == 0 )); then
|
|
eval "$fcache_name=(\${(f)\"\$(zftp ls)\"})"
|
|
fi
|