Add files using upload-large-folder tool
Browse filesThis view is limited to 50 files because it contains too many changes. See raw diff
- git/usr/bin/[.exe +0 -0
- git/usr/bin/getemojis +238 -0
- git/usr/bin/getfacl.exe +0 -0
- git/usr/bin/getflags +164 -0
- git/usr/bin/getnoto +52 -0
- git/usr/bin/getopt.exe +0 -0
- git/usr/bin/gkill.exe +0 -0
- git/usr/bin/gmondump.exe +0 -0
- git/usr/bin/gpg-error.exe +0 -0
- git/usr/bin/gpgparsemail.exe +0 -0
- git/usr/bin/gpgsplit.exe +0 -0
- git/usr/bin/groups.exe +0 -0
- git/usr/bin/gunzip +56 -0
- git/usr/bin/gzexe +240 -0
- git/usr/bin/head.exe +0 -0
- git/usr/bin/hmac256.exe +0 -0
- git/usr/bin/hostid.exe +0 -0
- git/usr/bin/hostname.exe +0 -0
- git/usr/bin/iconv.exe +0 -0
- git/usr/bin/id.exe +0 -0
- git/usr/bin/infocmp.exe +0 -0
- git/usr/bin/infotocap.exe +0 -0
- git/usr/bin/join.exe +0 -0
- git/usr/bin/kill.exe +0 -0
- git/usr/bin/ldd.exe +0 -0
- git/usr/bin/lessecho.exe +0 -0
- git/usr/bin/lesskey.exe +0 -0
- git/usr/bin/link.exe +0 -0
- git/usr/bin/ln.exe +0 -0
- git/usr/bin/locale.exe +0 -0
- git/usr/bin/logname.exe +0 -0
- git/usr/bin/lsattr.exe +0 -0
- git/usr/bin/mac2unix.exe +0 -0
- git/usr/bin/md5sum.exe +0 -0
- git/usr/bin/minidumper.exe +0 -0
- git/usr/bin/mintheme +458 -0
- git/usr/bin/mkdir.exe +0 -0
- git/usr/bin/mkfifo.exe +0 -0
- git/usr/bin/mkgroup.exe +0 -0
- git/usr/bin/mknod.exe +0 -0
- git/usr/bin/mkpasswd.exe +0 -0
- git/usr/bin/mktemp.exe +0 -0
- git/usr/bin/mount.exe +0 -0
- git/usr/bin/mpicalc.exe +0 -0
- git/usr/bin/msys-assuan-9.dll +0 -0
- git/usr/bin/msys-bz2-1.dll +0 -0
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#! /bin/bash
|
| 2 |
+
|
| 3 |
+
trace () {
|
| 4 |
+
# echo $* >&2
|
| 5 |
+
true
|
| 6 |
+
}
|
| 7 |
+
|
| 8 |
+
wgetfirst=false
|
| 9 |
+
#wgetfirst=true
|
| 10 |
+
|
| 11 |
+
case "$1" in
|
| 12 |
+
-sh) postproc=cat
|
| 13 |
+
shift;;
|
| 14 |
+
*) postproc=bash;;
|
| 15 |
+
esac
|
| 16 |
+
|
| 17 |
+
case `basename "$PWD"` in
|
| 18 |
+
mintty)
|
| 19 |
+
echo "You seem to be in a mintty config directory:" >&2
|
| 20 |
+
echo " $PWD" >&2
|
| 21 |
+
echo "For direct emoji deployment, run this script from its subdirectory 'emojis'." >&2
|
| 22 |
+
exit;;
|
| 23 |
+
esac
|
| 24 |
+
|
| 25 |
+
emojisurl0=https://www.unicode.org/emoji/charts/full-emoji-list.html
|
| 26 |
+
emojisurl1=https://www.unicode.org/emoji/charts/full-emoji-modifiers.html
|
| 27 |
+
|
| 28 |
+
download () {
|
| 29 |
+
if $wgetfirst
|
| 30 |
+
then wget -N -t 1 "$1"
|
| 31 |
+
elif type curl
|
| 32 |
+
then # prefer curl because it works better behind proxies
|
| 33 |
+
if [ -f `basename "$1"` ]
|
| 34 |
+
then curl -RO -z `basename "$1"` "$1"
|
| 35 |
+
else # avoid "Warning: Illegal date format for -z"
|
| 36 |
+
curl -RO "$1"
|
| 37 |
+
fi
|
| 38 |
+
else wget -N -t 1 "$1"
|
| 39 |
+
fi ||
|
| 40 |
+
(echo "[41;30mFILE: $1[m" >&2
|
| 41 |
+
echo "[41;30mERROR: download failed, file incomplete[m" >&2
|
| 42 |
+
if [ -f `basename "$1"` ]
|
| 43 |
+
then # enforce fresh download next time
|
| 44 |
+
touch -d 1970-01-01 `basename "$1"`
|
| 45 |
+
fi
|
| 46 |
+
return 9
|
| 47 |
+
)
|
| 48 |
+
}
|
| 49 |
+
|
| 50 |
+
case "$1" in
|
| 51 |
+
""|-h|--help)
|
| 52 |
+
echo "Usage: `basename $0` [-d | DIR | .../full-emoji-list.html] [EMOJI_STYLE]..." >&2
|
| 53 |
+
echo >&2
|
| 54 |
+
echo "This script extracts emojis graphics (.png format) from a downloaded copy of" >&2
|
| 55 |
+
echo " $emojisurl0" >&2
|
| 56 |
+
echo " $emojisurl1" >&2
|
| 57 |
+
echo "for the selected emoji style sets, or (if none selected) all of them:" >&2
|
| 58 |
+
echo " google" >&2
|
| 59 |
+
echo "and always extracts common emoji graphics." >&2
|
| 60 |
+
echo "Other styles are no longer provided at unicode.org:" >&2
|
| 61 |
+
echo " [apple facebook windows twitter emojione samsung]" >&2
|
| 62 |
+
echo >&2
|
| 63 |
+
echo "Options:" >&2
|
| 64 |
+
echo " -d Download the chart files" >&2
|
| 65 |
+
echo " DIR Expect the chart files in given directory" >&2
|
| 66 |
+
echo >&2
|
| 67 |
+
echo "Warning: with all styles selected, this may take a while." >&2
|
| 68 |
+
echo >&2
|
| 69 |
+
if [ `uname` = "Linux" ] && type wslpath 2> /dev/null 1>&2
|
| 70 |
+
then echo "Note: for direct deployment from WSL, first go into the common config directory:" >&2
|
| 71 |
+
echo ' cd `wslpath "$APPDATA/mintty/emojis"` || cd `wslpath "$APPDATA/wsltty/emojis"`' >&2
|
| 72 |
+
else echo "Note: for direct deployment, first go into subdirectory 'emojis' of one of the" >&2
|
| 73 |
+
echo "mintty config directories:" >&2
|
| 74 |
+
echo ' ~/.mintty' >&2
|
| 75 |
+
echo ' ~/.config/mintty' >&2
|
| 76 |
+
echo ' $APPDATA/mintty' >&2
|
| 77 |
+
echo ' /usr/share/mintty' >&2
|
| 78 |
+
fi
|
| 79 |
+
exit;;
|
| 80 |
+
-d|--download)
|
| 81 |
+
if download $emojisurl0 && download $emojisurl1
|
| 82 |
+
then emojis0=full-emoji-list.html
|
| 83 |
+
emojis1=full-emoji-modifiers.html
|
| 84 |
+
else echo Download failed >&2
|
| 85 |
+
exit
|
| 86 |
+
fi
|
| 87 |
+
shift;;
|
| 88 |
+
*.html) emojis1=`dirname "$1"`/full-emoji-modifiers.html
|
| 89 |
+
if [ -r "$1" -a -r "$emojis1" ]
|
| 90 |
+
then emojis0="$1"
|
| 91 |
+
else echo Not readable: "$1" "$emojis1" >&2
|
| 92 |
+
exit
|
| 93 |
+
fi
|
| 94 |
+
shift;;
|
| 95 |
+
*) if [ -d "$1" ]
|
| 96 |
+
then emojis0="$1"/full-emoji-list.html
|
| 97 |
+
emojis1="$1"/full-emoji-modifiers.html
|
| 98 |
+
if [ -r "$emojis0" -a -r "$emojis1" ]
|
| 99 |
+
then true
|
| 100 |
+
else echo Not readable: "$emojis0" "$emojis1" >&2
|
| 101 |
+
exit
|
| 102 |
+
fi
|
| 103 |
+
shift
|
| 104 |
+
else echo Missing file name of full emoji list >&2
|
| 105 |
+
exit
|
| 106 |
+
fi;;
|
| 107 |
+
esac
|
| 108 |
+
|
| 109 |
+
echo -n "Using " >&2
|
| 110 |
+
cat "$emojis0" | sed -e "s,<title>\(.*\)</title>,\1," -e t -e d >&2
|
| 111 |
+
|
| 112 |
+
#cat "$emojis0" |
|
| 113 |
+
#sed -e "/^<\/tr/ q" -e "s/.*<th.*#col-vendor.>\([^.<]*\).*/\1/" -e t -e d |
|
| 114 |
+
#pr -t -n | sed -e "s,^,vendor ," -e 7q
|
| 115 |
+
# 11.0:
|
| 116 |
+
# vendor 1 Appl
|
| 117 |
+
# vendor 2 Goog
|
| 118 |
+
# vendor 3 Twtr
|
| 119 |
+
# vendor 4 One
|
| 120 |
+
# vendor 5 FB
|
| 121 |
+
# vendor 6 Sams
|
| 122 |
+
# vendor 7 Wind
|
| 123 |
+
# 12.0:
|
| 124 |
+
# vendor 1 Appl
|
| 125 |
+
# vendor 2 Goog
|
| 126 |
+
# vendor 3 FB
|
| 127 |
+
# vendor 4 Wind
|
| 128 |
+
# vendor 5 Twtr
|
| 129 |
+
# vendor 6 Joy
|
| 130 |
+
# vendor 7 Sams
|
| 131 |
+
|
| 132 |
+
seli=0
|
| 133 |
+
styles=(common)
|
| 134 |
+
for vendor in `cat "$emojis0" |
|
| 135 |
+
sed -e "/^<\/tr/ q" -e "s/.*<th.*#col-vendor.>\([^.<]*\).*/\1/" -e t -e d |
|
| 136 |
+
sed -e 7q`
|
| 137 |
+
do seli=`expr $seli + 1`
|
| 138 |
+
case "$vendor" in
|
| 139 |
+
Appl) st=apple; apple=$seli;;
|
| 140 |
+
Sample|Goog) st=google; google=$seli;;
|
| 141 |
+
FB) st=facebook; facebook=$seli;;
|
| 142 |
+
Wind) st=windows; windows=$seli;;
|
| 143 |
+
Twtr) st=twitter; twitter=$seli;;
|
| 144 |
+
One|Joy) st=emojione; emojione=$seli;;
|
| 145 |
+
Sams) st=samsung; samsung=$seli;;
|
| 146 |
+
esac
|
| 147 |
+
styles[$seli]=$st
|
| 148 |
+
done
|
| 149 |
+
|
| 150 |
+
case "$1" in
|
| 151 |
+
"") #set - apple google facebook windows twitter emojione samsung
|
| 152 |
+
set - google
|
| 153 |
+
;;
|
| 154 |
+
esac
|
| 155 |
+
sel=
|
| 156 |
+
while case "$1" in
|
| 157 |
+
apple) seli="$apple";;
|
| 158 |
+
google) seli="$google";;
|
| 159 |
+
facebook) seli="$facebook";;
|
| 160 |
+
windows) seli="$windows";;
|
| 161 |
+
twitter) seli="$twitter";;
|
| 162 |
+
joy|emojione) seli="$emojione";;
|
| 163 |
+
samsung) seli="$samsung";;
|
| 164 |
+
"") false;;
|
| 165 |
+
*) echo emoji set "$1" not known; exit;;
|
| 166 |
+
esac
|
| 167 |
+
do sel="$sel$seli"
|
| 168 |
+
mkdir -p "$1"
|
| 169 |
+
shift
|
| 170 |
+
done
|
| 171 |
+
mkdir -p common google
|
| 172 |
+
|
| 173 |
+
export sel
|
| 174 |
+
|
| 175 |
+
echo "Warning: this may take a while on Cygwin" >&2
|
| 176 |
+
|
| 177 |
+
LC_ALL=C
|
| 178 |
+
export LC_ALL
|
| 179 |
+
|
| 180 |
+
total=`grep -e "name='\([^']*\)'.*U+" "$emojis0" "$emojis1" | wc -l`
|
| 181 |
+
export total
|
| 182 |
+
|
| 183 |
+
(
|
| 184 |
+
echo "Extracting $total emojis " >&2
|
| 185 |
+
|
| 186 |
+
echo LC_ALL=C
|
| 187 |
+
echo export LC_ALL
|
| 188 |
+
echo total=$total
|
| 189 |
+
echo sel=$sel
|
| 190 |
+
echo "styles=(${styles[*]})"
|
| 191 |
+
|
| 192 |
+
cat <<\/EOS
|
| 193 |
+
n=0
|
| 194 |
+
|
| 195 |
+
name () {
|
| 196 |
+
ename=$1
|
| 197 |
+
style=0
|
| 198 |
+
n=$(( $n + 1 ))
|
| 199 |
+
p=$(( ${n}00 / $total ))
|
| 200 |
+
echo "emoji $ename (${p}%)" >&2
|
| 201 |
+
}
|
| 202 |
+
|
| 203 |
+
img0 () {
|
| 204 |
+
echo " common $ename.png" >&2
|
| 205 |
+
echo "$1" | base64 -d > common/$ename.png
|
| 206 |
+
}
|
| 207 |
+
|
| 208 |
+
imgg () {
|
| 209 |
+
echo " google $ename.png" >&2
|
| 210 |
+
echo "$1" | base64 -d > google/$ename.png
|
| 211 |
+
}
|
| 212 |
+
|
| 213 |
+
img () {
|
| 214 |
+
style=$(( $style + 1 ))
|
| 215 |
+
case $sel in
|
| 216 |
+
*$style*) echo "$1" | base64 -d > ${styles[$style]}/$ename.png;;
|
| 217 |
+
esac
|
| 218 |
+
}
|
| 219 |
+
|
| 220 |
+
imgskip () {
|
| 221 |
+
style=$(( $style + 1 ))
|
| 222 |
+
case $sel in
|
| 223 |
+
*$style*) echo " skip ${styles[$style]}/$ename.png" >&2;;
|
| 224 |
+
esac
|
| 225 |
+
}
|
| 226 |
+
|
| 227 |
+
/EOS
|
| 228 |
+
|
| 229 |
+
cat "$emojis0" "$emojis1" |
|
| 230 |
+
sed -e "s/^.*name='\([^']*\)'.*U+.*/name \1/" -e "t name" \
|
| 231 |
+
-e "s/.*—.*/imgskip/" -e t \
|
| 232 |
+
-e "s@^.*….*src='data:image/png;base64,\([^']*\)'.*src='data:image/png;base64,\([^']*\)'.*@imgg \1\nimg0 \2@" -e t \
|
| 233 |
+
-e "s@^.*….*src='data:image/png;base64,\([^']*\)'.*@img0 \1@" -e t \
|
| 234 |
+
-e "s@^.*src='data:image/png;base64,\([^']*\)'.*@img \1@" -e t \
|
| 235 |
+
-e d \
|
| 236 |
+
-e ": name" \
|
| 237 |
+
-e "s,_,-,g"
|
| 238 |
+
) | $postproc
|
git/usr/bin/getfacl.exe
ADDED
|
Binary file (28.8 kB). View file
|
|
|
git/usr/bin/getflags
ADDED
|
@@ -0,0 +1,164 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#! /bin/dash
|
| 2 |
+
|
| 3 |
+
# this script is 20% faster with dash than with bash
|
| 4 |
+
|
| 5 |
+
#############################################################################
|
| 6 |
+
# download function
|
| 7 |
+
|
| 8 |
+
download_noto () {
|
| 9 |
+
|
| 10 |
+
# download noto third-party region flags
|
| 11 |
+
if [ -d noto-emoji-flags ]
|
| 12 |
+
then if [ -d noto-emoji-flags/.git ]
|
| 13 |
+
then (cd noto-emoji-flags; git pull)
|
| 14 |
+
else echo WARNING: directory noto-emoji-flags already exists but no git config - Exit
|
| 15 |
+
exit 9
|
| 16 |
+
fi
|
| 17 |
+
else
|
| 18 |
+
notogit=https://github.com/googlefonts/noto-emoji
|
| 19 |
+
git clone --depth 1 -n --filter=blob:none $notogit noto-emoji-flags
|
| 20 |
+
(cd noto-emoji-flags
|
| 21 |
+
git sparse-checkout set --no-cone third_party/region-flags/png
|
| 22 |
+
git checkout
|
| 23 |
+
)
|
| 24 |
+
fi
|
| 25 |
+
(cd noto-emoji-flags; rm -f *.png; ln third_party/region-flags/png/*.png ./)
|
| 26 |
+
|
| 27 |
+
}
|
| 28 |
+
|
| 29 |
+
download_other () {
|
| 30 |
+
|
| 31 |
+
# download Puellanivis’ flag emojis
|
| 32 |
+
if [ -d puellanivis-flags ]
|
| 33 |
+
then if [ -d puellanivis-flags/.git ]
|
| 34 |
+
then (cd puellanivis-flags; git pull)
|
| 35 |
+
else echo WARNING: directory puellanivis-flags already exists but no git config - Exit
|
| 36 |
+
exit 9
|
| 37 |
+
fi
|
| 38 |
+
else
|
| 39 |
+
puelgit=https://github.com/puellanivis/emoji.git
|
| 40 |
+
git clone --depth 1 $puelgit puellanivis-flags
|
| 41 |
+
fi
|
| 42 |
+
(cd puellanivis-flags; rm -f *.png; ln flags/*.png flags/*/*.png ./)
|
| 43 |
+
|
| 44 |
+
}
|
| 45 |
+
|
| 46 |
+
download () {
|
| 47 |
+
download_noto
|
| 48 |
+
|
| 49 |
+
# drop download of old Google region flags
|
| 50 |
+
#git clone --depth 1 https://github.com/google/region-flags.git google-region-flags &&
|
| 51 |
+
#ln google-region-flags/png/*.png google-region-flags/
|
| 52 |
+
|
| 53 |
+
download_other
|
| 54 |
+
}
|
| 55 |
+
|
| 56 |
+
#############################################################################
|
| 57 |
+
# extract emoji files:
|
| 58 |
+
# pre-deploy them with proper filename, according to codepoint pattern
|
| 59 |
+
|
| 60 |
+
extract () {
|
| 61 |
+
mkdir -p common
|
| 62 |
+
|
| 63 |
+
for f in `ls *-flags/*.png`
|
| 64 |
+
do e=${f##*/}
|
| 65 |
+
e=${e%.png}
|
| 66 |
+
if [ -n "$BASH_VERSION" ]
|
| 67 |
+
then
|
| 68 |
+
e=${e//-}
|
| 69 |
+
e=${e//\'}
|
| 70 |
+
#else filter them out by missing case below
|
| 71 |
+
fi
|
| 72 |
+
case $e in
|
| 73 |
+
??) # 1F1E6 1F1E8 ; RGI_Emoji_Flag_Sequence
|
| 74 |
+
tagseq=false;;
|
| 75 |
+
*) # 1F3F4 E0067 E0062 E0065 E006E E0067 E007F; RGI_Emoji_Tag_Sequence; flag: England
|
| 76 |
+
tagseq=true;;
|
| 77 |
+
esac
|
| 78 |
+
if $tagseq
|
| 79 |
+
then n=1f3f4
|
| 80 |
+
else n=
|
| 81 |
+
fi
|
| 82 |
+
# speed-up possible by using a common sed script...
|
| 83 |
+
for l in $( echo "$e" | tr 'A-Z' 'a-z' | sed -e 's,.,& ,g' )
|
| 84 |
+
do d=$( printf %d "'$l'" )
|
| 85 |
+
if $tagseq
|
| 86 |
+
then case "$l" in
|
| 87 |
+
[a-z]|[0-9])
|
| 88 |
+
d=$(( $d + 917504 ))
|
| 89 |
+
n=$n-$( printf %x $d )
|
| 90 |
+
;;
|
| 91 |
+
#[a-z]) d=$(( $d - 97 + 917601 )) # 'a' -> U+E0061 ...
|
| 92 |
+
# n=$n-$( printf %x $d )
|
| 93 |
+
# ;;
|
| 94 |
+
#[0-9]) d=$(( $d - 48 + 917552 )) # '0' -> U+E0030 ...
|
| 95 |
+
# n=$n-$( printf %x $d )
|
| 96 |
+
# ;;
|
| 97 |
+
esac
|
| 98 |
+
else d=$(( $d - 97 + 127462 )) # U+1F1E6
|
| 99 |
+
n=$n-$( printf %x $d )
|
| 100 |
+
fi
|
| 101 |
+
done
|
| 102 |
+
if $tagseq
|
| 103 |
+
then n=$n-e007f.png
|
| 104 |
+
else n=${n#-}.png
|
| 105 |
+
fi
|
| 106 |
+
|
| 107 |
+
echo "$f -> common/$n"
|
| 108 |
+
if [ -L "$f" ]
|
| 109 |
+
then # linking a symbolic link while renaming the target
|
| 110 |
+
# would yield a dangling link, so copy it
|
| 111 |
+
cp "$f" "common/$n"
|
| 112 |
+
else ln "$f" "common/$n"
|
| 113 |
+
fi
|
| 114 |
+
done
|
| 115 |
+
}
|
| 116 |
+
|
| 117 |
+
#############################################################################
|
| 118 |
+
# perform download and extraction/deployment
|
| 119 |
+
|
| 120 |
+
case "$1" in
|
| 121 |
+
""|-h|--help)
|
| 122 |
+
echo "Usage: `basename $0` [-d | -e | -de]" >&2
|
| 123 |
+
echo >&2
|
| 124 |
+
echo "This script retrieves flag emojis from various sources." >&2
|
| 125 |
+
echo >&2
|
| 126 |
+
echo "Options:" >&2
|
| 127 |
+
echo " -d Download flags emojis repositories" >&2
|
| 128 |
+
echo " -n Download only Noto flags" >&2
|
| 129 |
+
echo " -e Extract emoji files with proper filenames into common/" >&2
|
| 130 |
+
echo " -de -d and -e" >&2
|
| 131 |
+
echo " -ne -n and -e" >&2
|
| 132 |
+
echo >&2
|
| 133 |
+
if [ `uname` = "Linux" ] && type wslpath 2> /dev/null 1>&2
|
| 134 |
+
then echo "Note: for direct deployment from WSL, first go into the common config directory:" >&2
|
| 135 |
+
echo ' cd `wslpath "$APPDATA/mintty/emojis"` || cd `wslpath "$APPDATA/wsltty/emojis"`' >&2
|
| 136 |
+
else echo "Note: for direct deployment, first go into subdirectory 'emojis' of one of the" >&2
|
| 137 |
+
echo "mintty config directories:" >&2
|
| 138 |
+
echo ' ~/.mintty' >&2
|
| 139 |
+
echo ' ~/.config/mintty' >&2
|
| 140 |
+
echo ' $APPDATA/mintty' >&2
|
| 141 |
+
echo ' /usr/share/mintty' >&2
|
| 142 |
+
fi
|
| 143 |
+
exit;;
|
| 144 |
+
-n|--download-noto)
|
| 145 |
+
download_noto
|
| 146 |
+
;;
|
| 147 |
+
-ne|--noto)
|
| 148 |
+
download_noto
|
| 149 |
+
extract
|
| 150 |
+
;;
|
| 151 |
+
-d|--download)
|
| 152 |
+
download
|
| 153 |
+
;;
|
| 154 |
+
-e|--extract)
|
| 155 |
+
extract
|
| 156 |
+
;;
|
| 157 |
+
-de|--all)
|
| 158 |
+
download
|
| 159 |
+
extract
|
| 160 |
+
;;
|
| 161 |
+
esac
|
| 162 |
+
|
| 163 |
+
#############################################################################
|
| 164 |
+
# end
|
git/usr/bin/getnoto
ADDED
|
@@ -0,0 +1,52 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#! /bin/sh
|
| 2 |
+
|
| 3 |
+
tag=
|
| 4 |
+
case "$1" in
|
| 5 |
+
--tag) tag="--branch $2";;
|
| 6 |
+
esac
|
| 7 |
+
|
| 8 |
+
#############################################################################
|
| 9 |
+
# download Noto font emojis
|
| 10 |
+
|
| 11 |
+
if [ -d noto-emojis ]
|
| 12 |
+
then if [ -d noto-emojis/.git ]
|
| 13 |
+
then (cd noto-emojis; git pull)
|
| 14 |
+
else echo WARNING: directory noto-emojis already exists but no git config - Exit
|
| 15 |
+
exit 9
|
| 16 |
+
fi
|
| 17 |
+
else
|
| 18 |
+
notogit=https://github.com/googlefonts/noto-emoji
|
| 19 |
+
if git clone $tag --depth 1 -n --filter=blob:none $notogit noto-emojis
|
| 20 |
+
then true
|
| 21 |
+
else echo WARNING: given git tag $tag not found - Exit
|
| 22 |
+
exit 9
|
| 23 |
+
fi
|
| 24 |
+
(cd noto-emojis
|
| 25 |
+
git sparse-checkout set --no-cone png/128 third_party/region-flags/png
|
| 26 |
+
git checkout
|
| 27 |
+
)
|
| 28 |
+
fi
|
| 29 |
+
(mkdir -p noto; rm -f noto/*.png; ln noto-emojis/png/128/*.png noto/)
|
| 30 |
+
|
| 31 |
+
#############################################################################
|
| 32 |
+
# download Noto third-party flags emojis
|
| 33 |
+
# like getflags -n but use same repository
|
| 34 |
+
|
| 35 |
+
if [ -d noto-emoji-flags ]
|
| 36 |
+
then if [ -d noto-emoji-flags/.git ]
|
| 37 |
+
then (cd noto-emoji-flags; git pull)
|
| 38 |
+
else echo WARNING: directory noto-emoji-flags already exists but no git config - Exit
|
| 39 |
+
exit 9
|
| 40 |
+
fi
|
| 41 |
+
else
|
| 42 |
+
ln -s noto-emojis noto-emoji-flags
|
| 43 |
+
fi
|
| 44 |
+
(cd noto-emoji-flags; rm -f *.png; ln third_party/region-flags/png/*.png ./)
|
| 45 |
+
|
| 46 |
+
#############################################################################
|
| 47 |
+
# download rename Noto third-party flags
|
| 48 |
+
|
| 49 |
+
`dirname $0`/getflags -e
|
| 50 |
+
|
| 51 |
+
#############################################################################
|
| 52 |
+
# end
|
git/usr/bin/getopt.exe
ADDED
|
Binary file (29.4 kB). View file
|
|
|
git/usr/bin/gkill.exe
ADDED
|
Binary file (36.6 kB). View file
|
|
|
git/usr/bin/gmondump.exe
ADDED
|
Binary file (28.1 kB). View file
|
|
|
git/usr/bin/gpg-error.exe
ADDED
|
Binary file (36.8 kB). View file
|
|
|
git/usr/bin/gpgparsemail.exe
ADDED
|
Binary file (28 kB). View file
|
|
|
git/usr/bin/gpgsplit.exe
ADDED
|
Binary file (65.5 kB). View file
|
|
|
git/usr/bin/groups.exe
ADDED
|
Binary file (36.6 kB). View file
|
|
|
git/usr/bin/gunzip
ADDED
|
@@ -0,0 +1,56 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/bin/sh
|
| 2 |
+
# Uncompress files. This is the inverse of gzip.
|
| 3 |
+
|
| 4 |
+
# Copyright (C) 2007, 2010-2025 Free Software Foundation, Inc.
|
| 5 |
+
|
| 6 |
+
# This program is free software; you can redistribute it and/or modify
|
| 7 |
+
# it under the terms of the GNU General Public License as published by
|
| 8 |
+
# the Free Software Foundation; either version 3 of the License, or
|
| 9 |
+
# (at your option) any later version.
|
| 10 |
+
|
| 11 |
+
# This program is distributed in the hope that it will be useful,
|
| 12 |
+
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
| 13 |
+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
| 14 |
+
# GNU General Public License for more details.
|
| 15 |
+
|
| 16 |
+
# You should have received a copy of the GNU General Public License
|
| 17 |
+
# along with this program. If not, see <https://www.gnu.org/licenses/>.
|
| 18 |
+
|
| 19 |
+
version="gunzip (gzip) 1.14
|
| 20 |
+
Copyright (C) 2025 Free Software Foundation, Inc.
|
| 21 |
+
This is free software. You may redistribute copies of it under the terms of
|
| 22 |
+
the GNU General Public License <https://www.gnu.org/licenses/gpl.html>.
|
| 23 |
+
There is NO WARRANTY, to the extent permitted by law.
|
| 24 |
+
|
| 25 |
+
Written by Paul Eggert."
|
| 26 |
+
|
| 27 |
+
usage="Usage: $0 [OPTION]... [FILE]...
|
| 28 |
+
Uncompress FILEs (by default, in-place).
|
| 29 |
+
|
| 30 |
+
Mandatory arguments to long options are mandatory for short options too.
|
| 31 |
+
|
| 32 |
+
-c, --stdout write on standard output, keep original files unchanged
|
| 33 |
+
-f, --force force overwrite of output file and compress links
|
| 34 |
+
-k, --keep keep (don't delete) input files
|
| 35 |
+
-l, --list list compressed file contents
|
| 36 |
+
-n, --no-name do not save or restore the original name and timestamp
|
| 37 |
+
-N, --name save or restore the original name and timestamp
|
| 38 |
+
-q, --quiet suppress all warnings
|
| 39 |
+
-r, --recursive operate recursively on directories
|
| 40 |
+
-S, --suffix=SUF use suffix SUF on compressed files
|
| 41 |
+
--synchronous synchronous output (safer if system crashes, but slower)
|
| 42 |
+
-t, --test test compressed file integrity
|
| 43 |
+
-v, --verbose verbose mode
|
| 44 |
+
--help display this help and exit
|
| 45 |
+
--version display version information and exit
|
| 46 |
+
|
| 47 |
+
With no FILE, or when FILE is -, read standard input.
|
| 48 |
+
|
| 49 |
+
Report bugs to <bug-gzip@gnu.org>."
|
| 50 |
+
|
| 51 |
+
case $1 in
|
| 52 |
+
--help) printf '%s\n' "$usage" || exit 1; exit;;
|
| 53 |
+
--version) printf '%s\n' "$version" || exit 1; exit;;
|
| 54 |
+
esac
|
| 55 |
+
|
| 56 |
+
exec gzip -d "$@"
|
git/usr/bin/gzexe
ADDED
|
@@ -0,0 +1,240 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/bin/sh
|
| 2 |
+
# gzexe: compressor for Unix executables.
|
| 3 |
+
# Use this only for binaries that you do not use frequently.
|
| 4 |
+
#
|
| 5 |
+
# The compressed version is a shell script which decompresses itself after
|
| 6 |
+
# skipping $skip lines of shell commands. We try invoking the compressed
|
| 7 |
+
# executable with the original name (for programs looking at their name).
|
| 8 |
+
# We also try to retain the original file permissions on the compressed file.
|
| 9 |
+
# For safety reasons, gzexe will not create setuid or setgid shell scripts.
|
| 10 |
+
|
| 11 |
+
# WARNING: the first line of this file must be either : or #!/bin/sh
|
| 12 |
+
# The : is required for some old versions of csh.
|
| 13 |
+
# On Ultrix, /bin/sh is too buggy, change the first line to: #!/bin/sh5
|
| 14 |
+
|
| 15 |
+
|
| 16 |
+
# Copyright (C) 1998, 2002, 2004, 2006-2007, 2010-2025 Free Software
|
| 17 |
+
# Foundation, Inc.
|
| 18 |
+
# Copyright (C) 1993 Jean-loup Gailly
|
| 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; either version 3 of the License, or
|
| 23 |
+
# (at your option) any later version.
|
| 24 |
+
|
| 25 |
+
# This program is distributed in the hope that it will be useful,
|
| 26 |
+
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
| 27 |
+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
| 28 |
+
# GNU General Public License for more details.
|
| 29 |
+
|
| 30 |
+
# You should have received a copy of the GNU General Public License
|
| 31 |
+
# along with this program. If not, see <https://www.gnu.org/licenses/>.
|
| 32 |
+
|
| 33 |
+
tab=' '
|
| 34 |
+
nl='
|
| 35 |
+
'
|
| 36 |
+
IFS=" $tab$nl"
|
| 37 |
+
|
| 38 |
+
version='gzexe (gzip) 1.14
|
| 39 |
+
Copyright (C) 2025 Free Software Foundation, Inc.
|
| 40 |
+
This is free software. You may redistribute copies of it under the terms of
|
| 41 |
+
the GNU General Public License <https://www.gnu.org/licenses/gpl.html>.
|
| 42 |
+
There is NO WARRANTY, to the extent permitted by law.
|
| 43 |
+
|
| 44 |
+
Written by Jean-loup Gailly.'
|
| 45 |
+
|
| 46 |
+
usage="Usage: $0 [OPTION] FILE...
|
| 47 |
+
Replace each executable FILE with a compressed version of itself.
|
| 48 |
+
Make a backup FILE~ of the old version of FILE.
|
| 49 |
+
|
| 50 |
+
-d Decompress each FILE instead of compressing it.
|
| 51 |
+
--help display this help and exit
|
| 52 |
+
--version output version information and exit
|
| 53 |
+
|
| 54 |
+
Report bugs to <bug-gzip@gnu.org>."
|
| 55 |
+
|
| 56 |
+
decomp=0
|
| 57 |
+
res=0
|
| 58 |
+
while :; do
|
| 59 |
+
case $1 in
|
| 60 |
+
-d) decomp=1; shift;;
|
| 61 |
+
--h*) printf '%s\n' "$usage" || exit 1; exit;;
|
| 62 |
+
--v*) printf '%s\n' "$version" || exit 1; exit;;
|
| 63 |
+
--) shift; break;;
|
| 64 |
+
*) break;;
|
| 65 |
+
esac
|
| 66 |
+
done
|
| 67 |
+
|
| 68 |
+
if test $# -eq 0; then
|
| 69 |
+
printf >&2 '%s\n' "$0: missing operand
|
| 70 |
+
Try \`$0 --help' for more information."
|
| 71 |
+
exit 1
|
| 72 |
+
fi
|
| 73 |
+
|
| 74 |
+
tmp=
|
| 75 |
+
trap 'res=$?
|
| 76 |
+
test -n "$tmp" && rm -f "$tmp"
|
| 77 |
+
(exit $res); exit $res
|
| 78 |
+
' 0 1 2 3 5 10 13 15
|
| 79 |
+
|
| 80 |
+
mktemp_status=
|
| 81 |
+
|
| 82 |
+
for i do
|
| 83 |
+
case $i in
|
| 84 |
+
-*) file=./$i;;
|
| 85 |
+
*) file=$i;;
|
| 86 |
+
esac
|
| 87 |
+
if test ! -f "$file" || test ! -r "$file"; then
|
| 88 |
+
res=$?
|
| 89 |
+
printf >&2 '%s\n' "$0: $i is not a readable regular file"
|
| 90 |
+
continue
|
| 91 |
+
fi
|
| 92 |
+
if test $decomp -eq 0; then
|
| 93 |
+
case `LC_ALL=C sed -n -e 1d -e '/^skip=[0-9][0-9]*$/p' -e 2q "$file"` in
|
| 94 |
+
skip=[0-9] | skip=[0-9][0-9] | skip=[0-9][0-9][0-9])
|
| 95 |
+
printf >&2 '%s\n' "$0: $i is already gzexe'd"
|
| 96 |
+
continue;;
|
| 97 |
+
esac
|
| 98 |
+
fi
|
| 99 |
+
if test -u "$file"; then
|
| 100 |
+
printf >&2 '%s\n' "$0: $i has setuid permission, unchanged"
|
| 101 |
+
continue
|
| 102 |
+
fi
|
| 103 |
+
if test -g "$file"; then
|
| 104 |
+
printf >&2 '%s\n' "$0: $i has setgid permission, unchanged"
|
| 105 |
+
continue
|
| 106 |
+
fi
|
| 107 |
+
case /$file in
|
| 108 |
+
*/basename | */bash | */cat | */chmod | */cp | \
|
| 109 |
+
*/dirname | */expr | */gzip | \
|
| 110 |
+
*/ln | */mkdir | */mktemp | */mv | */printf | */rm | \
|
| 111 |
+
*/sed | */sh | */sleep | */test | */tail)
|
| 112 |
+
printf >&2 '%s\n' "$0: $i might depend on itself"; continue;;
|
| 113 |
+
esac
|
| 114 |
+
|
| 115 |
+
dir=`dirname "$file"` || dir=$TMPDIR
|
| 116 |
+
test -d "$dir" && test -w "$dir" && test -x "$dir" || dir=/tmp
|
| 117 |
+
test -n "$tmp" && rm -f "$tmp"
|
| 118 |
+
if test -z "$mktemp_status"; then
|
| 119 |
+
command -v mktemp >/dev/null 2>&1
|
| 120 |
+
mktemp_status=$?
|
| 121 |
+
fi
|
| 122 |
+
case $dir in
|
| 123 |
+
*/) ;;
|
| 124 |
+
*) dir=$dir/;;
|
| 125 |
+
esac
|
| 126 |
+
if test $mktemp_status -eq 0; then
|
| 127 |
+
tmp=`mktemp "${dir}gzexeXXXXXXXXX"`
|
| 128 |
+
else
|
| 129 |
+
tmp=${dir}gzexe$$
|
| 130 |
+
fi && { cp -p "$file" "$tmp" 2>/dev/null || cp "$file" "$tmp"; } || {
|
| 131 |
+
res=$?
|
| 132 |
+
printf >&2 '%s\n' "$0: cannot copy $file"
|
| 133 |
+
continue
|
| 134 |
+
}
|
| 135 |
+
if test -w "$tmp"; then
|
| 136 |
+
writable=1
|
| 137 |
+
else
|
| 138 |
+
writable=0
|
| 139 |
+
chmod u+w "$tmp" || {
|
| 140 |
+
res=$?
|
| 141 |
+
printf >&2 '%s\n' "$0: cannot chmod $tmp"
|
| 142 |
+
continue
|
| 143 |
+
}
|
| 144 |
+
fi
|
| 145 |
+
if test $decomp -eq 0; then
|
| 146 |
+
(cat <<'EOF' &&
|
| 147 |
+
#!/bin/sh
|
| 148 |
+
skip=49
|
| 149 |
+
|
| 150 |
+
tab=' '
|
| 151 |
+
nl='
|
| 152 |
+
'
|
| 153 |
+
IFS=" $tab$nl"
|
| 154 |
+
|
| 155 |
+
umask=`umask`
|
| 156 |
+
umask 77
|
| 157 |
+
|
| 158 |
+
gztmpdir=
|
| 159 |
+
trap 'res=$?
|
| 160 |
+
test -n "$gztmpdir" && rm -fr "$gztmpdir"
|
| 161 |
+
(exit $res); exit $res
|
| 162 |
+
' 0 1 2 3 5 10 13 15
|
| 163 |
+
|
| 164 |
+
case $TMPDIR in
|
| 165 |
+
/ | /*/) ;;
|
| 166 |
+
/*) TMPDIR=$TMPDIR/;;
|
| 167 |
+
*) TMPDIR=/tmp/;;
|
| 168 |
+
esac
|
| 169 |
+
if command -v mktemp >/dev/null 2>&1; then
|
| 170 |
+
gztmpdir=`mktemp -d "${TMPDIR}gztmpXXXXXXXXX"`
|
| 171 |
+
else
|
| 172 |
+
gztmpdir=${TMPDIR}gztmp$$; mkdir $gztmpdir
|
| 173 |
+
fi || { (exit 127); exit 127; }
|
| 174 |
+
|
| 175 |
+
gztmp=$gztmpdir/$0
|
| 176 |
+
case $0 in
|
| 177 |
+
-* | */*'
|
| 178 |
+
') mkdir -p "$gztmp" && rm -r "$gztmp";;
|
| 179 |
+
*/*) gztmp=$gztmpdir/`basename "$0"`;;
|
| 180 |
+
esac || { (exit 127); exit 127; }
|
| 181 |
+
|
| 182 |
+
case `printf 'X\n' | tail -n +1 2>/dev/null` in
|
| 183 |
+
X) tail_n=-n;;
|
| 184 |
+
*) tail_n=;;
|
| 185 |
+
esac
|
| 186 |
+
if tail $tail_n +$skip <"$0" | gzip -cd > "$gztmp"; then
|
| 187 |
+
umask $umask
|
| 188 |
+
chmod 700 "$gztmp"
|
| 189 |
+
(sleep 5; rm -fr "$gztmpdir") 2>/dev/null &
|
| 190 |
+
"$gztmp" ${1+"$@"}; res=$?
|
| 191 |
+
else
|
| 192 |
+
printf >&2 '%s\n' "Cannot decompress $0"
|
| 193 |
+
(exit 127); res=127
|
| 194 |
+
fi; exit $res
|
| 195 |
+
EOF
|
| 196 |
+
gzip -cv9 "$file") > "$tmp" || {
|
| 197 |
+
res=$?
|
| 198 |
+
printf >&2 '%s\n' "$0: compression not possible for $i, file unchanged."
|
| 199 |
+
continue
|
| 200 |
+
}
|
| 201 |
+
|
| 202 |
+
else
|
| 203 |
+
# decompression
|
| 204 |
+
skip=44
|
| 205 |
+
skip_line=`LC_ALL=C sed -e 1d -e 2q "$file"`
|
| 206 |
+
case $skip_line in
|
| 207 |
+
skip=[0-9] | skip=[0-9][0-9] | skip=[0-9][0-9][0-9])
|
| 208 |
+
eval "$skip_line";;
|
| 209 |
+
esac
|
| 210 |
+
case `printf 'X\n' | tail -n +1 2>/dev/null` in
|
| 211 |
+
X) tail_n=-n;;
|
| 212 |
+
*) tail_n=;;
|
| 213 |
+
esac
|
| 214 |
+
tail $tail_n +$skip "$file" | gzip -cd > "$tmp" || {
|
| 215 |
+
res=$?
|
| 216 |
+
printf >&2 '%s\n' "$0: $i probably not in gzexe format, file unchanged."
|
| 217 |
+
continue
|
| 218 |
+
}
|
| 219 |
+
fi
|
| 220 |
+
test $writable -eq 1 || chmod u-w "$tmp" || {
|
| 221 |
+
res=$?
|
| 222 |
+
printf >&2 '%s\n' "$0: $tmp: cannot chmod"
|
| 223 |
+
continue
|
| 224 |
+
}
|
| 225 |
+
ln -f "$file" "$file~" 2>/dev/null || {
|
| 226 |
+
# Hard links may not work. Fall back on rm+cp so that $file always exists.
|
| 227 |
+
rm -f "$file~" && cp -p "$file" "$file~"
|
| 228 |
+
} || {
|
| 229 |
+
res=$?
|
| 230 |
+
printf >&2 '%s\n' "$0: cannot backup $i as $i~"
|
| 231 |
+
continue
|
| 232 |
+
}
|
| 233 |
+
mv -f "$tmp" "$file" || {
|
| 234 |
+
res=$?
|
| 235 |
+
printf >&2 '%s\n' "$0: cannot rename $tmp to $i"
|
| 236 |
+
continue
|
| 237 |
+
}
|
| 238 |
+
tmp=
|
| 239 |
+
done
|
| 240 |
+
(exit $res); exit $res
|
git/usr/bin/head.exe
ADDED
|
Binary file (45.4 kB). View file
|
|
|
git/usr/bin/hmac256.exe
ADDED
|
Binary file (17.1 kB). View file
|
|
|
git/usr/bin/hostid.exe
ADDED
|
Binary file (33.3 kB). View file
|
|
|
git/usr/bin/hostname.exe
ADDED
|
Binary file (33.9 kB). View file
|
|
|
git/usr/bin/iconv.exe
ADDED
|
Binary file (33.5 kB). View file
|
|
|
git/usr/bin/id.exe
ADDED
|
Binary file (44 kB). View file
|
|
|
git/usr/bin/infocmp.exe
ADDED
|
Binary file (58.9 kB). View file
|
|
|
git/usr/bin/infotocap.exe
ADDED
|
Binary file (81.9 kB). View file
|
|
|
git/usr/bin/join.exe
ADDED
|
Binary file (51.2 kB). View file
|
|
|
git/usr/bin/kill.exe
ADDED
|
Binary file (39.4 kB). View file
|
|
|
git/usr/bin/ldd.exe
ADDED
|
Binary file (37.8 kB). View file
|
|
|
git/usr/bin/lessecho.exe
ADDED
|
Binary file (12.3 kB). View file
|
|
|
git/usr/bin/lesskey.exe
ADDED
|
Binary file (21.7 kB). View file
|
|
|
git/usr/bin/link.exe
ADDED
|
Binary file (33.8 kB). View file
|
|
|
git/usr/bin/ln.exe
ADDED
|
Binary file (77.1 kB). View file
|
|
|
git/usr/bin/locale.exe
ADDED
|
Binary file (45.2 kB). View file
|
|
|
git/usr/bin/logname.exe
ADDED
|
Binary file (33.9 kB). View file
|
|
|
git/usr/bin/lsattr.exe
ADDED
|
Binary file (29.8 kB). View file
|
|
|
git/usr/bin/mac2unix.exe
ADDED
|
Binary file (54.3 kB). View file
|
|
|
git/usr/bin/md5sum.exe
ADDED
|
Binary file (47 kB). View file
|
|
|
git/usr/bin/minidumper.exe
ADDED
|
Binary file (28.2 kB). View file
|
|
|
git/usr/bin/mintheme
ADDED
|
@@ -0,0 +1,458 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#! /bin/sh
|
| 2 |
+
|
| 3 |
+
#############################################################################
|
| 4 |
+
# mintty theme switcher
|
| 5 |
+
# features:
|
| 6 |
+
# list themes from config directories
|
| 7 |
+
# set a theme from config directories
|
| 8 |
+
# set a theme from a file
|
| 9 |
+
# query current colour configuration as theme
|
| 10 |
+
# possible future features:
|
| 11 |
+
# set a theme from a URL
|
| 12 |
+
# load theme from a URL into config directory
|
| 13 |
+
# store current theme into config directory
|
| 14 |
+
|
| 15 |
+
help() {
|
| 16 |
+
echo "Usage:"
|
| 17 |
+
echo " `basename $0` [-h|-l]"
|
| 18 |
+
echo " `basename $0` THEME"
|
| 19 |
+
echo " `basename $0` -f THEMEFILE"
|
| 20 |
+
echo " `basename $0` --save [THEME|THEMEFILE]"
|
| 21 |
+
echo " `basename $0` [-t|-p|-%] IMAGE"
|
| 22 |
+
echo " `basename $0` [-s|-S] [PATTERNS]"
|
| 23 |
+
echo " `basename $0` [-d] -q > THEMEFILE"
|
| 24 |
+
echo "List/set/query mintty themes in current mintty window."
|
| 25 |
+
echo "A theme is a colour scheme to configure the 8 ANSI colours, their "
|
| 26 |
+
echo "bright versions, and optionally the foreground/background/cursor colours."
|
| 27 |
+
echo
|
| 28 |
+
echo "Arguments:"
|
| 29 |
+
echo " THEME set theme from config resources"
|
| 30 |
+
echo " -f, --file THEMEFILE set theme from themefile"
|
| 31 |
+
echo " --save [THEME|THEMEFILE] save theme also in config file"
|
| 32 |
+
echo " -t, --texture FILE[,DIM] set background texture (dim 1..255)"
|
| 33 |
+
echo " -p, --picture FILE[,DIM] set background picture (dim 1..255)"
|
| 34 |
+
echo " -%, --picscale FILE[,DIM] like -p and scale window"
|
| 35 |
+
echo " -q, --query query current colour configuration as theme"
|
| 36 |
+
echo " -d, --decimal decimal query output"
|
| 37 |
+
echo " -l, --list list available themes"
|
| 38 |
+
echo " -s, --show [PATTERN...] show (visualize) themes [matching PATTERNs]"
|
| 39 |
+
echo " -S, --Show [PATTERN...] show themes double-lined [matching PATTERNs]"
|
| 40 |
+
echo " -h, --help show this"
|
| 41 |
+
echo
|
| 42 |
+
echo "The following directories are considered for locating configured themes:"
|
| 43 |
+
echo ' ~/.mintty'
|
| 44 |
+
echo ' ~/.config/mintty'
|
| 45 |
+
echo ' $APPDATA/mintty'
|
| 46 |
+
echo ' /usr/share/mintty'
|
| 47 |
+
echo "Note that the command-line option --configdir cannot be considered."
|
| 48 |
+
}
|
| 49 |
+
|
| 50 |
+
terminaltype () {
|
| 51 |
+
case "$BASH" in
|
| 52 |
+
?*) # try simplified query as suggested by Brian Inglis:
|
| 53 |
+
# https://github.com/mintty/mintty/issues/776#issuecomment-475761566
|
| 54 |
+
read -s -dc -p $'\E[>c' da < /dev/tty
|
| 55 |
+
da=${da##$'\E'[>}
|
| 56 |
+
set - ${da//;/ }
|
| 57 |
+
;;
|
| 58 |
+
*) # other shells do not have flexible read and string operations
|
| 59 |
+
# so it's a bit more tricky...
|
| 60 |
+
test -t 0 && stty=`stty -g`
|
| 61 |
+
test -t 0 && stty raw -echo min 0 time 5
|
| 62 |
+
|
| 63 |
+
echo -n "[>c" > /dev/tty
|
| 64 |
+
da=`dd < /dev/tty 2> /dev/null`
|
| 65 |
+
|
| 66 |
+
test -t 0 && stty "$stty"
|
| 67 |
+
da=${da#??}
|
| 68 |
+
type="${da%%;*}"
|
| 69 |
+
rest="${da#*;}"
|
| 70 |
+
vers="${rest%%;*}"
|
| 71 |
+
rest="${rest#*;}"
|
| 72 |
+
rest="${rest%%c}"
|
| 73 |
+
set - $type $vers $rest
|
| 74 |
+
;;
|
| 75 |
+
esac
|
| 76 |
+
echo $1
|
| 77 |
+
}
|
| 78 |
+
|
| 79 |
+
showtheme() {
|
| 80 |
+
theme="$1"
|
| 81 |
+
export theme
|
| 82 |
+
sed \
|
| 83 |
+
-e 's/^\(ForegroundColour\)[ ]*=/\1=/' \
|
| 84 |
+
-e 's/^\(BackgroundColour\)[ ]*=/\1=/' \
|
| 85 |
+
-e 's/^\(CursorColour\)[ ]*=/\1=/' \
|
| 86 |
+
-e 's/^\(Black\)[ ]*=/\1=/' \
|
| 87 |
+
-e 's/^\(Red\)[ ]*=/\1=/' \
|
| 88 |
+
-e 's/^\(Green\)[ ]*=/\1=/' \
|
| 89 |
+
-e 's/^\(Yellow\)[ ]*=/\1=/' \
|
| 90 |
+
-e 's/^\(Blue\)[ ]*=/\1=/' \
|
| 91 |
+
-e 's/^\(Magenta\)[ ]*=/\1=/' \
|
| 92 |
+
-e 's/^\(Cyan\)[ ]*=/\1=/' \
|
| 93 |
+
-e 's/^\(White\)[ ]*=/\1=/' \
|
| 94 |
+
-e 's/^\(BoldBlack\)[ ]*=/\1=/' \
|
| 95 |
+
-e 's/^\(BoldRed\)[ ]*=/\1=/' \
|
| 96 |
+
-e 's/^\(BoldGreen\)[ ]*=/\1=/' \
|
| 97 |
+
-e 's/^\(BoldYellow\)[ ]*=/\1=/' \
|
| 98 |
+
-e 's/^\(BoldBlue\)[ ]*=/\1=/' \
|
| 99 |
+
-e 's/^\(BoldMagenta\)[ ]*=/\1=/' \
|
| 100 |
+
-e 's/^\(BoldCyan\)[ ]*=/\1=/' \
|
| 101 |
+
-e 's/^\(BoldWhite\)[ ]*=/\1=/' \
|
| 102 |
+
-e 't ok' -e d -e ': ok' -e 's/[ ]//g' \
|
| 103 |
+
"$1" |
|
| 104 |
+
(
|
| 105 |
+
cat <<\/EOS
|
| 106 |
+
xrgb() {
|
| 107 |
+
sed -e "s, , ,g" /usr/share/X11/rgb.txt |
|
| 108 |
+
sed -e "s/ *\([0-9][0-9]*\) *\([0-9][0-9]*\) *\([0-9][0-9]*\) *$1 *$/\1;\2;\3/" -e t -e d
|
| 109 |
+
}
|
| 110 |
+
ForegroundColour=39
|
| 111 |
+
BackgroundColour=49
|
| 112 |
+
CursorColour=49
|
| 113 |
+
Black=40
|
| 114 |
+
Red=41
|
| 115 |
+
Green=42
|
| 116 |
+
Yellow=43
|
| 117 |
+
Blue=44
|
| 118 |
+
Magenta=45
|
| 119 |
+
Cyan=46
|
| 120 |
+
White=47
|
| 121 |
+
BoldBlack=100
|
| 122 |
+
BoldRed=101
|
| 123 |
+
BoldGreen=102
|
| 124 |
+
BoldYellow=103
|
| 125 |
+
BoldBlue=104
|
| 126 |
+
BoldMagenta=105
|
| 127 |
+
BoldCyan=106
|
| 128 |
+
BoldWhite=107
|
| 129 |
+
/EOS
|
| 130 |
+
# filter out separate colour values for background use
|
| 131 |
+
# (but do not display them)
|
| 132 |
+
# transform colour specs:
|
| 133 |
+
# d,d,d
|
| 134 |
+
# d;d;d
|
| 135 |
+
# #RRGGBB
|
| 136 |
+
# 0xRR
|
| 137 |
+
# rgb:RR/GG/BB
|
| 138 |
+
# 0xRR
|
| 139 |
+
# rgb:RRRR/GGGG/BBBB
|
| 140 |
+
# 0xRR
|
| 141 |
+
# cmy:C.C/M.M/Y.Y
|
| 142 |
+
# r = (1 - c) * 255;
|
| 143 |
+
# g = (1 - m) * 255;
|
| 144 |
+
# b = (1 - y) * 255;
|
| 145 |
+
# cmyk:C.C/M.M/Y.Y/K.K
|
| 146 |
+
# r = (1 - c) * (1 - k) * 255;
|
| 147 |
+
# g = (1 - m) * (1 - k) * 255;
|
| 148 |
+
# b = (1 - y) * (1 - k) * 255;
|
| 149 |
+
# X11 color names
|
| 150 |
+
sed -e 's%;.*%%' |
|
| 151 |
+
sed -e 's%=\([0-9]*\),\([0-9]*\),\([0-9]*\)%="\1;\2;\3"%' \
|
| 152 |
+
-e 's%=#\([0-9A-Fa-f][0-9A-Fa-f]\)\([0-9A-Fa-f][0-9A-Fa-f]\)\([0-9A-Fa-f][0-9A-Fa-f]\)%="$((0x\1));$((0x\2));$((0x\3))"%' \
|
| 153 |
+
-e 's%=rgb:\([0-9A-Fa-f][0-9A-Fa-f]\)/\([0-9A-Fa-f][0-9A-Fa-f]\)/\([0-9A-Fa-f][0-9A-Fa-f]\)%="$((0x\1));$((0x\2));$((0x\3))"%' \
|
| 154 |
+
-e 's%=rgb:\([0-9A-Fa-f][0-9A-Fa-f]\)[0-9A-Fa-f][0-9A-Fa-f]/\([0-9A-Fa-f][0-9A-Fa-f]\)[0-9A-Fa-f][0-9A-Fa-f]/\([0-9A-Fa-f][0-9A-Fa-f]\)[0-9A-Fa-f][0-9A-Fa-f]%="$((0x\1));$((0x\2));$((0x\3))"%' \
|
| 155 |
+
-e '/=cmy/ s%\([01]\)\.\([0-9]*\)%\1.\2000%g' \
|
| 156 |
+
-e '/=cmy/ s%\([01]\)\.\([0-9][0-9][0-9]\)[0-9]*%\1\2%g' \
|
| 157 |
+
-e '/=cmy:/ s%cmy:\([0-9/]*\)%cmyk:\1/0000%' \
|
| 158 |
+
-e 's%=cmyk:\([01][0-9][0-9][0-9]\)/\([01][0-9][0-9][0-9]\)/\([01][0-9][0-9][0-9]\)/\([01][0-9][0-9][0-9]\)%=cmyk:"$(( (1000 - \1) * (1000 - \4) * 255 / 1000000 ));$(( (1000 - \2) * (1000 - \4) * 255 / 1000000 ));$(( (1000 - \3) * (1000 - \4) * 255 / 1000000 ))"%' \
|
| 159 |
+
-e '/=cmyk:/ s%\([^0-9]\)0*\([0-9]\)%\1\2%g' -e 's%=cmyk:%=%' \
|
| 160 |
+
-e 's%=\([a-zA-Z][a-zA-Z ]*\)%=`xrgb "\1"`%' \
|
| 161 |
+
-e 't ok' -e d -e ': ok' -e 's%="%="48;2;%'
|
| 162 |
+
if $show2
|
| 163 |
+
then cat <<\/EOS
|
| 164 |
+
echo -en "\e[37;${Black}mblk"
|
| 165 |
+
echo -en "\e[30;${Red}mred"
|
| 166 |
+
echo -en "\e[30;${Green}mgrn"
|
| 167 |
+
echo -en "\e[30;${Yellow}mylw"
|
| 168 |
+
echo -en "\e[30;${Blue}mblu"
|
| 169 |
+
echo -en "\e[30;${Magenta}mmag"
|
| 170 |
+
echo -en "\e[30;${Cyan}mcyn"
|
| 171 |
+
echo -en "\e[30;${White}mwht"
|
| 172 |
+
echo -en "\e[39;${CursorColour}m "
|
| 173 |
+
echo -e "\e[m${theme}"
|
| 174 |
+
echo -en "\e[37;${BoldBlack}mBLK"
|
| 175 |
+
echo -en "\e[30;${BoldRed}mRED"
|
| 176 |
+
echo -en "\e[30;${BoldGreen}mGRN"
|
| 177 |
+
echo -en "\e[30;${BoldYellow}mYLW"
|
| 178 |
+
echo -en "\e[30;${BoldBlue}mBLU"
|
| 179 |
+
echo -en "\e[30;${BoldMagenta}mMAG"
|
| 180 |
+
echo -en "\e[30;${BoldCyan}mCYN"
|
| 181 |
+
echo -en "\e[30;${BoldWhite}mWHT"
|
| 182 |
+
echo -en "\e[39;${CursorColour}m "
|
| 183 |
+
echo -e "\e[${ForegroundColour};${BackgroundColour}m${theme}\e[m"
|
| 184 |
+
/EOS
|
| 185 |
+
else cat <<\/EOS
|
| 186 |
+
echo -en "\e[${ForegroundColour};${BackgroundColour}mfgbg"
|
| 187 |
+
echo -en "\e[39;${CursorColour}mC"
|
| 188 |
+
echo -en "\e[37;${Black}mbk"
|
| 189 |
+
echo -en "\e[30;${Red}mrd"
|
| 190 |
+
echo -en "\e[30;${Green}mgn"
|
| 191 |
+
echo -en "\e[30;${Yellow}myl"
|
| 192 |
+
echo -en "\e[30;${Blue}mbl"
|
| 193 |
+
echo -en "\e[30;${Magenta}mmg"
|
| 194 |
+
echo -en "\e[30;${Cyan}mcy"
|
| 195 |
+
echo -en "\e[30;${White}mwh"
|
| 196 |
+
echo -en "\e[37;${BoldBlack}mBK"
|
| 197 |
+
echo -en "\e[30;${BoldRed}mRD"
|
| 198 |
+
echo -en "\e[30;${BoldGreen}mGN"
|
| 199 |
+
echo -en "\e[30;${BoldYellow}mYL"
|
| 200 |
+
echo -en "\e[30;${BoldBlue}mBL"
|
| 201 |
+
echo -en "\e[30;${BoldMagenta}mMG"
|
| 202 |
+
echo -en "\e[30;${BoldCyan}mCY"
|
| 203 |
+
echo -en "\e[30;${BoldWhite}mWH"
|
| 204 |
+
echo -e "\e[m $theme"
|
| 205 |
+
/EOS
|
| 206 |
+
fi
|
| 207 |
+
) | sh
|
| 208 |
+
}
|
| 209 |
+
|
| 210 |
+
showthemes() {
|
| 211 |
+
for confdir in ~/.mintty ~/.config/mintty "$APPDATA"/mintty /usr/share/mintty
|
| 212 |
+
do if [ -d "$confdir/themes" -a -x "$confdir/themes" -a -r "$confdir/themes" ]
|
| 213 |
+
then echo "[4;53;7mthemes in '$confdir':[m"
|
| 214 |
+
(
|
| 215 |
+
cd "$confdir/themes"
|
| 216 |
+
for th in *[!~]
|
| 217 |
+
do for pat in "${@-}"
|
| 218 |
+
do case "$th" in
|
| 219 |
+
*$pat*) showtheme "$th";;
|
| 220 |
+
esac
|
| 221 |
+
done
|
| 222 |
+
done
|
| 223 |
+
)
|
| 224 |
+
fi
|
| 225 |
+
done
|
| 226 |
+
}
|
| 227 |
+
|
| 228 |
+
settheme() {
|
| 229 |
+
case `terminaltype` in
|
| 230 |
+
83) # screen
|
| 231 |
+
pre='P'
|
| 232 |
+
post='\\'
|
| 233 |
+
;;
|
| 234 |
+
*) pre=
|
| 235 |
+
post=
|
| 236 |
+
;;
|
| 237 |
+
esac
|
| 238 |
+
sed \
|
| 239 |
+
-e 's/^\(ForegroundColour\)[ ]*=/10;/' \
|
| 240 |
+
-e 's/^\(BackgroundColour\)[ ]*=/11;/' \
|
| 241 |
+
-e 's/^\(CursorColour\)[ ]*=/12;/' \
|
| 242 |
+
-e 's/^\(Black\)[ ]*=/4;0;/' \
|
| 243 |
+
-e 's/^\(Red\)[ ]*=/4;1;/' \
|
| 244 |
+
-e 's/^\(Green\)[ ]*=/4;2;/' \
|
| 245 |
+
-e 's/^\(Yellow\)[ ]*=/4;3;/' \
|
| 246 |
+
-e 's/^\(Blue\)[ ]*=/4;4;/' \
|
| 247 |
+
-e 's/^\(Magenta\)[ ]*=/4;5;/' \
|
| 248 |
+
-e 's/^\(Cyan\)[ ]*=/4;6;/' \
|
| 249 |
+
-e 's/^\(White\)[ ]*=/4;7;/' \
|
| 250 |
+
-e 's/^\(BoldBlack\)[ ]*=/4;8;/' \
|
| 251 |
+
-e 's/^\(BoldRed\)[ ]*=/4;9;/' \
|
| 252 |
+
-e 's/^\(BoldGreen\)[ ]*=/4;10;/' \
|
| 253 |
+
-e 's/^\(BoldYellow\)[ ]*=/4;11;/' \
|
| 254 |
+
-e 's/^\(BoldBlue\)[ ]*=/4;12;/' \
|
| 255 |
+
-e 's/^\(BoldMagenta\)[ ]*=/4;13;/' \
|
| 256 |
+
-e 's/^\(BoldCyan\)[ ]*=/4;14;/' \
|
| 257 |
+
-e 's/^\(BoldWhite\)[ ]*=/4;15;/' \
|
| 258 |
+
-e 't ok' -e d -e ': ok' -e 's/[ ]//g' \
|
| 259 |
+
-e "s/^/$pre]/" -e "s/$/$post/" "$1" |
|
| 260 |
+
tr -d '\012'
|
| 261 |
+
#]4;A;colour set ANSI colour A=0..15
|
| 262 |
+
#]10;colour set foreground colour
|
| 263 |
+
#]11;colour set background colour
|
| 264 |
+
#]12;colour set cursor colour
|
| 265 |
+
# unused:
|
| 266 |
+
#]104;A reset ANSI colour A=0..15
|
| 267 |
+
#]104 reset colour palette
|
| 268 |
+
#]110 reset foreground colour
|
| 269 |
+
#]111 reset background colour
|
| 270 |
+
#]112 reset cursor colour
|
| 271 |
+
}
|
| 272 |
+
|
| 273 |
+
query() {
|
| 274 |
+
len=$(( $1 + 3 ))
|
| 275 |
+
echo -n "]$2;?" > /dev/tty
|
| 276 |
+
read -s -n$len -t 2 esc < /dev/tty # read ESC ] prefix and colour index
|
| 277 |
+
read -s -n18 colour < /dev/tty # read rgb:colour spec
|
| 278 |
+
read -s -n1 -t 2 esc < /dev/tty # read ^G suffix
|
| 279 |
+
|
| 280 |
+
if $decimal
|
| 281 |
+
then
|
| 282 |
+
eval $( echo $colour | sed -e "s@rgb:\(..\)../\(..\)../\(..\)..@printf '$3=%d,%d,%d' 0x\1 0x\2 0x\3@" -e t -e "s,^,printf $3=," )
|
| 283 |
+
echo
|
| 284 |
+
else
|
| 285 |
+
# 4-digit hex
|
| 286 |
+
echo $3=$colour
|
| 287 |
+
# 2-digit hex
|
| 288 |
+
#echo $3=$colour | sed -e "s,rgb:\(..\)../\(..\)../\(..\)..,rgb:\1/\2/\3,"
|
| 289 |
+
fi
|
| 290 |
+
}
|
| 291 |
+
|
| 292 |
+
conftheme() {
|
| 293 |
+
if [ `uname` = "Linux" ] && type wslpath 2> /dev/null 1>&2
|
| 294 |
+
then
|
| 295 |
+
themefile=`wslpath -ma "$1"`
|
| 296 |
+
elif type cygpath 2> /dev/null 1>&2
|
| 297 |
+
then
|
| 298 |
+
themefile=`cygpath -wa "$1"`
|
| 299 |
+
else
|
| 300 |
+
echo "cannot save to config file in this system environment"
|
| 301 |
+
exit
|
| 302 |
+
fi
|
| 303 |
+
if [ `uname` = "Linux" ] && type wslpath 1>&2
|
| 304 |
+
then
|
| 305 |
+
ls "$APPDATA/mintty/config"
|
| 306 |
+
elif type cygpath 1>&2
|
| 307 |
+
then
|
| 308 |
+
ls ~/.minttyrc ~/.config/mintty/config "$APPDATA/mintty/config" /etc/minttyrc
|
| 309 |
+
fi 2> /dev/null |
|
| 310 |
+
while read conffile
|
| 311 |
+
do if [ -w "$conffile" ]
|
| 312 |
+
then
|
| 313 |
+
newconf=/tmp/minttyrc.$$
|
| 314 |
+
# create new config file with modified entry
|
| 315 |
+
sed -n -e "/^ThemeFile[ ]*=/ q" -e p "$conffile" > "$newconf"
|
| 316 |
+
echo "ThemeFile=$themefile" >> "$newconf"
|
| 317 |
+
sed -e "1,/^ThemeFile[ ]*=/ d" "$conffile" >> "$newconf"
|
| 318 |
+
# copy new config file back
|
| 319 |
+
/bin/cp "$newconf" "$conffile"
|
| 320 |
+
/bin/rm "$newconf"
|
| 321 |
+
# feedback
|
| 322 |
+
echo "saved theme '$themefile'"
|
| 323 |
+
echo "in config file '$conffile'"
|
| 324 |
+
return
|
| 325 |
+
fi
|
| 326 |
+
done
|
| 327 |
+
}
|
| 328 |
+
|
| 329 |
+
decimal=false
|
| 330 |
+
show2=false
|
| 331 |
+
case "$1" in
|
| 332 |
+
-d|--decimal)
|
| 333 |
+
decimal=true
|
| 334 |
+
shift;;
|
| 335 |
+
esac
|
| 336 |
+
|
| 337 |
+
case `uname` in
|
| 338 |
+
Linux) if [ -n "$APPDATA" ]
|
| 339 |
+
then APPDATA=`wslpath "$APPDATA"`
|
| 340 |
+
else echo APPDATA not set >&2
|
| 341 |
+
exit
|
| 342 |
+
fi;;
|
| 343 |
+
esac
|
| 344 |
+
|
| 345 |
+
case "$1" in
|
| 346 |
+
-h|--help|'')
|
| 347 |
+
help
|
| 348 |
+
;;
|
| 349 |
+
-l|--list)
|
| 350 |
+
for confdir in ~/.mintty ~/.config/mintty "$APPDATA"/mintty /usr/share/mintty
|
| 351 |
+
do if [ -d "$confdir/themes" -a -x "$confdir/themes" -a -r "$confdir/themes" ]
|
| 352 |
+
then echo "[4;53;7mthemes in '$confdir':[m"
|
| 353 |
+
(cd "$confdir/themes"; ls *[!~])
|
| 354 |
+
fi
|
| 355 |
+
done;;
|
| 356 |
+
-s|--show)
|
| 357 |
+
shift
|
| 358 |
+
showthemes "$@";;
|
| 359 |
+
-S|--Show|--SHOW)
|
| 360 |
+
shift
|
| 361 |
+
show2=true
|
| 362 |
+
export show2
|
| 363 |
+
showthemes "$@";;
|
| 364 |
+
-f|--file)
|
| 365 |
+
if [ -z "$2" ]
|
| 366 |
+
then help
|
| 367 |
+
elif [ -r "$2" ]
|
| 368 |
+
then settheme "$2"
|
| 369 |
+
else echo cannot read theme file
|
| 370 |
+
fi;;
|
| 371 |
+
--save)
|
| 372 |
+
if [ -z "$2" ]
|
| 373 |
+
then help
|
| 374 |
+
elif [ -r "$2" ]
|
| 375 |
+
then
|
| 376 |
+
settheme "$2"
|
| 377 |
+
conftheme "$2"
|
| 378 |
+
else
|
| 379 |
+
for confdir in ~/.mintty ~/.config/mintty "$APPDATA"/mintty /usr/share/mintty
|
| 380 |
+
do if [ -r "$confdir/themes/$2" ]
|
| 381 |
+
then
|
| 382 |
+
echo setting theme from config dir "$confdir"
|
| 383 |
+
settheme "$confdir/themes/$2"
|
| 384 |
+
conftheme "$confdir/themes/$2"
|
| 385 |
+
exit
|
| 386 |
+
fi
|
| 387 |
+
done
|
| 388 |
+
echo theme not found
|
| 389 |
+
fi;;
|
| 390 |
+
-p|--picture)
|
| 391 |
+
if [ -z "$2" ]
|
| 392 |
+
then help
|
| 393 |
+
elif [ -r "${2/,*/}" ]
|
| 394 |
+
then echo "]11;_$2"
|
| 395 |
+
else echo cannot read picture file
|
| 396 |
+
fi;;
|
| 397 |
+
-%|--picscale)
|
| 398 |
+
if [ -z "$2" ]
|
| 399 |
+
then help
|
| 400 |
+
elif [ -r "${2/,*/}" ]
|
| 401 |
+
then echo "]11;%$2"
|
| 402 |
+
else echo cannot read picture file
|
| 403 |
+
fi;;
|
| 404 |
+
-t|--texture)
|
| 405 |
+
if [ -z "$2" ]
|
| 406 |
+
then help
|
| 407 |
+
elif [ -r "${2/,*/}" ]
|
| 408 |
+
then echo "]11;*$2"
|
| 409 |
+
else echo cannot read texture file
|
| 410 |
+
fi;;
|
| 411 |
+
-q|--query)
|
| 412 |
+
# echo "]10;?]11;?]12;?"
|
| 413 |
+
test -t 0 && stty=`stty -g`
|
| 414 |
+
test -t 0 && stty -echo min 0 time 5 # raw
|
| 415 |
+
|
| 416 |
+
query 2 "10" ForegroundColour
|
| 417 |
+
query 2 "11" BackgroundColour
|
| 418 |
+
query 2 "12" CursorColour
|
| 419 |
+
query 3 "4;0" Black
|
| 420 |
+
query 3 "4;1" Red
|
| 421 |
+
query 3 "4;2" Green
|
| 422 |
+
query 3 "4;3" Yellow
|
| 423 |
+
query 3 "4;4" Blue
|
| 424 |
+
query 3 "4;5" Magenta
|
| 425 |
+
query 3 "4;6" Cyan
|
| 426 |
+
query 3 "4;7" White
|
| 427 |
+
query 3 "4;8" BoldBlack
|
| 428 |
+
query 3 "4;9" BoldRed
|
| 429 |
+
query 4 "4;10" BoldGreen
|
| 430 |
+
query 4 "4;11" BoldYellow
|
| 431 |
+
query 4 "4;12" BoldBlue
|
| 432 |
+
query 4 "4;13" BoldMagenta
|
| 433 |
+
query 4 "4;14" BoldCyan
|
| 434 |
+
query 4 "4;15" BoldWhite
|
| 435 |
+
read -s -n1 -t 1 esc < /dev/tty # swallow final bogus '\'
|
| 436 |
+
|
| 437 |
+
test -t 0 && stty "$stty"
|
| 438 |
+
;;
|
| 439 |
+
-*) echo unknown argument;;
|
| 440 |
+
*)
|
| 441 |
+
if [ -r "$1" ]
|
| 442 |
+
then echo setting theme from config dir "$confdir"
|
| 443 |
+
settheme "$1"
|
| 444 |
+
exit
|
| 445 |
+
fi
|
| 446 |
+
for confdir in ~/.mintty ~/.config/mintty "$APPDATA"/mintty /usr/share/mintty
|
| 447 |
+
do if [ -r "$confdir/themes/$1" ]
|
| 448 |
+
then
|
| 449 |
+
echo setting theme from config dir "$confdir"
|
| 450 |
+
settheme "$confdir/themes/$1"
|
| 451 |
+
exit
|
| 452 |
+
fi
|
| 453 |
+
done
|
| 454 |
+
echo theme not found;;
|
| 455 |
+
esac
|
| 456 |
+
|
| 457 |
+
#############################################################################
|
| 458 |
+
# end
|
git/usr/bin/mkdir.exe
ADDED
|
Binary file (71.4 kB). View file
|
|
|
git/usr/bin/mkfifo.exe
ADDED
|
Binary file (36.6 kB). View file
|
|
|
git/usr/bin/mkgroup.exe
ADDED
|
Binary file (43 kB). View file
|
|
|
git/usr/bin/mknod.exe
ADDED
|
Binary file (39.7 kB). View file
|
|
|
git/usr/bin/mkpasswd.exe
ADDED
|
Binary file (42.9 kB). View file
|
|
|
git/usr/bin/mktemp.exe
ADDED
|
Binary file (44.2 kB). View file
|
|
|
git/usr/bin/mount.exe
ADDED
|
Binary file (35.9 kB). View file
|
|
|
git/usr/bin/mpicalc.exe
ADDED
|
Binary file (18.1 kB). View file
|
|
|
git/usr/bin/msys-assuan-9.dll
ADDED
|
Binary file (69.7 kB). View file
|
|
|
git/usr/bin/msys-bz2-1.dll
ADDED
|
Binary file (67.3 kB). View file
|
|
|
git/usr/bin/msys-cbor-0.11.dll
ADDED
|
Binary file (50 kB). View file
|
|
|
git/usr/bin/msys-com_err-1.dll
ADDED
|
Binary file (10.1 kB). View file
|
|
|
git/usr/bin/msys-ffi-8.dll
ADDED
|
Binary file (31.6 kB). View file
|
|
|
git/usr/bin/msys-gdbm-6.dll
ADDED
|
Binary file (60.6 kB). View file
|
|
|