Add files using upload-large-folder tool
Browse filesThis view is limited to 50 files because it contains too many changes. See raw diff
- data/conda_envs/abstr/bin/2to3 +5 -0
- data/conda_envs/abstr/bin/2to3-3.11 +5 -0
- data/conda_envs/abstr/bin/accelerate +6 -0
- data/conda_envs/abstr/bin/accelerate-config +6 -0
- data/conda_envs/abstr/bin/accelerate-estimate-memory +6 -0
- data/conda_envs/abstr/bin/accelerate-launch +6 -0
- data/conda_envs/abstr/bin/accelerate-merge-weights +6 -0
- data/conda_envs/abstr/bin/adig +0 -0
- data/conda_envs/abstr/bin/ahost +0 -0
- data/conda_envs/abstr/bin/bzcmp +76 -0
- data/conda_envs/abstr/bin/bzdiff +76 -0
- data/conda_envs/abstr/bin/bzegrep +85 -0
- data/conda_envs/abstr/bin/bzfgrep +85 -0
- data/conda_envs/abstr/bin/bzgrep +85 -0
- data/conda_envs/abstr/bin/bzip2recover +0 -0
- data/conda_envs/abstr/bin/bzless +61 -0
- data/conda_envs/abstr/bin/bzmore +61 -0
- data/conda_envs/abstr/bin/c_rehash +253 -0
- data/conda_envs/abstr/bin/captoinfo +0 -0
- data/conda_envs/abstr/bin/clear +0 -0
- data/conda_envs/abstr/bin/ct2-fairseq-converter +6 -0
- data/conda_envs/abstr/bin/ct2-marian-converter +6 -0
- data/conda_envs/abstr/bin/ct2-openai-gpt2-converter +6 -0
- data/conda_envs/abstr/bin/ct2-opennmt-py-converter +6 -0
- data/conda_envs/abstr/bin/ct2-opennmt-tf-converter +6 -0
- data/conda_envs/abstr/bin/ct2-opus-mt-converter +6 -0
- data/conda_envs/abstr/bin/ct2-transformers-converter +6 -0
- data/conda_envs/abstr/bin/datasets-cli +6 -0
- data/conda_envs/abstr/bin/derb +0 -0
- data/conda_envs/abstr/bin/ezdxf +6 -0
- data/conda_envs/abstr/bin/f2py +6 -0
- data/conda_envs/abstr/bin/fonttools +6 -0
- data/conda_envs/abstr/bin/genbrk +0 -0
- data/conda_envs/abstr/bin/gencfu +0 -0
- data/conda_envs/abstr/bin/gencnval +0 -0
- data/conda_envs/abstr/bin/gendict +0 -0
- data/conda_envs/abstr/bin/get_gprof +75 -0
- data/conda_envs/abstr/bin/get_objgraph +54 -0
- data/conda_envs/abstr/bin/hf +6 -0
- data/conda_envs/abstr/bin/httpx +6 -0
- data/conda_envs/abstr/bin/icu-config +771 -0
- data/conda_envs/abstr/bin/icuexportdata +0 -0
- data/conda_envs/abstr/bin/icuinfo +0 -0
- data/conda_envs/abstr/bin/idle3 +5 -0
- data/conda_envs/abstr/bin/idle3.11 +5 -0
- data/conda_envs/abstr/bin/infocmp +0 -0
- data/conda_envs/abstr/bin/infotocap +0 -0
- data/conda_envs/abstr/bin/isympy +6 -0
- data/conda_envs/abstr/bin/lzcmp +224 -0
- data/conda_envs/abstr/bin/lzdiff +224 -0
data/conda_envs/abstr/bin/2to3
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/zfspool/zangyihe/conda_envs/abstr/bin/python3.11
|
| 2 |
+
import sys
|
| 3 |
+
from lib2to3.main import main
|
| 4 |
+
|
| 5 |
+
sys.exit(main("lib2to3.fixes"))
|
data/conda_envs/abstr/bin/2to3-3.11
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/zfspool/zangyihe/conda_envs/abstr/bin/python3.11
|
| 2 |
+
import sys
|
| 3 |
+
from lib2to3.main import main
|
| 4 |
+
|
| 5 |
+
sys.exit(main("lib2to3.fixes"))
|
data/conda_envs/abstr/bin/accelerate
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/zfspool/zangyihe/conda_envs/abstr/bin/python3.11
|
| 2 |
+
import sys
|
| 3 |
+
from accelerate.commands.accelerate_cli import main
|
| 4 |
+
if __name__ == '__main__':
|
| 5 |
+
sys.argv[0] = sys.argv[0].removesuffix('.exe')
|
| 6 |
+
sys.exit(main())
|
data/conda_envs/abstr/bin/accelerate-config
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/zfspool/zangyihe/conda_envs/abstr/bin/python3.11
|
| 2 |
+
import sys
|
| 3 |
+
from accelerate.commands.config import main
|
| 4 |
+
if __name__ == '__main__':
|
| 5 |
+
sys.argv[0] = sys.argv[0].removesuffix('.exe')
|
| 6 |
+
sys.exit(main())
|
data/conda_envs/abstr/bin/accelerate-estimate-memory
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/zfspool/zangyihe/conda_envs/abstr/bin/python3.11
|
| 2 |
+
import sys
|
| 3 |
+
from accelerate.commands.estimate import main
|
| 4 |
+
if __name__ == '__main__':
|
| 5 |
+
sys.argv[0] = sys.argv[0].removesuffix('.exe')
|
| 6 |
+
sys.exit(main())
|
data/conda_envs/abstr/bin/accelerate-launch
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/zfspool/zangyihe/conda_envs/abstr/bin/python3.11
|
| 2 |
+
import sys
|
| 3 |
+
from accelerate.commands.launch import main
|
| 4 |
+
if __name__ == '__main__':
|
| 5 |
+
sys.argv[0] = sys.argv[0].removesuffix('.exe')
|
| 6 |
+
sys.exit(main())
|
data/conda_envs/abstr/bin/accelerate-merge-weights
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/zfspool/zangyihe/conda_envs/abstr/bin/python3.11
|
| 2 |
+
import sys
|
| 3 |
+
from accelerate.commands.merge import main
|
| 4 |
+
if __name__ == '__main__':
|
| 5 |
+
sys.argv[0] = sys.argv[0].removesuffix('.exe')
|
| 6 |
+
sys.exit(main())
|
data/conda_envs/abstr/bin/adig
ADDED
|
Binary file (45 kB). View file
|
|
|
data/conda_envs/abstr/bin/ahost
ADDED
|
Binary file (17.1 kB). View file
|
|
|
data/conda_envs/abstr/bin/bzcmp
ADDED
|
@@ -0,0 +1,76 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/bin/sh
|
| 2 |
+
# sh is buggy on RS/6000 AIX 3.2. Replace above line with #!/bin/ksh
|
| 3 |
+
|
| 4 |
+
# Bzcmp/diff wrapped for bzip2,
|
| 5 |
+
# adapted from zdiff by Philippe Troin <phil@fifi.org> for Debian GNU/Linux.
|
| 6 |
+
|
| 7 |
+
# Bzcmp and bzdiff are used to invoke the cmp or the diff pro-
|
| 8 |
+
# gram on compressed files. All options specified are passed
|
| 9 |
+
# directly to cmp or diff. If only 1 file is specified, then
|
| 10 |
+
# the files compared are file1 and an uncompressed file1.gz.
|
| 11 |
+
# If two files are specified, then they are uncompressed (if
|
| 12 |
+
# necessary) and fed to cmp or diff. The exit status from cmp
|
| 13 |
+
# or diff is preserved.
|
| 14 |
+
|
| 15 |
+
PATH="/usr/bin:/bin:$PATH"; export PATH
|
| 16 |
+
prog=`echo $0 | sed 's|.*/||'`
|
| 17 |
+
case "$prog" in
|
| 18 |
+
*cmp) comp=${CMP-cmp} ;;
|
| 19 |
+
*) comp=${DIFF-diff} ;;
|
| 20 |
+
esac
|
| 21 |
+
|
| 22 |
+
OPTIONS=
|
| 23 |
+
FILES=
|
| 24 |
+
for ARG
|
| 25 |
+
do
|
| 26 |
+
case "$ARG" in
|
| 27 |
+
-*) OPTIONS="$OPTIONS $ARG";;
|
| 28 |
+
*) if test -f "$ARG"; then
|
| 29 |
+
FILES="$FILES $ARG"
|
| 30 |
+
else
|
| 31 |
+
echo "${prog}: $ARG not found or not a regular file"
|
| 32 |
+
exit 1
|
| 33 |
+
fi ;;
|
| 34 |
+
esac
|
| 35 |
+
done
|
| 36 |
+
if test -z "$FILES"; then
|
| 37 |
+
echo "Usage: $prog [${comp}_options] file [file]"
|
| 38 |
+
exit 1
|
| 39 |
+
fi
|
| 40 |
+
set $FILES
|
| 41 |
+
if test $# -eq 1; then
|
| 42 |
+
FILE=`echo "$1" | sed 's/.bz2$//'`
|
| 43 |
+
bzip2 -cd "$FILE.bz2" | $comp $OPTIONS - "$FILE"
|
| 44 |
+
STAT="$?"
|
| 45 |
+
|
| 46 |
+
elif test $# -eq 2; then
|
| 47 |
+
case "$1" in
|
| 48 |
+
*.bz2)
|
| 49 |
+
case "$2" in
|
| 50 |
+
*.bz2)
|
| 51 |
+
F=`echo "$2" | sed 's|.*/||;s|.bz2$||'`
|
| 52 |
+
tmp=`mktemp "${TMPDIR:-/tmp}"/bzdiff.XXXXXXXXXX` || {
|
| 53 |
+
echo 'cannot create a temporary file' >&2
|
| 54 |
+
exit 1
|
| 55 |
+
}
|
| 56 |
+
bzip2 -cdfq "$2" > "$tmp"
|
| 57 |
+
bzip2 -cdfq "$1" | $comp $OPTIONS - "$tmp"
|
| 58 |
+
STAT="$?"
|
| 59 |
+
/bin/rm -f "$tmp";;
|
| 60 |
+
|
| 61 |
+
*) bzip2 -cdfq "$1" | $comp $OPTIONS - "$2"
|
| 62 |
+
STAT="$?";;
|
| 63 |
+
esac;;
|
| 64 |
+
*) case "$2" in
|
| 65 |
+
*.bz2)
|
| 66 |
+
bzip2 -cdfq "$2" | $comp $OPTIONS "$1" -
|
| 67 |
+
STAT="$?";;
|
| 68 |
+
*) $comp $OPTIONS "$1" "$2"
|
| 69 |
+
STAT="$?";;
|
| 70 |
+
esac;;
|
| 71 |
+
esac
|
| 72 |
+
else
|
| 73 |
+
echo "Usage: $prog [${comp}_options] file [file]"
|
| 74 |
+
exit 1
|
| 75 |
+
fi
|
| 76 |
+
exit "$STAT"
|
data/conda_envs/abstr/bin/bzdiff
ADDED
|
@@ -0,0 +1,76 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/bin/sh
|
| 2 |
+
# sh is buggy on RS/6000 AIX 3.2. Replace above line with #!/bin/ksh
|
| 3 |
+
|
| 4 |
+
# Bzcmp/diff wrapped for bzip2,
|
| 5 |
+
# adapted from zdiff by Philippe Troin <phil@fifi.org> for Debian GNU/Linux.
|
| 6 |
+
|
| 7 |
+
# Bzcmp and bzdiff are used to invoke the cmp or the diff pro-
|
| 8 |
+
# gram on compressed files. All options specified are passed
|
| 9 |
+
# directly to cmp or diff. If only 1 file is specified, then
|
| 10 |
+
# the files compared are file1 and an uncompressed file1.gz.
|
| 11 |
+
# If two files are specified, then they are uncompressed (if
|
| 12 |
+
# necessary) and fed to cmp or diff. The exit status from cmp
|
| 13 |
+
# or diff is preserved.
|
| 14 |
+
|
| 15 |
+
PATH="/usr/bin:/bin:$PATH"; export PATH
|
| 16 |
+
prog=`echo $0 | sed 's|.*/||'`
|
| 17 |
+
case "$prog" in
|
| 18 |
+
*cmp) comp=${CMP-cmp} ;;
|
| 19 |
+
*) comp=${DIFF-diff} ;;
|
| 20 |
+
esac
|
| 21 |
+
|
| 22 |
+
OPTIONS=
|
| 23 |
+
FILES=
|
| 24 |
+
for ARG
|
| 25 |
+
do
|
| 26 |
+
case "$ARG" in
|
| 27 |
+
-*) OPTIONS="$OPTIONS $ARG";;
|
| 28 |
+
*) if test -f "$ARG"; then
|
| 29 |
+
FILES="$FILES $ARG"
|
| 30 |
+
else
|
| 31 |
+
echo "${prog}: $ARG not found or not a regular file"
|
| 32 |
+
exit 1
|
| 33 |
+
fi ;;
|
| 34 |
+
esac
|
| 35 |
+
done
|
| 36 |
+
if test -z "$FILES"; then
|
| 37 |
+
echo "Usage: $prog [${comp}_options] file [file]"
|
| 38 |
+
exit 1
|
| 39 |
+
fi
|
| 40 |
+
set $FILES
|
| 41 |
+
if test $# -eq 1; then
|
| 42 |
+
FILE=`echo "$1" | sed 's/.bz2$//'`
|
| 43 |
+
bzip2 -cd "$FILE.bz2" | $comp $OPTIONS - "$FILE"
|
| 44 |
+
STAT="$?"
|
| 45 |
+
|
| 46 |
+
elif test $# -eq 2; then
|
| 47 |
+
case "$1" in
|
| 48 |
+
*.bz2)
|
| 49 |
+
case "$2" in
|
| 50 |
+
*.bz2)
|
| 51 |
+
F=`echo "$2" | sed 's|.*/||;s|.bz2$||'`
|
| 52 |
+
tmp=`mktemp "${TMPDIR:-/tmp}"/bzdiff.XXXXXXXXXX` || {
|
| 53 |
+
echo 'cannot create a temporary file' >&2
|
| 54 |
+
exit 1
|
| 55 |
+
}
|
| 56 |
+
bzip2 -cdfq "$2" > "$tmp"
|
| 57 |
+
bzip2 -cdfq "$1" | $comp $OPTIONS - "$tmp"
|
| 58 |
+
STAT="$?"
|
| 59 |
+
/bin/rm -f "$tmp";;
|
| 60 |
+
|
| 61 |
+
*) bzip2 -cdfq "$1" | $comp $OPTIONS - "$2"
|
| 62 |
+
STAT="$?";;
|
| 63 |
+
esac;;
|
| 64 |
+
*) case "$2" in
|
| 65 |
+
*.bz2)
|
| 66 |
+
bzip2 -cdfq "$2" | $comp $OPTIONS "$1" -
|
| 67 |
+
STAT="$?";;
|
| 68 |
+
*) $comp $OPTIONS "$1" "$2"
|
| 69 |
+
STAT="$?";;
|
| 70 |
+
esac;;
|
| 71 |
+
esac
|
| 72 |
+
else
|
| 73 |
+
echo "Usage: $prog [${comp}_options] file [file]"
|
| 74 |
+
exit 1
|
| 75 |
+
fi
|
| 76 |
+
exit "$STAT"
|
data/conda_envs/abstr/bin/bzegrep
ADDED
|
@@ -0,0 +1,85 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/bin/sh
|
| 2 |
+
|
| 3 |
+
# Bzgrep wrapped for bzip2,
|
| 4 |
+
# adapted from zgrep by Philippe Troin <phil@fifi.org> for Debian GNU/Linux.
|
| 5 |
+
## zgrep notice:
|
| 6 |
+
## zgrep -- a wrapper around a grep program that decompresses files as needed
|
| 7 |
+
## Adapted from a version sent by Charles Levert <charles@comm.polymtl.ca>
|
| 8 |
+
|
| 9 |
+
PATH="/usr/bin:$PATH"; export PATH
|
| 10 |
+
|
| 11 |
+
prog=`echo $0 | sed 's|.*/||'`
|
| 12 |
+
case "$prog" in
|
| 13 |
+
*egrep) grep=${EGREP-egrep} ;;
|
| 14 |
+
*fgrep) grep=${FGREP-fgrep} ;;
|
| 15 |
+
*) grep=${GREP-grep} ;;
|
| 16 |
+
esac
|
| 17 |
+
pat=""
|
| 18 |
+
while test $# -ne 0; do
|
| 19 |
+
case "$1" in
|
| 20 |
+
-e | -f) opt="$opt $1"; shift; pat="$1"
|
| 21 |
+
if test "$grep" = grep; then # grep is buggy with -e on SVR4
|
| 22 |
+
grep=egrep
|
| 23 |
+
fi;;
|
| 24 |
+
-A | -B) opt="$opt $1 $2"; shift;;
|
| 25 |
+
-*) opt="$opt $1";;
|
| 26 |
+
*) if test -z "$pat"; then
|
| 27 |
+
pat="$1"
|
| 28 |
+
else
|
| 29 |
+
break;
|
| 30 |
+
fi;;
|
| 31 |
+
esac
|
| 32 |
+
shift
|
| 33 |
+
done
|
| 34 |
+
|
| 35 |
+
if test -z "$pat"; then
|
| 36 |
+
echo "grep through bzip2 files"
|
| 37 |
+
echo "usage: $prog [grep_options] pattern [files]"
|
| 38 |
+
exit 1
|
| 39 |
+
fi
|
| 40 |
+
|
| 41 |
+
list=0
|
| 42 |
+
silent=0
|
| 43 |
+
op=`echo "$opt" | sed -e 's/ //g' -e 's/-//g'`
|
| 44 |
+
case "$op" in
|
| 45 |
+
*l*) list=1
|
| 46 |
+
esac
|
| 47 |
+
case "$op" in
|
| 48 |
+
*h*) silent=1
|
| 49 |
+
esac
|
| 50 |
+
|
| 51 |
+
if test $# -eq 0; then
|
| 52 |
+
bzip2 -cdfq | $grep $opt "$pat"
|
| 53 |
+
exit $?
|
| 54 |
+
fi
|
| 55 |
+
|
| 56 |
+
res=0
|
| 57 |
+
for i do
|
| 58 |
+
if test -f "$i"; then :; else if test -f "$i.bz2"; then i="$i.bz2"; fi; fi
|
| 59 |
+
if test $list -eq 1; then
|
| 60 |
+
bzip2 -cdfq "$i" | $grep $opt "$pat" 2>&1 > /dev/null && echo $i
|
| 61 |
+
r=$?
|
| 62 |
+
elif test $# -eq 1 -o $silent -eq 1; then
|
| 63 |
+
bzip2 -cdfq "$i" | $grep $opt "$pat"
|
| 64 |
+
r=$?
|
| 65 |
+
else
|
| 66 |
+
j=$(echo "$i" | sed 's/\\/&&/g;s/|/\\&/g;s/&/\\&/g')
|
| 67 |
+
j=`printf "%s" "$j" | tr '\n' ' '`
|
| 68 |
+
# A trick adapted from
|
| 69 |
+
# https://groups.google.com/forum/#!original/comp.unix.shell/x1345iu10eg/Nn1n-1r1uU0J
|
| 70 |
+
# that has the same effect as the following bash code:
|
| 71 |
+
# bzip2 -cdfq "$i" | $grep $opt "$pat" | sed "s|^|${j}:|"
|
| 72 |
+
# r=${PIPESTATUS[1]}
|
| 73 |
+
exec 3>&1
|
| 74 |
+
eval `
|
| 75 |
+
exec 4>&1 >&3 3>&-
|
| 76 |
+
{
|
| 77 |
+
bzip2 -cdfq "$i" 4>&-
|
| 78 |
+
} | {
|
| 79 |
+
$grep $opt "$pat" 4>&-; echo "r=$?;" >&4
|
| 80 |
+
} | sed "s|^|${j}:|"
|
| 81 |
+
`
|
| 82 |
+
fi
|
| 83 |
+
test "$r" -ne 0 && res="$r"
|
| 84 |
+
done
|
| 85 |
+
exit $res
|
data/conda_envs/abstr/bin/bzfgrep
ADDED
|
@@ -0,0 +1,85 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/bin/sh
|
| 2 |
+
|
| 3 |
+
# Bzgrep wrapped for bzip2,
|
| 4 |
+
# adapted from zgrep by Philippe Troin <phil@fifi.org> for Debian GNU/Linux.
|
| 5 |
+
## zgrep notice:
|
| 6 |
+
## zgrep -- a wrapper around a grep program that decompresses files as needed
|
| 7 |
+
## Adapted from a version sent by Charles Levert <charles@comm.polymtl.ca>
|
| 8 |
+
|
| 9 |
+
PATH="/usr/bin:$PATH"; export PATH
|
| 10 |
+
|
| 11 |
+
prog=`echo $0 | sed 's|.*/||'`
|
| 12 |
+
case "$prog" in
|
| 13 |
+
*egrep) grep=${EGREP-egrep} ;;
|
| 14 |
+
*fgrep) grep=${FGREP-fgrep} ;;
|
| 15 |
+
*) grep=${GREP-grep} ;;
|
| 16 |
+
esac
|
| 17 |
+
pat=""
|
| 18 |
+
while test $# -ne 0; do
|
| 19 |
+
case "$1" in
|
| 20 |
+
-e | -f) opt="$opt $1"; shift; pat="$1"
|
| 21 |
+
if test "$grep" = grep; then # grep is buggy with -e on SVR4
|
| 22 |
+
grep=egrep
|
| 23 |
+
fi;;
|
| 24 |
+
-A | -B) opt="$opt $1 $2"; shift;;
|
| 25 |
+
-*) opt="$opt $1";;
|
| 26 |
+
*) if test -z "$pat"; then
|
| 27 |
+
pat="$1"
|
| 28 |
+
else
|
| 29 |
+
break;
|
| 30 |
+
fi;;
|
| 31 |
+
esac
|
| 32 |
+
shift
|
| 33 |
+
done
|
| 34 |
+
|
| 35 |
+
if test -z "$pat"; then
|
| 36 |
+
echo "grep through bzip2 files"
|
| 37 |
+
echo "usage: $prog [grep_options] pattern [files]"
|
| 38 |
+
exit 1
|
| 39 |
+
fi
|
| 40 |
+
|
| 41 |
+
list=0
|
| 42 |
+
silent=0
|
| 43 |
+
op=`echo "$opt" | sed -e 's/ //g' -e 's/-//g'`
|
| 44 |
+
case "$op" in
|
| 45 |
+
*l*) list=1
|
| 46 |
+
esac
|
| 47 |
+
case "$op" in
|
| 48 |
+
*h*) silent=1
|
| 49 |
+
esac
|
| 50 |
+
|
| 51 |
+
if test $# -eq 0; then
|
| 52 |
+
bzip2 -cdfq | $grep $opt "$pat"
|
| 53 |
+
exit $?
|
| 54 |
+
fi
|
| 55 |
+
|
| 56 |
+
res=0
|
| 57 |
+
for i do
|
| 58 |
+
if test -f "$i"; then :; else if test -f "$i.bz2"; then i="$i.bz2"; fi; fi
|
| 59 |
+
if test $list -eq 1; then
|
| 60 |
+
bzip2 -cdfq "$i" | $grep $opt "$pat" 2>&1 > /dev/null && echo $i
|
| 61 |
+
r=$?
|
| 62 |
+
elif test $# -eq 1 -o $silent -eq 1; then
|
| 63 |
+
bzip2 -cdfq "$i" | $grep $opt "$pat"
|
| 64 |
+
r=$?
|
| 65 |
+
else
|
| 66 |
+
j=$(echo "$i" | sed 's/\\/&&/g;s/|/\\&/g;s/&/\\&/g')
|
| 67 |
+
j=`printf "%s" "$j" | tr '\n' ' '`
|
| 68 |
+
# A trick adapted from
|
| 69 |
+
# https://groups.google.com/forum/#!original/comp.unix.shell/x1345iu10eg/Nn1n-1r1uU0J
|
| 70 |
+
# that has the same effect as the following bash code:
|
| 71 |
+
# bzip2 -cdfq "$i" | $grep $opt "$pat" | sed "s|^|${j}:|"
|
| 72 |
+
# r=${PIPESTATUS[1]}
|
| 73 |
+
exec 3>&1
|
| 74 |
+
eval `
|
| 75 |
+
exec 4>&1 >&3 3>&-
|
| 76 |
+
{
|
| 77 |
+
bzip2 -cdfq "$i" 4>&-
|
| 78 |
+
} | {
|
| 79 |
+
$grep $opt "$pat" 4>&-; echo "r=$?;" >&4
|
| 80 |
+
} | sed "s|^|${j}:|"
|
| 81 |
+
`
|
| 82 |
+
fi
|
| 83 |
+
test "$r" -ne 0 && res="$r"
|
| 84 |
+
done
|
| 85 |
+
exit $res
|
data/conda_envs/abstr/bin/bzgrep
ADDED
|
@@ -0,0 +1,85 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/bin/sh
|
| 2 |
+
|
| 3 |
+
# Bzgrep wrapped for bzip2,
|
| 4 |
+
# adapted from zgrep by Philippe Troin <phil@fifi.org> for Debian GNU/Linux.
|
| 5 |
+
## zgrep notice:
|
| 6 |
+
## zgrep -- a wrapper around a grep program that decompresses files as needed
|
| 7 |
+
## Adapted from a version sent by Charles Levert <charles@comm.polymtl.ca>
|
| 8 |
+
|
| 9 |
+
PATH="/usr/bin:$PATH"; export PATH
|
| 10 |
+
|
| 11 |
+
prog=`echo $0 | sed 's|.*/||'`
|
| 12 |
+
case "$prog" in
|
| 13 |
+
*egrep) grep=${EGREP-egrep} ;;
|
| 14 |
+
*fgrep) grep=${FGREP-fgrep} ;;
|
| 15 |
+
*) grep=${GREP-grep} ;;
|
| 16 |
+
esac
|
| 17 |
+
pat=""
|
| 18 |
+
while test $# -ne 0; do
|
| 19 |
+
case "$1" in
|
| 20 |
+
-e | -f) opt="$opt $1"; shift; pat="$1"
|
| 21 |
+
if test "$grep" = grep; then # grep is buggy with -e on SVR4
|
| 22 |
+
grep=egrep
|
| 23 |
+
fi;;
|
| 24 |
+
-A | -B) opt="$opt $1 $2"; shift;;
|
| 25 |
+
-*) opt="$opt $1";;
|
| 26 |
+
*) if test -z "$pat"; then
|
| 27 |
+
pat="$1"
|
| 28 |
+
else
|
| 29 |
+
break;
|
| 30 |
+
fi;;
|
| 31 |
+
esac
|
| 32 |
+
shift
|
| 33 |
+
done
|
| 34 |
+
|
| 35 |
+
if test -z "$pat"; then
|
| 36 |
+
echo "grep through bzip2 files"
|
| 37 |
+
echo "usage: $prog [grep_options] pattern [files]"
|
| 38 |
+
exit 1
|
| 39 |
+
fi
|
| 40 |
+
|
| 41 |
+
list=0
|
| 42 |
+
silent=0
|
| 43 |
+
op=`echo "$opt" | sed -e 's/ //g' -e 's/-//g'`
|
| 44 |
+
case "$op" in
|
| 45 |
+
*l*) list=1
|
| 46 |
+
esac
|
| 47 |
+
case "$op" in
|
| 48 |
+
*h*) silent=1
|
| 49 |
+
esac
|
| 50 |
+
|
| 51 |
+
if test $# -eq 0; then
|
| 52 |
+
bzip2 -cdfq | $grep $opt "$pat"
|
| 53 |
+
exit $?
|
| 54 |
+
fi
|
| 55 |
+
|
| 56 |
+
res=0
|
| 57 |
+
for i do
|
| 58 |
+
if test -f "$i"; then :; else if test -f "$i.bz2"; then i="$i.bz2"; fi; fi
|
| 59 |
+
if test $list -eq 1; then
|
| 60 |
+
bzip2 -cdfq "$i" | $grep $opt "$pat" 2>&1 > /dev/null && echo $i
|
| 61 |
+
r=$?
|
| 62 |
+
elif test $# -eq 1 -o $silent -eq 1; then
|
| 63 |
+
bzip2 -cdfq "$i" | $grep $opt "$pat"
|
| 64 |
+
r=$?
|
| 65 |
+
else
|
| 66 |
+
j=$(echo "$i" | sed 's/\\/&&/g;s/|/\\&/g;s/&/\\&/g')
|
| 67 |
+
j=`printf "%s" "$j" | tr '\n' ' '`
|
| 68 |
+
# A trick adapted from
|
| 69 |
+
# https://groups.google.com/forum/#!original/comp.unix.shell/x1345iu10eg/Nn1n-1r1uU0J
|
| 70 |
+
# that has the same effect as the following bash code:
|
| 71 |
+
# bzip2 -cdfq "$i" | $grep $opt "$pat" | sed "s|^|${j}:|"
|
| 72 |
+
# r=${PIPESTATUS[1]}
|
| 73 |
+
exec 3>&1
|
| 74 |
+
eval `
|
| 75 |
+
exec 4>&1 >&3 3>&-
|
| 76 |
+
{
|
| 77 |
+
bzip2 -cdfq "$i" 4>&-
|
| 78 |
+
} | {
|
| 79 |
+
$grep $opt "$pat" 4>&-; echo "r=$?;" >&4
|
| 80 |
+
} | sed "s|^|${j}:|"
|
| 81 |
+
`
|
| 82 |
+
fi
|
| 83 |
+
test "$r" -ne 0 && res="$r"
|
| 84 |
+
done
|
| 85 |
+
exit $res
|
data/conda_envs/abstr/bin/bzip2recover
ADDED
|
Binary file (30.9 kB). View file
|
|
|
data/conda_envs/abstr/bin/bzless
ADDED
|
@@ -0,0 +1,61 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/bin/sh
|
| 2 |
+
|
| 3 |
+
# Bzmore wrapped for bzip2,
|
| 4 |
+
# adapted from zmore by Philippe Troin <phil@fifi.org> for Debian GNU/Linux.
|
| 5 |
+
|
| 6 |
+
PATH="/usr/bin:$PATH"; export PATH
|
| 7 |
+
|
| 8 |
+
prog=`echo $0 | sed 's|.*/||'`
|
| 9 |
+
case "$prog" in
|
| 10 |
+
*less) more=less ;;
|
| 11 |
+
*) more=more ;;
|
| 12 |
+
esac
|
| 13 |
+
|
| 14 |
+
if test "`echo -n a`" = "-n a"; then
|
| 15 |
+
# looks like a SysV system:
|
| 16 |
+
n1=''; n2='\c'
|
| 17 |
+
else
|
| 18 |
+
n1='-n'; n2=''
|
| 19 |
+
fi
|
| 20 |
+
oldtty=`stty -g 2>/dev/null`
|
| 21 |
+
if stty -cbreak 2>/dev/null; then
|
| 22 |
+
cb='cbreak'; ncb='-cbreak'
|
| 23 |
+
else
|
| 24 |
+
# 'stty min 1' resets eof to ^a on both SunOS and SysV!
|
| 25 |
+
cb='min 1 -icanon'; ncb='icanon eof ^d'
|
| 26 |
+
fi
|
| 27 |
+
if test $? -eq 0 -a -n "$oldtty"; then
|
| 28 |
+
trap 'stty $oldtty 2>/dev/null; exit' 0 2 3 5 10 13 15
|
| 29 |
+
else
|
| 30 |
+
trap 'stty $ncb echo 2>/dev/null; exit' 0 2 3 5 10 13 15
|
| 31 |
+
fi
|
| 32 |
+
|
| 33 |
+
if test $# = 0; then
|
| 34 |
+
if test -t 0; then
|
| 35 |
+
echo usage: $prog files...
|
| 36 |
+
else
|
| 37 |
+
bzip2 -cdfq | eval $more
|
| 38 |
+
fi
|
| 39 |
+
else
|
| 40 |
+
FIRST=1
|
| 41 |
+
for FILE
|
| 42 |
+
do
|
| 43 |
+
if test $FIRST -eq 0; then
|
| 44 |
+
echo $n1 "--More--(Next file: $FILE)$n2"
|
| 45 |
+
stty $cb -echo 2>/dev/null
|
| 46 |
+
ANS=`dd bs=1 count=1 2>/dev/null`
|
| 47 |
+
stty $ncb echo 2>/dev/null
|
| 48 |
+
echo " "
|
| 49 |
+
if test "$ANS" = 'e' -o "$ANS" = 'q'; then
|
| 50 |
+
exit
|
| 51 |
+
fi
|
| 52 |
+
fi
|
| 53 |
+
if test "$ANS" != 's'; then
|
| 54 |
+
echo "------> $FILE <------"
|
| 55 |
+
bzip2 -cdfq "$FILE" | eval $more
|
| 56 |
+
fi
|
| 57 |
+
if test -t; then
|
| 58 |
+
FIRST=0
|
| 59 |
+
fi
|
| 60 |
+
done
|
| 61 |
+
fi
|
data/conda_envs/abstr/bin/bzmore
ADDED
|
@@ -0,0 +1,61 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/bin/sh
|
| 2 |
+
|
| 3 |
+
# Bzmore wrapped for bzip2,
|
| 4 |
+
# adapted from zmore by Philippe Troin <phil@fifi.org> for Debian GNU/Linux.
|
| 5 |
+
|
| 6 |
+
PATH="/usr/bin:$PATH"; export PATH
|
| 7 |
+
|
| 8 |
+
prog=`echo $0 | sed 's|.*/||'`
|
| 9 |
+
case "$prog" in
|
| 10 |
+
*less) more=less ;;
|
| 11 |
+
*) more=more ;;
|
| 12 |
+
esac
|
| 13 |
+
|
| 14 |
+
if test "`echo -n a`" = "-n a"; then
|
| 15 |
+
# looks like a SysV system:
|
| 16 |
+
n1=''; n2='\c'
|
| 17 |
+
else
|
| 18 |
+
n1='-n'; n2=''
|
| 19 |
+
fi
|
| 20 |
+
oldtty=`stty -g 2>/dev/null`
|
| 21 |
+
if stty -cbreak 2>/dev/null; then
|
| 22 |
+
cb='cbreak'; ncb='-cbreak'
|
| 23 |
+
else
|
| 24 |
+
# 'stty min 1' resets eof to ^a on both SunOS and SysV!
|
| 25 |
+
cb='min 1 -icanon'; ncb='icanon eof ^d'
|
| 26 |
+
fi
|
| 27 |
+
if test $? -eq 0 -a -n "$oldtty"; then
|
| 28 |
+
trap 'stty $oldtty 2>/dev/null; exit' 0 2 3 5 10 13 15
|
| 29 |
+
else
|
| 30 |
+
trap 'stty $ncb echo 2>/dev/null; exit' 0 2 3 5 10 13 15
|
| 31 |
+
fi
|
| 32 |
+
|
| 33 |
+
if test $# = 0; then
|
| 34 |
+
if test -t 0; then
|
| 35 |
+
echo usage: $prog files...
|
| 36 |
+
else
|
| 37 |
+
bzip2 -cdfq | eval $more
|
| 38 |
+
fi
|
| 39 |
+
else
|
| 40 |
+
FIRST=1
|
| 41 |
+
for FILE
|
| 42 |
+
do
|
| 43 |
+
if test $FIRST -eq 0; then
|
| 44 |
+
echo $n1 "--More--(Next file: $FILE)$n2"
|
| 45 |
+
stty $cb -echo 2>/dev/null
|
| 46 |
+
ANS=`dd bs=1 count=1 2>/dev/null`
|
| 47 |
+
stty $ncb echo 2>/dev/null
|
| 48 |
+
echo " "
|
| 49 |
+
if test "$ANS" = 'e' -o "$ANS" = 'q'; then
|
| 50 |
+
exit
|
| 51 |
+
fi
|
| 52 |
+
fi
|
| 53 |
+
if test "$ANS" != 's'; then
|
| 54 |
+
echo "------> $FILE <------"
|
| 55 |
+
bzip2 -cdfq "$FILE" | eval $more
|
| 56 |
+
fi
|
| 57 |
+
if test -t; then
|
| 58 |
+
FIRST=0
|
| 59 |
+
fi
|
| 60 |
+
done
|
| 61 |
+
fi
|
data/conda_envs/abstr/bin/c_rehash
ADDED
|
@@ -0,0 +1,253 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/usr/bin/env perl
|
| 2 |
+
|
| 3 |
+
# WARNING: do not edit!
|
| 4 |
+
# Generated by Makefile from tools/c_rehash.in
|
| 5 |
+
# Copyright 1999-2025 The OpenSSL Project Authors. All Rights Reserved.
|
| 6 |
+
#
|
| 7 |
+
# Licensed under the Apache License 2.0 (the "License"). You may not use
|
| 8 |
+
# this file except in compliance with the License. You can obtain a copy
|
| 9 |
+
# in the file LICENSE in the source distribution or at
|
| 10 |
+
# https://www.openssl.org/source/license.html
|
| 11 |
+
|
| 12 |
+
# Perl c_rehash script, scan all files in a directory
|
| 13 |
+
# and add symbolic links to their hash values.
|
| 14 |
+
|
| 15 |
+
my $dir = "";
|
| 16 |
+
my $prefix = "/zfspool/zangyihe/conda_envs/abstr";
|
| 17 |
+
|
| 18 |
+
my $errorcount = 0;
|
| 19 |
+
my $openssl = $ENV{OPENSSL} || "openssl";
|
| 20 |
+
my $pwd;
|
| 21 |
+
my $x509hash = "-subject_hash";
|
| 22 |
+
my $crlhash = "-hash";
|
| 23 |
+
my $verbose = 0;
|
| 24 |
+
my $symlink_exists=eval {symlink("",""); 1};
|
| 25 |
+
my $removelinks = 1;
|
| 26 |
+
|
| 27 |
+
## Parse flags.
|
| 28 |
+
while ( $ARGV[0] =~ /^-/ ) {
|
| 29 |
+
my $flag = shift @ARGV;
|
| 30 |
+
last if ( $flag eq '--');
|
| 31 |
+
if ( $flag eq '-old') {
|
| 32 |
+
$x509hash = "-subject_hash_old";
|
| 33 |
+
$crlhash = "-hash_old";
|
| 34 |
+
} elsif ( $flag eq '-h' || $flag eq '-help' ) {
|
| 35 |
+
help();
|
| 36 |
+
} elsif ( $flag eq '-n' ) {
|
| 37 |
+
$removelinks = 0;
|
| 38 |
+
} elsif ( $flag eq '-v' ) {
|
| 39 |
+
$verbose++;
|
| 40 |
+
}
|
| 41 |
+
else {
|
| 42 |
+
print STDERR "Usage error; try -h.\n";
|
| 43 |
+
exit 1;
|
| 44 |
+
}
|
| 45 |
+
}
|
| 46 |
+
|
| 47 |
+
sub help {
|
| 48 |
+
print "Usage: c_rehash [-old] [-h] [-help] [-v] [dirs...]\n";
|
| 49 |
+
print " -old use old-style digest\n";
|
| 50 |
+
print " -h or -help print this help text\n";
|
| 51 |
+
print " -v print files removed and linked\n";
|
| 52 |
+
exit 0;
|
| 53 |
+
}
|
| 54 |
+
|
| 55 |
+
eval "require Cwd";
|
| 56 |
+
if (defined(&Cwd::getcwd)) {
|
| 57 |
+
$pwd=Cwd::getcwd();
|
| 58 |
+
} else {
|
| 59 |
+
$pwd=`pwd`;
|
| 60 |
+
chomp($pwd);
|
| 61 |
+
}
|
| 62 |
+
|
| 63 |
+
# DOS/Win32 or Unix delimiter? Prefix our installdir, then search.
|
| 64 |
+
my $path_delim = ($pwd =~ /^[a-z]\:/i) ? ';' : ':';
|
| 65 |
+
$ENV{PATH} = "$prefix/bin" . ($ENV{PATH} ? $path_delim . $ENV{PATH} : "");
|
| 66 |
+
|
| 67 |
+
if (!(-f $openssl && -x $openssl)) {
|
| 68 |
+
my $found = 0;
|
| 69 |
+
foreach (split /$path_delim/, $ENV{PATH}) {
|
| 70 |
+
if (-f "$_/$openssl" && -x "$_/$openssl") {
|
| 71 |
+
$found = 1;
|
| 72 |
+
$openssl = "$_/$openssl";
|
| 73 |
+
last;
|
| 74 |
+
}
|
| 75 |
+
}
|
| 76 |
+
if ($found == 0) {
|
| 77 |
+
print STDERR "c_rehash: rehashing skipped ('openssl' program not available)\n";
|
| 78 |
+
exit 0;
|
| 79 |
+
}
|
| 80 |
+
}
|
| 81 |
+
|
| 82 |
+
if (@ARGV) {
|
| 83 |
+
@dirlist = @ARGV;
|
| 84 |
+
} elsif ($ENV{SSL_CERT_DIR}) {
|
| 85 |
+
@dirlist = split /$path_delim/, $ENV{SSL_CERT_DIR};
|
| 86 |
+
} else {
|
| 87 |
+
$dirlist[0] = "$dir/certs";
|
| 88 |
+
}
|
| 89 |
+
|
| 90 |
+
if (-d $dirlist[0]) {
|
| 91 |
+
chdir $dirlist[0];
|
| 92 |
+
$openssl="$pwd/$openssl" if (!(-f $openssl && -x $openssl));
|
| 93 |
+
chdir $pwd;
|
| 94 |
+
}
|
| 95 |
+
|
| 96 |
+
foreach (@dirlist) {
|
| 97 |
+
if (-d $_ ) {
|
| 98 |
+
if ( -w $_) {
|
| 99 |
+
hash_dir($_);
|
| 100 |
+
} else {
|
| 101 |
+
print "Skipping $_, can't write\n";
|
| 102 |
+
$errorcount++;
|
| 103 |
+
}
|
| 104 |
+
}
|
| 105 |
+
}
|
| 106 |
+
exit($errorcount);
|
| 107 |
+
|
| 108 |
+
sub copy_file {
|
| 109 |
+
my ($src_fname, $dst_fname) = @_;
|
| 110 |
+
|
| 111 |
+
if (open(my $in, "<", $src_fname)) {
|
| 112 |
+
if (open(my $out, ">", $dst_fname)) {
|
| 113 |
+
print $out $_ while (<$in>);
|
| 114 |
+
close $out;
|
| 115 |
+
} else {
|
| 116 |
+
warn "Cannot open $dst_fname for write, $!";
|
| 117 |
+
}
|
| 118 |
+
close $in;
|
| 119 |
+
} else {
|
| 120 |
+
warn "Cannot open $src_fname for read, $!";
|
| 121 |
+
}
|
| 122 |
+
}
|
| 123 |
+
|
| 124 |
+
sub hash_dir {
|
| 125 |
+
my $dir = shift;
|
| 126 |
+
my %hashlist;
|
| 127 |
+
|
| 128 |
+
print "Doing $dir\n";
|
| 129 |
+
|
| 130 |
+
if (!chdir $dir) {
|
| 131 |
+
print STDERR "WARNING: Cannot chdir to '$dir', $!\n";
|
| 132 |
+
return;
|
| 133 |
+
}
|
| 134 |
+
|
| 135 |
+
opendir(DIR, ".") || print STDERR "WARNING: Cannot opendir '.', $!\n";
|
| 136 |
+
my @flist = sort readdir(DIR);
|
| 137 |
+
closedir DIR;
|
| 138 |
+
if ( $removelinks ) {
|
| 139 |
+
# Delete any existing symbolic links
|
| 140 |
+
foreach (grep {/^[\da-f]+\.r{0,1}\d+$/} @flist) {
|
| 141 |
+
if (-l $_) {
|
| 142 |
+
print "unlink $_\n" if $verbose;
|
| 143 |
+
unlink $_ || warn "Can't unlink $_, $!\n";
|
| 144 |
+
}
|
| 145 |
+
}
|
| 146 |
+
}
|
| 147 |
+
FILE: foreach $fname (grep {/\.(pem|crt|cer|crl)$/} @flist) {
|
| 148 |
+
# Check to see if certificates and/or CRLs present.
|
| 149 |
+
my ($cert, $crl) = check_file($fname);
|
| 150 |
+
if (!$cert && !$crl) {
|
| 151 |
+
print STDERR "WARNING: $fname does not contain a certificate or CRL: skipping\n";
|
| 152 |
+
next;
|
| 153 |
+
}
|
| 154 |
+
link_hash_cert($fname) if ($cert);
|
| 155 |
+
link_hash_crl($fname) if ($crl);
|
| 156 |
+
}
|
| 157 |
+
|
| 158 |
+
chdir $pwd;
|
| 159 |
+
}
|
| 160 |
+
|
| 161 |
+
sub check_file {
|
| 162 |
+
my ($is_cert, $is_crl) = (0,0);
|
| 163 |
+
my $fname = $_[0];
|
| 164 |
+
|
| 165 |
+
open(my $in, "<", $fname);
|
| 166 |
+
while(<$in>) {
|
| 167 |
+
if (/^-----BEGIN (.*)-----/) {
|
| 168 |
+
my $hdr = $1;
|
| 169 |
+
if ($hdr =~ /^(X509 |TRUSTED |)CERTIFICATE$/) {
|
| 170 |
+
$is_cert = 1;
|
| 171 |
+
last if ($is_crl);
|
| 172 |
+
} elsif ($hdr eq "X509 CRL") {
|
| 173 |
+
$is_crl = 1;
|
| 174 |
+
last if ($is_cert);
|
| 175 |
+
}
|
| 176 |
+
}
|
| 177 |
+
}
|
| 178 |
+
close $in;
|
| 179 |
+
return ($is_cert, $is_crl);
|
| 180 |
+
}
|
| 181 |
+
|
| 182 |
+
sub compute_hash {
|
| 183 |
+
my $fh;
|
| 184 |
+
if ( $^O eq "VMS" ) {
|
| 185 |
+
# VMS uses the open through shell
|
| 186 |
+
# The file names are safe there and list form is unsupported
|
| 187 |
+
if (!open($fh, "-|", join(' ', @_))) {
|
| 188 |
+
print STDERR "Cannot compute hash on '$fname'\n";
|
| 189 |
+
return;
|
| 190 |
+
}
|
| 191 |
+
} else {
|
| 192 |
+
if (!open($fh, "-|", @_)) {
|
| 193 |
+
print STDERR "Cannot compute hash on '$fname'\n";
|
| 194 |
+
return;
|
| 195 |
+
}
|
| 196 |
+
binmode($fh, ":crlf");
|
| 197 |
+
}
|
| 198 |
+
return (<$fh>, <$fh>);
|
| 199 |
+
}
|
| 200 |
+
|
| 201 |
+
# Link a certificate to its subject name hash value, each hash is of
|
| 202 |
+
# the form <hash>.<n> where n is an integer. If the hash value already exists
|
| 203 |
+
# then we need to up the value of n, unless its a duplicate in which
|
| 204 |
+
# case we skip the link. We check for duplicates by comparing the
|
| 205 |
+
# certificate fingerprints
|
| 206 |
+
|
| 207 |
+
sub link_hash_cert {
|
| 208 |
+
link_hash($_[0], 'cert');
|
| 209 |
+
}
|
| 210 |
+
|
| 211 |
+
# Same as above except for a CRL. CRL links are of the form <hash>.r<n>
|
| 212 |
+
|
| 213 |
+
sub link_hash_crl {
|
| 214 |
+
link_hash($_[0], 'crl');
|
| 215 |
+
}
|
| 216 |
+
|
| 217 |
+
sub link_hash {
|
| 218 |
+
my ($fname, $type) = @_;
|
| 219 |
+
my $is_cert = $type eq 'cert';
|
| 220 |
+
|
| 221 |
+
my ($hash, $fprint) = compute_hash($openssl,
|
| 222 |
+
$is_cert ? "x509" : "crl",
|
| 223 |
+
$is_cert ? $x509hash : $crlhash,
|
| 224 |
+
"-fingerprint", "-noout",
|
| 225 |
+
"-in", $fname);
|
| 226 |
+
chomp $hash;
|
| 227 |
+
$hash =~ s/^.*=// if !$is_cert;
|
| 228 |
+
chomp $fprint;
|
| 229 |
+
return if !$hash;
|
| 230 |
+
$fprint =~ s/^.*=//;
|
| 231 |
+
$fprint =~ tr/://d;
|
| 232 |
+
my $suffix = 0;
|
| 233 |
+
# Search for an unused hash filename
|
| 234 |
+
my $crlmark = $is_cert ? "" : "r";
|
| 235 |
+
while(exists $hashlist{"$hash.$crlmark$suffix"}) {
|
| 236 |
+
# Hash matches: if fingerprint matches its a duplicate cert
|
| 237 |
+
if ($hashlist{"$hash.$crlmark$suffix"} eq $fprint) {
|
| 238 |
+
my $what = $is_cert ? 'certificate' : 'CRL';
|
| 239 |
+
print STDERR "WARNING: Skipping duplicate $what $fname\n";
|
| 240 |
+
return;
|
| 241 |
+
}
|
| 242 |
+
$suffix++;
|
| 243 |
+
}
|
| 244 |
+
$hash .= ".$crlmark$suffix";
|
| 245 |
+
if ($symlink_exists) {
|
| 246 |
+
print "link $fname -> $hash\n" if $verbose;
|
| 247 |
+
symlink $fname, $hash || warn "Can't symlink, $!";
|
| 248 |
+
} else {
|
| 249 |
+
print "copy $fname -> $hash\n" if $verbose;
|
| 250 |
+
copy_file($fname, $hash);
|
| 251 |
+
}
|
| 252 |
+
$hashlist{$hash} = $fprint;
|
| 253 |
+
}
|
data/conda_envs/abstr/bin/captoinfo
ADDED
|
Binary file (92.2 kB). View file
|
|
|
data/conda_envs/abstr/bin/clear
ADDED
|
Binary file (14.3 kB). View file
|
|
|
data/conda_envs/abstr/bin/ct2-fairseq-converter
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/zfspool/zangyihe/conda_envs/abstr/bin/python3.11
|
| 2 |
+
import sys
|
| 3 |
+
from ctranslate2.converters.fairseq import main
|
| 4 |
+
if __name__ == '__main__':
|
| 5 |
+
sys.argv[0] = sys.argv[0].removesuffix('.exe')
|
| 6 |
+
sys.exit(main())
|
data/conda_envs/abstr/bin/ct2-marian-converter
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/zfspool/zangyihe/conda_envs/abstr/bin/python3.11
|
| 2 |
+
import sys
|
| 3 |
+
from ctranslate2.converters.marian import main
|
| 4 |
+
if __name__ == '__main__':
|
| 5 |
+
sys.argv[0] = sys.argv[0].removesuffix('.exe')
|
| 6 |
+
sys.exit(main())
|
data/conda_envs/abstr/bin/ct2-openai-gpt2-converter
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/zfspool/zangyihe/conda_envs/abstr/bin/python3.11
|
| 2 |
+
import sys
|
| 3 |
+
from ctranslate2.converters.openai_gpt2 import main
|
| 4 |
+
if __name__ == '__main__':
|
| 5 |
+
sys.argv[0] = sys.argv[0].removesuffix('.exe')
|
| 6 |
+
sys.exit(main())
|
data/conda_envs/abstr/bin/ct2-opennmt-py-converter
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/zfspool/zangyihe/conda_envs/abstr/bin/python3.11
|
| 2 |
+
import sys
|
| 3 |
+
from ctranslate2.converters.opennmt_py import main
|
| 4 |
+
if __name__ == '__main__':
|
| 5 |
+
sys.argv[0] = sys.argv[0].removesuffix('.exe')
|
| 6 |
+
sys.exit(main())
|
data/conda_envs/abstr/bin/ct2-opennmt-tf-converter
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/zfspool/zangyihe/conda_envs/abstr/bin/python3.11
|
| 2 |
+
import sys
|
| 3 |
+
from ctranslate2.converters.opennmt_tf import main
|
| 4 |
+
if __name__ == '__main__':
|
| 5 |
+
sys.argv[0] = sys.argv[0].removesuffix('.exe')
|
| 6 |
+
sys.exit(main())
|
data/conda_envs/abstr/bin/ct2-opus-mt-converter
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/zfspool/zangyihe/conda_envs/abstr/bin/python3.11
|
| 2 |
+
import sys
|
| 3 |
+
from ctranslate2.converters.opus_mt import main
|
| 4 |
+
if __name__ == '__main__':
|
| 5 |
+
sys.argv[0] = sys.argv[0].removesuffix('.exe')
|
| 6 |
+
sys.exit(main())
|
data/conda_envs/abstr/bin/ct2-transformers-converter
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/zfspool/zangyihe/conda_envs/abstr/bin/python3.11
|
| 2 |
+
import sys
|
| 3 |
+
from ctranslate2.converters.transformers import main
|
| 4 |
+
if __name__ == '__main__':
|
| 5 |
+
sys.argv[0] = sys.argv[0].removesuffix('.exe')
|
| 6 |
+
sys.exit(main())
|
data/conda_envs/abstr/bin/datasets-cli
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/zfspool/zangyihe/conda_envs/abstr/bin/python3.11
|
| 2 |
+
import sys
|
| 3 |
+
from datasets.commands.datasets_cli import main
|
| 4 |
+
if __name__ == '__main__':
|
| 5 |
+
sys.argv[0] = sys.argv[0].removesuffix('.exe')
|
| 6 |
+
sys.exit(main())
|
data/conda_envs/abstr/bin/derb
ADDED
|
Binary file (29.3 kB). View file
|
|
|
data/conda_envs/abstr/bin/ezdxf
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/zfspool/zangyihe/conda_envs/abstr/bin/python3.11
|
| 2 |
+
import sys
|
| 3 |
+
from ezdxf.__main__ import main
|
| 4 |
+
if __name__ == '__main__':
|
| 5 |
+
sys.argv[0] = sys.argv[0].removesuffix('.exe')
|
| 6 |
+
sys.exit(main())
|
data/conda_envs/abstr/bin/f2py
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/zfspool/zangyihe/conda_envs/abstr/bin/python3.11
|
| 2 |
+
import sys
|
| 3 |
+
from numpy.f2py.f2py2e import main
|
| 4 |
+
if __name__ == '__main__':
|
| 5 |
+
sys.argv[0] = sys.argv[0].removesuffix('.exe')
|
| 6 |
+
sys.exit(main())
|
data/conda_envs/abstr/bin/fonttools
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/zfspool/zangyihe/conda_envs/abstr/bin/python3.11
|
| 2 |
+
import sys
|
| 3 |
+
from fontTools.__main__ import main
|
| 4 |
+
if __name__ == '__main__':
|
| 5 |
+
sys.argv[0] = sys.argv[0].removesuffix('.exe')
|
| 6 |
+
sys.exit(main())
|
data/conda_envs/abstr/bin/genbrk
ADDED
|
Binary file (22.1 kB). View file
|
|
|
data/conda_envs/abstr/bin/gencfu
ADDED
|
Binary file (17.3 kB). View file
|
|
|
data/conda_envs/abstr/bin/gencnval
ADDED
|
Binary file (35.1 kB). View file
|
|
|
data/conda_envs/abstr/bin/gendict
ADDED
|
Binary file (32.1 kB). View file
|
|
|
data/conda_envs/abstr/bin/get_gprof
ADDED
|
@@ -0,0 +1,75 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/zfspool/zangyihe/conda_envs/abstr/bin/python3.11
|
| 2 |
+
#
|
| 3 |
+
# Author: Mike McKerns (mmckerns @caltech and @uqfoundation)
|
| 4 |
+
# Copyright (c) 2008-2016 California Institute of Technology.
|
| 5 |
+
# Copyright (c) 2016-2025 The Uncertainty Quantification Foundation.
|
| 6 |
+
# License: 3-clause BSD. The full license text is available at:
|
| 7 |
+
# - https://github.com/uqfoundation/dill/blob/master/LICENSE
|
| 8 |
+
'''
|
| 9 |
+
build profile graph for the given instance
|
| 10 |
+
|
| 11 |
+
running:
|
| 12 |
+
$ get_gprof <args> <instance>
|
| 13 |
+
|
| 14 |
+
executes:
|
| 15 |
+
gprof2dot -f pstats <args> <type>.prof | dot -Tpng -o <type>.call.png
|
| 16 |
+
|
| 17 |
+
where:
|
| 18 |
+
<args> are arguments for gprof2dot, such as "-n 5 -e 5"
|
| 19 |
+
<instance> is code to create the instance to profile
|
| 20 |
+
<type> is the class of the instance (i.e. type(instance))
|
| 21 |
+
|
| 22 |
+
For example:
|
| 23 |
+
$ get_gprof -n 5 -e 1 "import numpy; numpy.array([1,2])"
|
| 24 |
+
|
| 25 |
+
will create 'ndarray.call.png' with the profile graph for numpy.array([1,2]),
|
| 26 |
+
where '-n 5' eliminates nodes below 5% threshold, similarly '-e 1' eliminates
|
| 27 |
+
edges below 1% threshold
|
| 28 |
+
'''
|
| 29 |
+
|
| 30 |
+
if __name__ == "__main__":
|
| 31 |
+
import sys
|
| 32 |
+
if len(sys.argv) < 2:
|
| 33 |
+
print ("Please provide an object instance (e.g. 'import math; math.pi')")
|
| 34 |
+
sys.exit()
|
| 35 |
+
# grab args for gprof2dot
|
| 36 |
+
args = sys.argv[1:-1]
|
| 37 |
+
args = ' '.join(args)
|
| 38 |
+
# last arg builds the object
|
| 39 |
+
obj = sys.argv[-1]
|
| 40 |
+
obj = obj.split(';')
|
| 41 |
+
# multi-line prep for generating an instance
|
| 42 |
+
for line in obj[:-1]:
|
| 43 |
+
exec(line)
|
| 44 |
+
# one-line generation of an instance
|
| 45 |
+
try:
|
| 46 |
+
obj = eval(obj[-1])
|
| 47 |
+
except Exception:
|
| 48 |
+
print ("Error processing object instance")
|
| 49 |
+
sys.exit()
|
| 50 |
+
|
| 51 |
+
# get object 'name'
|
| 52 |
+
objtype = type(obj)
|
| 53 |
+
name = getattr(objtype, '__name__', getattr(objtype, '__class__', objtype))
|
| 54 |
+
|
| 55 |
+
# profile dumping an object
|
| 56 |
+
import dill
|
| 57 |
+
import os
|
| 58 |
+
import cProfile
|
| 59 |
+
#name = os.path.splitext(os.path.basename(__file__))[0]
|
| 60 |
+
cProfile.run("dill.dumps(obj)", filename="%s.prof" % name)
|
| 61 |
+
msg = "gprof2dot -f pstats %s %s.prof | dot -Tpng -o %s.call.png" % (args, name, name)
|
| 62 |
+
try:
|
| 63 |
+
res = os.system(msg)
|
| 64 |
+
except Exception:
|
| 65 |
+
print ("Please verify install of 'gprof2dot' to view profile graphs")
|
| 66 |
+
if res:
|
| 67 |
+
print ("Please verify install of 'gprof2dot' to view profile graphs")
|
| 68 |
+
|
| 69 |
+
# get stats
|
| 70 |
+
f_prof = "%s.prof" % name
|
| 71 |
+
import pstats
|
| 72 |
+
stats = pstats.Stats(f_prof, stream=sys.stdout)
|
| 73 |
+
stats.strip_dirs().sort_stats('cumtime')
|
| 74 |
+
stats.print_stats(20) #XXX: save to file instead of print top 20?
|
| 75 |
+
os.remove(f_prof)
|
data/conda_envs/abstr/bin/get_objgraph
ADDED
|
@@ -0,0 +1,54 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/zfspool/zangyihe/conda_envs/abstr/bin/python3.11
|
| 2 |
+
#
|
| 3 |
+
# Author: Mike McKerns (mmckerns @caltech and @uqfoundation)
|
| 4 |
+
# Copyright (c) 2008-2016 California Institute of Technology.
|
| 5 |
+
# Copyright (c) 2016-2025 The Uncertainty Quantification Foundation.
|
| 6 |
+
# License: 3-clause BSD. The full license text is available at:
|
| 7 |
+
# - https://github.com/uqfoundation/dill/blob/master/LICENSE
|
| 8 |
+
"""
|
| 9 |
+
display the reference paths for objects in ``dill.types`` or a .pkl file
|
| 10 |
+
|
| 11 |
+
Notes:
|
| 12 |
+
the generated image is useful in showing the pointer references in
|
| 13 |
+
objects that are or can be pickled. Any object in ``dill.objects``
|
| 14 |
+
listed in ``dill.load_types(picklable=True, unpicklable=True)`` works.
|
| 15 |
+
|
| 16 |
+
Examples::
|
| 17 |
+
|
| 18 |
+
$ get_objgraph ArrayType
|
| 19 |
+
Image generated as ArrayType.png
|
| 20 |
+
"""
|
| 21 |
+
|
| 22 |
+
import dill as pickle
|
| 23 |
+
#pickle.debug.trace(True)
|
| 24 |
+
#import pickle
|
| 25 |
+
|
| 26 |
+
# get all objects for testing
|
| 27 |
+
from dill import load_types
|
| 28 |
+
load_types(pickleable=True,unpickleable=True)
|
| 29 |
+
from dill import objects
|
| 30 |
+
|
| 31 |
+
if __name__ == "__main__":
|
| 32 |
+
import sys
|
| 33 |
+
if len(sys.argv) != 2:
|
| 34 |
+
print ("Please provide exactly one file or type name (e.g. 'IntType')")
|
| 35 |
+
msg = "\n"
|
| 36 |
+
for objtype in list(objects.keys())[:40]:
|
| 37 |
+
msg += objtype + ', '
|
| 38 |
+
print (msg + "...")
|
| 39 |
+
else:
|
| 40 |
+
objtype = str(sys.argv[-1])
|
| 41 |
+
try:
|
| 42 |
+
obj = objects[objtype]
|
| 43 |
+
except KeyError:
|
| 44 |
+
obj = pickle.load(open(objtype,'rb'))
|
| 45 |
+
import os
|
| 46 |
+
objtype = os.path.splitext(objtype)[0]
|
| 47 |
+
try:
|
| 48 |
+
import objgraph
|
| 49 |
+
objgraph.show_refs(obj, filename=objtype+'.png')
|
| 50 |
+
except ImportError:
|
| 51 |
+
print ("Please install 'objgraph' to view object graphs")
|
| 52 |
+
|
| 53 |
+
|
| 54 |
+
# EOF
|
data/conda_envs/abstr/bin/hf
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/zfspool/zangyihe/conda_envs/abstr/bin/python3.11
|
| 2 |
+
import sys
|
| 3 |
+
from huggingface_hub.cli.hf import main
|
| 4 |
+
if __name__ == '__main__':
|
| 5 |
+
sys.argv[0] = sys.argv[0].removesuffix('.exe')
|
| 6 |
+
sys.exit(main())
|
data/conda_envs/abstr/bin/httpx
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/zfspool/zangyihe/conda_envs/abstr/bin/python3.11
|
| 2 |
+
import sys
|
| 3 |
+
from httpx import main
|
| 4 |
+
if __name__ == '__main__':
|
| 5 |
+
sys.argv[0] = sys.argv[0].removesuffix('.exe')
|
| 6 |
+
sys.exit(main())
|
data/conda_envs/abstr/bin/icu-config
ADDED
|
@@ -0,0 +1,771 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/bin/sh
|
| 2 |
+
## -*-sh-*-
|
| 3 |
+
#set -x
|
| 4 |
+
# BEGIN of icu-config-top
|
| 5 |
+
# Copyright (C) 2016 and later: Unicode, Inc. and others.
|
| 6 |
+
# License & terms of use: http://www.unicode.org/copyright.html
|
| 7 |
+
#******************************************************************************
|
| 8 |
+
# Copyright (C) 1999-2013, International Business Machines
|
| 9 |
+
# Corporation and others. All Rights Reserved.
|
| 10 |
+
#******************************************************************************
|
| 11 |
+
# This script is designed to aid configuration of ICU.
|
| 12 |
+
# rpath links a library search path right into the binaries.
|
| 13 |
+
#
|
| 14 |
+
# Note: it's preferred to use the .pc files rather than icu-config.
|
| 15 |
+
#
|
| 16 |
+
|
| 17 |
+
### END of icu-config-top
|
| 18 |
+
|
| 19 |
+
## Zero out prefix.
|
| 20 |
+
execprefix=
|
| 21 |
+
prefix=
|
| 22 |
+
|
| 23 |
+
|
| 24 |
+
loaddefs()
|
| 25 |
+
{
|
| 26 |
+
|
| 27 |
+
# Following from icu/icu4c/source/config/Makefile.inc
|
| 28 |
+
# Copyright (C) 2016 and later: Unicode, Inc. and others.
|
| 29 |
+
# License & terms of use: http://www.unicode.org/copyright.html
|
| 30 |
+
## -*-makefile-*-
|
| 31 |
+
#******************************************************************************
|
| 32 |
+
# Copyright (C) 1999-2014, International Business Machines
|
| 33 |
+
# Corporation and others. All Rights Reserved.
|
| 34 |
+
#******************************************************************************
|
| 35 |
+
# This Makefile.inc is designed to be included into projects which make use
|
| 36 |
+
# of the ICU.
|
| 37 |
+
|
| 38 |
+
# CONTENTS OF THIS FILE
|
| 39 |
+
# 1). Base configuration information and linkage
|
| 40 |
+
# 2). Variables giving access to ICU tools
|
| 41 |
+
# 3). Host information
|
| 42 |
+
# 4). Compiler flags and settings
|
| 43 |
+
# 5). Data Packaging directives
|
| 44 |
+
# 6). Include of platform make fragment (mh-* file)
|
| 45 |
+
|
| 46 |
+
##################################################################
|
| 47 |
+
#
|
| 48 |
+
# *1* base configuration information and linkage
|
| 49 |
+
#
|
| 50 |
+
##################################################################
|
| 51 |
+
# The PREFIX is the base of where ICU is installed.
|
| 52 |
+
# Inside this directory you should find bin, lib, include/unicode,
|
| 53 |
+
# etc. If ICU is not installed in this directory, you must change the
|
| 54 |
+
# following line. There should exist ${prefix}/include/unicode/utypes.h
|
| 55 |
+
# for example.
|
| 56 |
+
default_prefix="/zfspool/zangyihe/conda_envs/abstr"
|
| 57 |
+
if [ "x${prefix}" = "x" ]; then prefix="$default_prefix"; fi
|
| 58 |
+
exec_prefix="${prefix}"
|
| 59 |
+
libdir="${exec_prefix}/lib"
|
| 60 |
+
libexecdir="${exec_prefix}/libexec"
|
| 61 |
+
bindir="${exec_prefix}/bin"
|
| 62 |
+
datarootdir="${prefix}/share"
|
| 63 |
+
datadir="${datarootdir}"
|
| 64 |
+
sbindir="${exec_prefix}/sbin"
|
| 65 |
+
|
| 66 |
+
# about the ICU version
|
| 67 |
+
VERSION="78.2"
|
| 68 |
+
UNICODE_VERSION="17.0"
|
| 69 |
+
|
| 70 |
+
# The prefix for ICU libraries, normally 'icu'
|
| 71 |
+
ICUPREFIX="icu"
|
| 72 |
+
PACKAGE="icu"
|
| 73 |
+
LIBICU="lib${ICUPREFIX}"
|
| 74 |
+
|
| 75 |
+
# Static library prefix and file extension
|
| 76 |
+
STATIC_PREFIX="s"
|
| 77 |
+
LIBSICU="lib${STATIC_PREFIX}${ICUPREFIX}"
|
| 78 |
+
A="a"
|
| 79 |
+
|
| 80 |
+
# Suffix at the end of libraries. Usually empty.
|
| 81 |
+
ICULIBSUFFIX=""
|
| 82 |
+
# ICULIBSUFFIX_VERSION is non-empty if it is to contain a library
|
| 83 |
+
# version. For example, if it is 21, it means libraries are named
|
| 84 |
+
# libicuuc21.so for example.
|
| 85 |
+
|
| 86 |
+
# rpath links a library search path right into the binaries.
|
| 87 |
+
## mh-files MUST NOT override RPATHLDFLAGS unless they provide
|
| 88 |
+
## equivalent '#SH#' lines for icu-config fixup
|
| 89 |
+
default_ENABLE_RPATH="NO"
|
| 90 |
+
if [ "x${ENABLE_RPATH}" = "x" ]; then ENABLE_RPATH="$default_ENABLE_RPATH"; fi
|
| 91 |
+
RPATHLDFLAGS="${LD_RPATH}${LD_RPATH_PRE}${libdir}"
|
| 92 |
+
|
| 93 |
+
# icu-config version of above 'if':
|
| 94 |
+
case "x$ENABLE_RPATH" in
|
| 95 |
+
x[yY]*)
|
| 96 |
+
ENABLE_RPATH=YES
|
| 97 |
+
RPATHLDFLAGS="${LD_RPATH}${LD_RPATH_PRE}${libdir}"
|
| 98 |
+
;;
|
| 99 |
+
|
| 100 |
+
x[nN]*)
|
| 101 |
+
ENABLE_RPATH=NO
|
| 102 |
+
RPATHLDFLAGS=""
|
| 103 |
+
;;
|
| 104 |
+
|
| 105 |
+
x)
|
| 106 |
+
ENABLE_RPATH=NO
|
| 107 |
+
RPATHLDFLAGS=""
|
| 108 |
+
;;
|
| 109 |
+
|
| 110 |
+
*)
|
| 111 |
+
echo $0: Unknown --enable-rpath value ${ENABLE_RPATH} 1>&2
|
| 112 |
+
exit 3
|
| 113 |
+
;;
|
| 114 |
+
esac
|
| 115 |
+
|
| 116 |
+
# Name flexibility for the library naming scheme. Any modifications should
|
| 117 |
+
# be made in the mh- file for the specific platform.
|
| 118 |
+
DATA_STUBNAME="data"
|
| 119 |
+
COMMON_STUBNAME="uc"
|
| 120 |
+
I18N_STUBNAME="i18n"
|
| 121 |
+
LAYOUTEX_STUBNAME="lx"
|
| 122 |
+
IO_STUBNAME="io"
|
| 123 |
+
TOOLUTIL_STUBNAME="tu"
|
| 124 |
+
CTESTFW_STUBNAME="test"
|
| 125 |
+
|
| 126 |
+
|
| 127 |
+
### To link your application with ICU:
|
| 128 |
+
# 1. use LDFLAGS, CFLAGS, etc from above
|
| 129 |
+
# 2. link with ${ICULIBS}
|
| 130 |
+
# 3. optionally, add one or more of:
|
| 131 |
+
# - ${ICULIBS_I18N} - i18n library, formatting, etc.
|
| 132 |
+
# - ${ICULIBS_ICUIO} - ICU stdio equivalent library
|
| 133 |
+
|
| 134 |
+
ICULIBS_COMMON="-l${ICUPREFIX}uc${ICULIBSUFFIX}${ICULIBSUFFIX_VERSION}"
|
| 135 |
+
ICULIBS_DATA="-l${ICUPREFIX}${DATA_STUBNAME}${ICULIBSUFFIX}${ICULIBSUFFIX_VERSION}"
|
| 136 |
+
ICULIBS_I18N="-l${ICUPREFIX}${I18N_STUBNAME}${ICULIBSUFFIX}${ICULIBSUFFIX_VERSION}"
|
| 137 |
+
ICULIBS_TOOLUTIL="-l${ICUPREFIX}tu${ICULIBSUFFIX}${ICULIBSUFFIX_VERSION}"
|
| 138 |
+
ICULIBS_CTESTFW="-l${ICUPREFIX}ctestfw${ICULIBSUFFIX}${ICULIBSUFFIX_VERSION}"
|
| 139 |
+
ICULIBS_ICUIO="-l${ICUPREFIX}io${ICULIBSUFFIX}${ICULIBSUFFIX_VERSION}"
|
| 140 |
+
ICULIBS_OBSOLETE="-l${ICUPREFIX}obsolete${ICULIBSUFFIX}${ICULIBSUFFIX_VERSION}"
|
| 141 |
+
ICULIBS_LAYOUTEX="-l${ICUPREFIX}lx${ICULIBSUFFIX}${ICULIBSUFFIX_VERSION}"
|
| 142 |
+
ICULIBS_BASE="-L${libdir}"
|
| 143 |
+
|
| 144 |
+
# for icu-config to test with
|
| 145 |
+
ICULIBS_COMMON_LIB_NAME="${LIBICU}${COMMON_STUBNAME}${ICULIBSUFFIX}${ICULIBSUFFIX_VERSION}.${SO}"
|
| 146 |
+
ICULIBS_COMMON_LIB_NAME_A="${LIBICU}${COMMON_STUBNAME}${ICULIBSUFFIX}.${A}"
|
| 147 |
+
|
| 148 |
+
# ICULIBS is the set of libraries your application should link
|
| 149 |
+
# with usually. Many applications will want to add ${ICULIBS_I18N} as well.
|
| 150 |
+
ICULIBS="${ICULIBS_BASE} ${ICULIBS_I18N} ${ICULIBS_COMMON} ${ICULIBS_DATA} "
|
| 151 |
+
|
| 152 |
+
# Proper echo newline handling is needed in icu-config
|
| 153 |
+
ECHO_N="-n"
|
| 154 |
+
ECHO_C=""
|
| 155 |
+
# Not currently being used but good to have for proper tab handling
|
| 156 |
+
ECHO_T=""
|
| 157 |
+
|
| 158 |
+
##################################################################
|
| 159 |
+
#
|
| 160 |
+
# *2* access to ICU tools
|
| 161 |
+
#
|
| 162 |
+
##################################################################
|
| 163 |
+
# Environment variable to set a runtime search path
|
| 164 |
+
# (Overridden when necessary in -mh files)
|
| 165 |
+
LDLIBRARYPATH_ENVVAR="LD_LIBRARY_PATH"
|
| 166 |
+
|
| 167 |
+
# Versioned target for a shared library
|
| 168 |
+
## FINAL_SO_TARGET = ${SO_TARGET}.${SO_TARGET_VERSION}
|
| 169 |
+
## MIDDLE_SO_TARGET = ${SO_TARGET}.${SO_TARGET_VERSION_MAJOR}
|
| 170 |
+
|
| 171 |
+
# Access to important ICU tools.
|
| 172 |
+
# Use as follows: ${INVOKE} ${GENRB} arguments ..
|
| 173 |
+
INVOKE="${LDLIBRARYPATH_ENVVAR}=${libdir}:$$${LDLIBRARYPATH_ENVVAR} ${LEAK_CHECKER}"
|
| 174 |
+
GENCCODE="${sbindir}/genccode"
|
| 175 |
+
ICUPKG="${sbindir}/icupkg"
|
| 176 |
+
GENCMN="${sbindir}/gencmn"
|
| 177 |
+
GENRB="${bindir}/genrb"
|
| 178 |
+
PKGDATA="${bindir}/pkgdata"
|
| 179 |
+
|
| 180 |
+
# moved here because of dependencies
|
| 181 |
+
pkgdatadir="${datadir}/${PACKAGE}${ICULIBSUFFIX}/${VERSION}"
|
| 182 |
+
pkglibdir="${libdir}/${PACKAGE}${ICULIBSUFFIX}/${VERSION}"
|
| 183 |
+
|
| 184 |
+
##################################################################
|
| 185 |
+
#
|
| 186 |
+
# *3* Information about the host
|
| 187 |
+
#
|
| 188 |
+
##################################################################
|
| 189 |
+
|
| 190 |
+
# Information about the host that 'configure' was run on.
|
| 191 |
+
host="x86_64-conda-linux-gnu"
|
| 192 |
+
host_alias="x86_64-conda-linux-gnu"
|
| 193 |
+
host_cpu="x86_64"
|
| 194 |
+
host_vendor="conda"
|
| 195 |
+
host_os="linux-gnu"
|
| 196 |
+
# Our platform canonical name (as determined by configure)
|
| 197 |
+
# this is a #define value (i.e. U_XXXX or XXXX)
|
| 198 |
+
platform="U_LINUX"
|
| 199 |
+
|
| 200 |
+
##################################################################
|
| 201 |
+
#
|
| 202 |
+
# *4* compiler flags and misc. options
|
| 203 |
+
#
|
| 204 |
+
##################################################################
|
| 205 |
+
AR="/home/conda/feedstock_root/build_artifacts/icu_1767969498351/_build_env/bin/x86_64-conda-linux-gnu-ar"
|
| 206 |
+
# initial tab keeps it out of the shell version.
|
| 207 |
+
ARFLAGS=" ${ARFLAGS}"
|
| 208 |
+
CC="/home/conda/feedstock_root/build_artifacts/icu_1767969498351/_build_env/bin/x86_64-conda-linux-gnu-cc"
|
| 209 |
+
CPP="/home/conda/feedstock_root/build_artifacts/icu_1767969498351/_build_env/bin/x86_64-conda-linux-gnu-cpp"
|
| 210 |
+
CFLAGS="-std=c11 "
|
| 211 |
+
CPPFLAGS="-I${prefix}/include"
|
| 212 |
+
CXXFLAGS="-std=c++17"
|
| 213 |
+
CXX="/home/conda/feedstock_root/build_artifacts/icu_1767969498351/_build_env/bin/x86_64-conda-linux-gnu-c++"
|
| 214 |
+
DEFAULT_MODE="dll"
|
| 215 |
+
DEFS="-DPACKAGE_NAME=\"ICU\" -DPACKAGE_TARNAME=\"icu4c\" -DPACKAGE_VERSION=\"78.2\" -DPACKAGE_STRING=\"ICU\ 78.2\" -DPACKAGE_BUGREPORT=\"https://icu.unicode.org/bugs\" -DPACKAGE_URL=\"https://icu.unicode.org/\" -DHAVE_STDIO_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_STRINGS_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_UNISTD_H=1 -DSTDC_HEADERS=1 -DSIZEOF_VOID_P=8 -DHAVE_LIBM=1 -DHAVE_ELF_H=1 -DHAVE_DLFCN_H=1 -DHAVE_DLOPEN=1 -DHAVE_GETTIMEOFDAY=1 -DHAVE_LIBPTHREAD=1 -DHAVE_DIRENT_H=1 -DHAVE_WCHAR_H=1 -DSIZEOF_WCHAR_T=4 "
|
| 216 |
+
# use a consistent INSTALL
|
| 217 |
+
INSTALL="${SHELL} ${pkgdatadir}/install-sh -c"
|
| 218 |
+
INSTALL_DATA="${INSTALL} -m 644"
|
| 219 |
+
INSTALL_PROGRAM="${INSTALL}"
|
| 220 |
+
INSTALL_SCRIPT="${INSTALL}"
|
| 221 |
+
LDFLAGS="${RPATHLDFLAGS}"
|
| 222 |
+
LIBS="-lpthread -ldl -lm "
|
| 223 |
+
LIB_M=""
|
| 224 |
+
LIB_VERSION="78.2"
|
| 225 |
+
LIB_VERSION_MAJOR="78"
|
| 226 |
+
MKINSTALLDIRS="${SHELL} ${pkgdatadir}/mkinstalldirs"
|
| 227 |
+
RANLIB="/home/conda/feedstock_root/build_artifacts/icu_1767969498351/_build_env/bin/x86_64-conda-linux-gnu-ranlib"
|
| 228 |
+
RMV="rm -rf"
|
| 229 |
+
SHELL="/bin/sh"
|
| 230 |
+
SHLIB_c="${CC} ${DEFS} ${CPPFLAGS} ${CFLAGS} ${LDFLAGS} -shared"
|
| 231 |
+
SHLIB_cc="${CXX} ${DEFS} ${CPPFLAGS} ${CXXFLAGS} ${LDFLAGS} -shared"
|
| 232 |
+
U_IS_BIG_ENDIAN="0"
|
| 233 |
+
includedir="${prefix}/include"
|
| 234 |
+
infodir="${datarootdir}/info"
|
| 235 |
+
localstatedir="${prefix}/var"
|
| 236 |
+
mandir="${datarootdir}/man"
|
| 237 |
+
oldincludedir="/usr/include"
|
| 238 |
+
program_transform_name="s,x,x,"
|
| 239 |
+
sharedstatedir="${prefix}/com"
|
| 240 |
+
sysconfdir="${prefix}/etc"
|
| 241 |
+
INSTALL_L="${INSTALL_DATA}"
|
| 242 |
+
|
| 243 |
+
# for derivative builds - don't bother with VERBOSE/NONVERBOSE SILENT_COMPILE
|
| 244 |
+
|
| 245 |
+
##################################################################
|
| 246 |
+
#
|
| 247 |
+
# *5* packaging options and directories
|
| 248 |
+
#
|
| 249 |
+
##################################################################
|
| 250 |
+
|
| 251 |
+
# The basename of the ICU data file (i.e. icudt21b )
|
| 252 |
+
ICUDATA_CHAR="l"
|
| 253 |
+
ICUDATA_NAME="icudt78l"
|
| 254 |
+
|
| 255 |
+
# Defaults for pkgdata's mode and directories
|
| 256 |
+
# The default data dir changes depending on what packaging mode
|
| 257 |
+
# is being used
|
| 258 |
+
if [ "x$PKGDATA_MODE" = "x" ];
|
| 259 |
+
then
|
| 260 |
+
PKGDATA_MODE="dll"
|
| 261 |
+
fi
|
| 262 |
+
|
| 263 |
+
case "$PKGDATA_MODE" in
|
| 264 |
+
common)
|
| 265 |
+
ICUDATA_DIR="${pkgdatadir}"
|
| 266 |
+
ICUPKGDATA_DIR="${ICUDATA_DIR}"
|
| 267 |
+
;;
|
| 268 |
+
dll)
|
| 269 |
+
ICUDATA_DIR="${pkgdatadir}"
|
| 270 |
+
ICUPKGDATA_DIR="${libdir}"
|
| 271 |
+
;;
|
| 272 |
+
*)
|
| 273 |
+
ICUDATA_DIR="${pkgdatadir}"
|
| 274 |
+
ICUPKGDATA_DIR="${ICUDATA_DIR}"
|
| 275 |
+
;;
|
| 276 |
+
|
| 277 |
+
esac
|
| 278 |
+
|
| 279 |
+
GENCCODE_ASSEMBLY="-a gcc"
|
| 280 |
+
|
| 281 |
+
##################################################################
|
| 282 |
+
#
|
| 283 |
+
# *6* Inclusion of platform make fragment (mh-* file)
|
| 284 |
+
#
|
| 285 |
+
##################################################################
|
| 286 |
+
# The mh- file ("make fragment") for the platform is included here.
|
| 287 |
+
# It may override the above settings.
|
| 288 |
+
# It is put last so that the mh-file can override anything.
|
| 289 |
+
# The selfcheck is just a sanity check that this makefile is
|
| 290 |
+
# parseable. The mh fragment is only included if this does not occur.
|
| 291 |
+
|
| 292 |
+
# Following from mh-linux
|
| 293 |
+
## -*-makefile-*-
|
| 294 |
+
## Copyright (C) 2016 and later: Unicode, Inc. and others.
|
| 295 |
+
## License & terms of use: http://www.unicode.org/copyright.html
|
| 296 |
+
## Linux-specific setup
|
| 297 |
+
## Copyright (c) 1999-2013, International Business Machines Corporation and
|
| 298 |
+
## others. All Rights Reserved.
|
| 299 |
+
|
| 300 |
+
## Commands to generate dependency files
|
| 301 |
+
GEN_DEPS_c="${CC} -E -MM ${DEFS} ${CPPFLAGS}"
|
| 302 |
+
GEN_DEPS_cc="${CXX} -E -MM ${DEFS} ${CPPFLAGS} ${CXXFLAGS}"
|
| 303 |
+
|
| 304 |
+
## Flags for position independent code
|
| 305 |
+
SHAREDLIBCFLAGS="-fPIC"
|
| 306 |
+
SHAREDLIBCXXFLAGS="-fPIC"
|
| 307 |
+
SHAREDLIBCPPFLAGS="-DPIC"
|
| 308 |
+
|
| 309 |
+
## Additional flags when building libraries and with threads
|
| 310 |
+
THREADSCPPFLAGS="-D_REENTRANT"
|
| 311 |
+
LIBCPPFLAGS=""
|
| 312 |
+
|
| 313 |
+
## Compiler switch to embed a runtime search path
|
| 314 |
+
LD_RPATH="-Wl,-zorigin,-rpath,\$\$ORIGIN "
|
| 315 |
+
LD_RPATH_PRE="-Wl,-rpath,"
|
| 316 |
+
|
| 317 |
+
## These are the library specific LDFLAGS
|
| 318 |
+
LDFLAGSICUDT="-nodefaultlibs -nostdlib"
|
| 319 |
+
|
| 320 |
+
## Compiler switch to embed a library name
|
| 321 |
+
# The initial tab in the next line is to prevent icu-config from reading it.
|
| 322 |
+
# We can't depend on MIDDLE_SO_TARGET being set.
|
| 323 |
+
LD_SONAME=
|
| 324 |
+
|
| 325 |
+
## Shared library options
|
| 326 |
+
LD_SOOPTIONS="-Wl,-Bsymbolic"
|
| 327 |
+
|
| 328 |
+
## Shared object suffix
|
| 329 |
+
SO="so"
|
| 330 |
+
## Non-shared intermediate object suffix
|
| 331 |
+
STATIC_O="ao"
|
| 332 |
+
|
| 333 |
+
## Compilation rules
|
| 334 |
+
|
| 335 |
+
## Dependency rules
|
| 336 |
+
|
| 337 |
+
## Versioned libraries rules
|
| 338 |
+
|
| 339 |
+
## Bind internal references
|
| 340 |
+
|
| 341 |
+
# LDflags that pkgdata will use
|
| 342 |
+
BIR_LDFLAGS="-Wl,-Bsymbolic"
|
| 343 |
+
|
| 344 |
+
# Dependencies [i.e. map files] for the final library
|
| 345 |
+
BIR_DEPS=""
|
| 346 |
+
|
| 347 |
+
## Remove shared library 's'
|
| 348 |
+
STATIC_PREFIX_WHEN_USED=""
|
| 349 |
+
STATIC_PREFIX=""
|
| 350 |
+
|
| 351 |
+
## End Linux-specific setup
|
| 352 |
+
|
| 353 |
+
## -*-sh-*-
|
| 354 |
+
## BEGIN of icu-config-bottom.
|
| 355 |
+
## Copyright (C) 2016 and later: Unicode, Inc. and others.
|
| 356 |
+
## License & terms of use: http://www.unicode.org/copyright.html
|
| 357 |
+
## Copyright (c) 2002-2013, International Business Machines Corporation and
|
| 358 |
+
## others. All Rights Reserved.
|
| 359 |
+
|
| 360 |
+
# For MinGW do we want the common DLL to go into the bin location?
|
| 361 |
+
if [ "$MINGW_MOVEDLLSTOBINDIR" = "YES" ]; then
|
| 362 |
+
ICUUC_FILE="${bindir}/${ICULIBS_COMMON_LIB_NAME}"
|
| 363 |
+
else
|
| 364 |
+
ICUUC_FILE="${libdir}/${ICULIBS_COMMON_LIB_NAME}"
|
| 365 |
+
fi
|
| 366 |
+
|
| 367 |
+
ICUUC_FILE_A="${libdir}/${ICULIBS_COMMON_LIB_NAME_A}"
|
| 368 |
+
|
| 369 |
+
# echo ENABLE RPATH $ENABLE_RPATH and RPATHLDFLAGS=${RPATH_LDFLAGS}
|
| 370 |
+
if [ "x$PKGDATA_MODE" = "x" ]; then
|
| 371 |
+
PKGDATA_MODE=dll
|
| 372 |
+
fi
|
| 373 |
+
|
| 374 |
+
}
|
| 375 |
+
|
| 376 |
+
## The actual code of icu-config goes here.
|
| 377 |
+
|
| 378 |
+
ME=`basename "$0"`
|
| 379 |
+
|
| 380 |
+
allflags()
|
| 381 |
+
{
|
| 382 |
+
echo " --noverify Don't verify that ICU is actually installed."
|
| 383 |
+
echo " --bindir Print binary directory path (bin)"
|
| 384 |
+
echo " --cc Print C compiler used [CC]"
|
| 385 |
+
echo " --cflags Print C compiler flags [CFLAGS]"
|
| 386 |
+
echo " --cflags-dynamic Print additional C flags for"
|
| 387 |
+
echo " building shared libraries."
|
| 388 |
+
echo " --cppflags Print C Preprocessor flags [CPPFLAGS]"
|
| 389 |
+
echo " --cppflags-dynamic Print additional C Preprocessor flags for"
|
| 390 |
+
echo " building shared libraries."
|
| 391 |
+
echo " --cppflags-searchpath Print only -I include directives (-Iinclude)"
|
| 392 |
+
echo " --cxx Print C++ compiler used [CXX]"
|
| 393 |
+
echo " --cxxflags Print C++ compiler flags [CXXFLAGS]"
|
| 394 |
+
echo " --cxxflags-dynamic Print additional C++ flags for"
|
| 395 |
+
echo " building shared libraries."
|
| 396 |
+
echo " --detect-prefix Attempt to detect prefix based on PATH"
|
| 397 |
+
echo " --exec-prefix Print prefix for executables (/bin)"
|
| 398 |
+
echo " --exists Return with 0 status if ICU exists else fail"
|
| 399 |
+
echo " --help, -?, --usage Print this message"
|
| 400 |
+
echo " --icudata Print shortname of ICU data file (icudt21l)"
|
| 401 |
+
echo " --icudata-install-dir Print path to install data to - use as --install option to pkgdata(1)"
|
| 402 |
+
echo " --icudata-mode Print default ICU pkgdata mode (dll) - use as --mode option to pkgdata(1)."
|
| 403 |
+
echo " --icudatadir Print path to packaged archive data. Can set as [ICU_DATA]"
|
| 404 |
+
echo " --invoke Print commands to invoke an ICU program"
|
| 405 |
+
echo " --invoke=<prog> Print commands to invoke an ICU program named <prog> (ex: genrb)"
|
| 406 |
+
echo " --ldflags Print -L search path and -l libraries to link with ICU [LDFLAGS]. This is for the data, uc (common), and i18n libraries only. "
|
| 407 |
+
echo " --ldflags-libsonly Same as --ldflags, but only the -l directives"
|
| 408 |
+
echo " --ldflags-searchpath Print only -L (search path) directive"
|
| 409 |
+
echo " --ldflags-system Print only system libs ICU links with (-lpthread, -lm)"
|
| 410 |
+
echo " --ldflags-icuio Print ICU icuio link directive. Use in addition to --ldflags "
|
| 411 |
+
echo " --ldflags-obsolete Print ICU obsolete link directive. Use in addition to --ldflags. (requires icuapps/obsolete to be built and installed.) "
|
| 412 |
+
echo " --mandir Print manpage (man) path"
|
| 413 |
+
echo " --prefix Print PREFIX to icu install (/usr/local)"
|
| 414 |
+
echo " --prefix=XXX Set prefix to XXX for remainder of command"
|
| 415 |
+
echo " --sbindir Print system binary path (sbin) "
|
| 416 |
+
echo " --shared-datadir Print shared data (share) path. This is NOT the ICU data dir."
|
| 417 |
+
echo " --shlib-c Print the command to compile and build C shared libraries with ICU"
|
| 418 |
+
echo " --shlib-cc Print the command to compile and build C++ shared libraries with ICU"
|
| 419 |
+
echo " --sysconfdir Print system config (etc) path"
|
| 420 |
+
echo " --unicode-version Print version of Unicode data used in ICU ($UNICODE_VERSION)"
|
| 421 |
+
echo " --version Print ICU version ($VERSION)"
|
| 422 |
+
echo " --incfile Print path to Makefile.inc"
|
| 423 |
+
echo " --incpkgdatafile Print path to pkgdata.inc (for -O option of pkgdata)"
|
| 424 |
+
echo " --install Print path to install-sh"
|
| 425 |
+
echo " --mkinstalldirs Print path to mkinstalldirs"
|
| 426 |
+
}
|
| 427 |
+
|
| 428 |
+
## Print the normal usage message
|
| 429 |
+
shortusage()
|
| 430 |
+
{
|
| 431 |
+
echo "usage: ${ME} " `allflags | cut -c-25 | sed -e 's%.*%[ & ]%'`
|
| 432 |
+
}
|
| 433 |
+
|
| 434 |
+
|
| 435 |
+
usage()
|
| 436 |
+
{
|
| 437 |
+
echo "${ME}: icu-config: ICU configuration helper script"
|
| 438 |
+
echo
|
| 439 |
+
echo "The most commonly used options will be --cflags, --cxxflags, --cppflags, and --ldflags."
|
| 440 |
+
echo 'Example (in make): CPFLAGS=$(shell icu-config --cppflags)'
|
| 441 |
+
echo ' LDFLAGS=$(shell icu-config --ldflags)'
|
| 442 |
+
echo " (etc).."
|
| 443 |
+
echo
|
| 444 |
+
echo "Usage:"
|
| 445 |
+
allflags
|
| 446 |
+
|
| 447 |
+
echo
|
| 448 |
+
echo " [Brackets] show MAKE variable equivalents, (parenthesis) show example output"
|
| 449 |
+
echo
|
| 450 |
+
echo "Copyright (c) 2002-2013, International Business Machines Corporation and others. All Rights Reserved."
|
| 451 |
+
echo
|
| 452 |
+
echo "NOTE: Please consider using the pkg-config (.pc) files instead of icu-config."
|
| 453 |
+
echo " See: <https://unicode-org.github.io/icu/userguide/howtouseicu> "
|
| 454 |
+
}
|
| 455 |
+
|
| 456 |
+
## Check the sanity of current variables
|
| 457 |
+
sanity()
|
| 458 |
+
{
|
| 459 |
+
if [ ! -f "${ICUUC_FILE}" -a ! -f "${ICUUC_FILE_A}" ] && [ ${IGNORE_ICUUC_FILE_CHECK} = "no" ] && [ ${SANITY} = "sane" ];
|
| 460 |
+
then
|
| 461 |
+
echo "### $ME: Can't find ${ICUUC_FILE} - ICU prefix is wrong." 1>&2
|
| 462 |
+
echo "### Try the --prefix= option " 1>&2
|
| 463 |
+
echo "### or --detect-prefix" 1>&2
|
| 464 |
+
echo "### (If you want to disable this check, use the --noverify option)" 1>&2
|
| 465 |
+
echo "### $ME: Exitting." 1>&2
|
| 466 |
+
exit 2
|
| 467 |
+
fi
|
| 468 |
+
}
|
| 469 |
+
|
| 470 |
+
## Main starts here.
|
| 471 |
+
|
| 472 |
+
if [ $# -lt 1 ]; then
|
| 473 |
+
shortusage
|
| 474 |
+
exit 1
|
| 475 |
+
fi
|
| 476 |
+
|
| 477 |
+
# For certain options (e.g. --detect-prefix) don't check for icuuc library file.
|
| 478 |
+
|
| 479 |
+
IGNORE_ICUUC_FILE_CHECK="no";
|
| 480 |
+
|
| 481 |
+
SANITY="sane"
|
| 482 |
+
|
| 483 |
+
case "$1" in
|
| 484 |
+
--noverify)
|
| 485 |
+
SANITY="nosanity"
|
| 486 |
+
shift
|
| 487 |
+
;;
|
| 488 |
+
esac
|
| 489 |
+
|
| 490 |
+
case "$1" in
|
| 491 |
+
*prefix*)
|
| 492 |
+
IGNORE_ICUUC_FILE_CHECK="yes"
|
| 493 |
+
;;
|
| 494 |
+
esac
|
| 495 |
+
|
| 496 |
+
# Load our variables from autoconf
|
| 497 |
+
# ALWAYS load twice because of dependencies
|
| 498 |
+
loaddefs
|
| 499 |
+
loaddefs
|
| 500 |
+
|
| 501 |
+
if [ $# -gt 0 -a $1 = "--selfcheck" ];
|
| 502 |
+
then
|
| 503 |
+
echo "passed"
|
| 504 |
+
exit
|
| 505 |
+
# EXIT for self check
|
| 506 |
+
fi
|
| 507 |
+
|
| 508 |
+
sanity
|
| 509 |
+
|
| 510 |
+
while [ $# -gt 0 ];
|
| 511 |
+
do
|
| 512 |
+
arg="$1"
|
| 513 |
+
var=`echo $arg | sed -e 's/^[^=]*=//'`
|
| 514 |
+
# echo "### processing $arg" 1>&2
|
| 515 |
+
case "$arg" in
|
| 516 |
+
|
| 517 |
+
# undocumented.
|
| 518 |
+
--debug)
|
| 519 |
+
set -x
|
| 520 |
+
;;
|
| 521 |
+
|
| 522 |
+
--noverify)
|
| 523 |
+
echo "### $ME: Error: --noverify must be the first argument." 1>&2
|
| 524 |
+
exit 1
|
| 525 |
+
;;
|
| 526 |
+
|
| 527 |
+
--so)
|
| 528 |
+
echo $SO
|
| 529 |
+
;;
|
| 530 |
+
|
| 531 |
+
--bindir)
|
| 532 |
+
echo $bindir
|
| 533 |
+
;;
|
| 534 |
+
|
| 535 |
+
--libdir)
|
| 536 |
+
echo $libdir
|
| 537 |
+
;;
|
| 538 |
+
|
| 539 |
+
--exists)
|
| 540 |
+
sanity
|
| 541 |
+
;;
|
| 542 |
+
|
| 543 |
+
--sbindir)
|
| 544 |
+
echo $sbindir
|
| 545 |
+
;;
|
| 546 |
+
|
| 547 |
+
--mkinstalldirs)
|
| 548 |
+
echo ${MKINSTALLDIRS}
|
| 549 |
+
;;
|
| 550 |
+
|
| 551 |
+
--install)
|
| 552 |
+
echo ${INSTALL}
|
| 553 |
+
;;
|
| 554 |
+
|
| 555 |
+
--invoke=*)
|
| 556 |
+
QUOT="\""
|
| 557 |
+
CMD="${var}"
|
| 558 |
+
|
| 559 |
+
# If it's not a locally executable command (1st choice) then
|
| 560 |
+
# search for it in the ICU directories.
|
| 561 |
+
if [ ! -x ${CMD} ]; then
|
| 562 |
+
if [ -x ${bindir}/${var} ]; then
|
| 563 |
+
CMD="${bindir}/${var}"
|
| 564 |
+
fi
|
| 565 |
+
if [ -x ${sbindir}/${var} ]; then
|
| 566 |
+
CMD="${sbindir}/${var}"
|
| 567 |
+
fi
|
| 568 |
+
fi
|
| 569 |
+
|
| 570 |
+
echo "env ${QUOT}${LDLIBRARYPATH_ENVVAR}=${libdir}:"'${'"${LDLIBRARYPATH_ENVVAR}"'}'${QUOT} ${CMD}
|
| 571 |
+
;;
|
| 572 |
+
|
| 573 |
+
--invoke)
|
| 574 |
+
QUOT="\""
|
| 575 |
+
echo "env ${QUOT}${LDLIBRARYPATH_ENVVAR}=${libdir}:"'${'"${LDLIBRARYPATH_ENVVAR}"'}'${QUOT}
|
| 576 |
+
;;
|
| 577 |
+
|
| 578 |
+
--cflags)
|
| 579 |
+
echo $ECHO_N "${CFLAGS} ${ECHO_C}"
|
| 580 |
+
;;
|
| 581 |
+
|
| 582 |
+
--cc)
|
| 583 |
+
echo $ECHO_N "${CC} ${ECHO_C}"
|
| 584 |
+
;;
|
| 585 |
+
|
| 586 |
+
--cxx)
|
| 587 |
+
echo $ECHO_N "${CXX} ${ECHO_C}"
|
| 588 |
+
;;
|
| 589 |
+
|
| 590 |
+
--cxxflags)
|
| 591 |
+
echo $ECHO_N "${CXXFLAGS} ${ECHO_C}"
|
| 592 |
+
;;
|
| 593 |
+
|
| 594 |
+
--cppflags)
|
| 595 |
+
# Don't echo the -I. - it's unneeded.
|
| 596 |
+
echo $ECHO_N "${CPPFLAGS} ${ECHO_C}" | sed -e 's/-I. //'
|
| 597 |
+
;;
|
| 598 |
+
|
| 599 |
+
--cppflags-searchpath)
|
| 600 |
+
echo $ECHO_N "-I${prefix}/include ${ECHO_C}"
|
| 601 |
+
;;
|
| 602 |
+
|
| 603 |
+
--cppflags-dynamic)
|
| 604 |
+
echo $ECHO_N "${SHAREDLIBCPPFLAGS} ${ECHO_C}"
|
| 605 |
+
;;
|
| 606 |
+
|
| 607 |
+
--cxxflags-dynamic)
|
| 608 |
+
echo $ECHO_N "${SHAREDLIBCXXFLAGS} ${ECHO_C}"
|
| 609 |
+
;;
|
| 610 |
+
|
| 611 |
+
--cflags-dynamic)
|
| 612 |
+
echo $ECHO_N "${SHAREDLIBCFLAGS} ${ECHO_C}"
|
| 613 |
+
;;
|
| 614 |
+
|
| 615 |
+
--ldflags-system)
|
| 616 |
+
echo $ECHO_N "${LIBS} ${ECHO_C}"
|
| 617 |
+
;;
|
| 618 |
+
|
| 619 |
+
--ldflags)
|
| 620 |
+
echo $ECHO_N "${LDFLAGS} ${ICULIBS} ${ECHO_C}"
|
| 621 |
+
# $RPATH_LDFLAGS
|
| 622 |
+
;;
|
| 623 |
+
|
| 624 |
+
--ldflags-libsonly)
|
| 625 |
+
echo $ECHO_N "${ICULIBS_I18N} ${ICULIBS_COMMON} ${ICULIBS_DATA} ${ECHO_C}"
|
| 626 |
+
;;
|
| 627 |
+
|
| 628 |
+
--ldflags-icuio)
|
| 629 |
+
echo $ECHO_N " ${ICULIBS_ICUIO} ${ECHO_C}"
|
| 630 |
+
;;
|
| 631 |
+
|
| 632 |
+
--ldflags-obsolete)
|
| 633 |
+
echo $ECHO_N "${ICULIBS_OBSOLETE} ${ECHO_C}"
|
| 634 |
+
;;
|
| 635 |
+
|
| 636 |
+
--ldflags-toolutil)
|
| 637 |
+
echo $ECHO_N " ${ICULIBS_TOOLUTIL} ${ECHO_C}"
|
| 638 |
+
;;
|
| 639 |
+
|
| 640 |
+
--ldflags-layout)
|
| 641 |
+
echo ${ME}: ERROR: the old layout engine has been removed. use HarfBuzz.
|
| 642 |
+
exit 1
|
| 643 |
+
;;
|
| 644 |
+
|
| 645 |
+
--ldflags-searchpath)
|
| 646 |
+
echo $ECHO_N "-L${libdir} ${ECHO_C}"
|
| 647 |
+
;;
|
| 648 |
+
|
| 649 |
+
--detect-prefix)
|
| 650 |
+
HERE=`echo $0 | sed -e "s/$ME//g"`
|
| 651 |
+
if [ -f "${HERE}/../lib/${ICULIBS_COMMON_LIB_NAME}" -o -f "${HERE}/../lib/${ICULIBS_COMMON_LIB_NAME_A}" ]; then
|
| 652 |
+
prefix="${HERE}/.."
|
| 653 |
+
echo "## Using --prefix=${prefix}" 1>&2
|
| 654 |
+
fi
|
| 655 |
+
loaddefs
|
| 656 |
+
loaddefs
|
| 657 |
+
;;
|
| 658 |
+
|
| 659 |
+
--exec-prefix)
|
| 660 |
+
echo $exec_prefix
|
| 661 |
+
;;
|
| 662 |
+
|
| 663 |
+
--prefix)
|
| 664 |
+
echo $prefix
|
| 665 |
+
;;
|
| 666 |
+
|
| 667 |
+
--prefix=*)
|
| 668 |
+
prefix=$var
|
| 669 |
+
loaddefs
|
| 670 |
+
loaddefs
|
| 671 |
+
;;
|
| 672 |
+
|
| 673 |
+
--sysconfdir)
|
| 674 |
+
echo $sysconfdir
|
| 675 |
+
;;
|
| 676 |
+
|
| 677 |
+
--mandir)
|
| 678 |
+
echo $mandir
|
| 679 |
+
;;
|
| 680 |
+
|
| 681 |
+
--shared-datadir)
|
| 682 |
+
echo $ECHO_N "${datadir} ${ECHO_C}"
|
| 683 |
+
;;
|
| 684 |
+
|
| 685 |
+
--incfile)
|
| 686 |
+
echo $ECHO_N "${pkglibdir}/Makefile.inc ${ECHO_C}"
|
| 687 |
+
;;
|
| 688 |
+
|
| 689 |
+
--incpkgdatafile)
|
| 690 |
+
echo $ECHO_N "${pkglibdir}/pkgdata.inc ${ECHO_C}"
|
| 691 |
+
;;
|
| 692 |
+
|
| 693 |
+
--icudata)
|
| 694 |
+
echo $ECHO_N "${ICUDATA_NAME} ${ECHO_C}"
|
| 695 |
+
;;
|
| 696 |
+
|
| 697 |
+
--icudata-mode)
|
| 698 |
+
echo $ECHO_N "${PKGDATA_MODE} ${ECHO_C}"
|
| 699 |
+
;;
|
| 700 |
+
|
| 701 |
+
--icudata-install-dir)
|
| 702 |
+
echo $ECHO_N "${ICUPKGDATA_DIR} ${ECHO_C}"
|
| 703 |
+
;;
|
| 704 |
+
|
| 705 |
+
--icudatadir)
|
| 706 |
+
echo $ECHO_N "${ICUDATA_DIR} ${ECHO_C}"
|
| 707 |
+
;;
|
| 708 |
+
|
| 709 |
+
--shlib-c)
|
| 710 |
+
echo $ECHO_N "${SHLIB_c} ${ECHO_C}"
|
| 711 |
+
;;
|
| 712 |
+
|
| 713 |
+
--shlib-cc)
|
| 714 |
+
echo $ECHO_N "${SHLIB_cc} ${ECHO_C}"
|
| 715 |
+
;;
|
| 716 |
+
|
| 717 |
+
--version)
|
| 718 |
+
echo $ECHO_N $VERSION
|
| 719 |
+
;;
|
| 720 |
+
|
| 721 |
+
--unicode-version)
|
| 722 |
+
echo $ECHO_N $UNICODE_VERSION
|
| 723 |
+
;;
|
| 724 |
+
|
| 725 |
+
--host)
|
| 726 |
+
echo $host
|
| 727 |
+
exit 0
|
| 728 |
+
;;
|
| 729 |
+
|
| 730 |
+
--help)
|
| 731 |
+
usage
|
| 732 |
+
exit 0
|
| 733 |
+
;;
|
| 734 |
+
|
| 735 |
+
--usage)
|
| 736 |
+
usage
|
| 737 |
+
exit 0
|
| 738 |
+
;;
|
| 739 |
+
|
| 740 |
+
# --enable-rpath=*)
|
| 741 |
+
# ENABLE_RPATH=$var
|
| 742 |
+
# loaddefs
|
| 743 |
+
# ;;
|
| 744 |
+
|
| 745 |
+
-?)
|
| 746 |
+
usage
|
| 747 |
+
exit 0
|
| 748 |
+
;;
|
| 749 |
+
|
| 750 |
+
*)
|
| 751 |
+
echo ${ME}: ERROR Unknown Option $arg 1>&2
|
| 752 |
+
echo 1>&2
|
| 753 |
+
shortusage 1>&2
|
| 754 |
+
echo "### $ME: Exitting." 1>&2
|
| 755 |
+
exit 1;
|
| 756 |
+
;;
|
| 757 |
+
esac
|
| 758 |
+
shift
|
| 759 |
+
|
| 760 |
+
# Reset the ignore icuuc file check flag
|
| 761 |
+
if [ $IGNORE_ICUUC_FILE_CHECK = "yes" ]; then
|
| 762 |
+
IGNORE_ICUUC_FILE_CHECK="no"
|
| 763 |
+
sanity
|
| 764 |
+
fi
|
| 765 |
+
done
|
| 766 |
+
echo
|
| 767 |
+
# Check once before we quit (will check last used prefix)
|
| 768 |
+
sanity
|
| 769 |
+
## END of icu-config-bottom
|
| 770 |
+
|
| 771 |
+
exit 0
|
data/conda_envs/abstr/bin/icuexportdata
ADDED
|
Binary file (68 kB). View file
|
|
|
data/conda_envs/abstr/bin/icuinfo
ADDED
|
Binary file (17 kB). View file
|
|
|
data/conda_envs/abstr/bin/idle3
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/zfspool/zangyihe/conda_envs/abstr/bin/python3.11
|
| 2 |
+
|
| 3 |
+
from idlelib.pyshell import main
|
| 4 |
+
if __name__ == '__main__':
|
| 5 |
+
main()
|
data/conda_envs/abstr/bin/idle3.11
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/zfspool/zangyihe/conda_envs/abstr/bin/python3.11
|
| 2 |
+
|
| 3 |
+
from idlelib.pyshell import main
|
| 4 |
+
if __name__ == '__main__':
|
| 5 |
+
main()
|
data/conda_envs/abstr/bin/infocmp
ADDED
|
Binary file (63.5 kB). View file
|
|
|
data/conda_envs/abstr/bin/infotocap
ADDED
|
Binary file (92.2 kB). View file
|
|
|
data/conda_envs/abstr/bin/isympy
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/zfspool/zangyihe/conda_envs/abstr/bin/python3.11
|
| 2 |
+
import sys
|
| 3 |
+
from isympy import main
|
| 4 |
+
if __name__ == '__main__':
|
| 5 |
+
sys.argv[0] = sys.argv[0].removesuffix('.exe')
|
| 6 |
+
sys.exit(main())
|
data/conda_envs/abstr/bin/lzcmp
ADDED
|
@@ -0,0 +1,224 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/bin/sh
|
| 2 |
+
# SPDX-License-Identifier: GPL-2.0-or-later
|
| 3 |
+
|
| 4 |
+
# Copyright (C) 1998, 2002, 2006, 2007 Free Software Foundation
|
| 5 |
+
# Copyright (C) 1993 Jean-loup Gailly
|
| 6 |
+
|
| 7 |
+
# Modified for XZ Utils by Andrew Dudman and Lasse Collin.
|
| 8 |
+
|
| 9 |
+
# This program is free software; you can redistribute it and/or modify
|
| 10 |
+
# it under the terms of the GNU General Public License as published by
|
| 11 |
+
# the Free Software Foundation; either version 2 of the License, or
|
| 12 |
+
# (at your option) any later version.
|
| 13 |
+
|
| 14 |
+
# This program is distributed in the hope that it will be useful,
|
| 15 |
+
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
| 16 |
+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
| 17 |
+
# GNU General Public License for more details.
|
| 18 |
+
|
| 19 |
+
# shellcheck shell=sh disable=SC1003,SC2016
|
| 20 |
+
|
| 21 |
+
|
| 22 |
+
#SET_PATH - This line is a placeholder to ease patching this script.
|
| 23 |
+
|
| 24 |
+
# Instead of unsetting XZ_OPT, just make sure that xz will use file format
|
| 25 |
+
# autodetection. This way memory usage limit and thread limit can be
|
| 26 |
+
# specified via XZ_OPT. With gzip, bzip2, and lzop it's OK to just unset the
|
| 27 |
+
# environment variables.
|
| 28 |
+
xz='xz --format=auto'
|
| 29 |
+
unset GZIP BZIP BZIP2 LZOP
|
| 30 |
+
|
| 31 |
+
case ${0##*/} in
|
| 32 |
+
*cmp*) prog=xzcmp; cmp=${CMP:-cmp};;
|
| 33 |
+
*) prog=xzdiff; cmp=${DIFF:-diff};;
|
| 34 |
+
esac
|
| 35 |
+
|
| 36 |
+
version="$prog (XZ Utils) 5.8.2"
|
| 37 |
+
|
| 38 |
+
usage="Usage: ${0##*/} [OPTION]... FILE1 [FILE2]
|
| 39 |
+
Compare FILE1 to FILE2, using their uncompressed contents if they are
|
| 40 |
+
compressed. If FILE2 is omitted, then the files compared are FILE1 and
|
| 41 |
+
FILE1 from which the compression format suffix has been stripped.
|
| 42 |
+
|
| 43 |
+
Do comparisons like '$cmp' does. OPTIONs are the same as for '$cmp'.
|
| 44 |
+
|
| 45 |
+
Report bugs to <xz@tukaani.org>."
|
| 46 |
+
|
| 47 |
+
# sed script to escape all ' for the shell, and then (to handle trailing
|
| 48 |
+
# newlines correctly) turn trailing X on last line into '.
|
| 49 |
+
escape='
|
| 50 |
+
s/'\''/'\''\\'\'''\''/g
|
| 51 |
+
$s/X$/'\''/
|
| 52 |
+
'
|
| 53 |
+
|
| 54 |
+
while :; do
|
| 55 |
+
case $1 in
|
| 56 |
+
--h*) printf '%s\n' "$usage" || exit 2; exit;;
|
| 57 |
+
--v*) printf '%s\n' "$version" || exit 2; exit;;
|
| 58 |
+
--) shift; break;;
|
| 59 |
+
-*\'*) cmp="$cmp '"`printf '%sX\n' "$1" | sed "$escape"`;;
|
| 60 |
+
-?*) cmp="$cmp '$1'";;
|
| 61 |
+
*) break;;
|
| 62 |
+
esac
|
| 63 |
+
shift
|
| 64 |
+
done
|
| 65 |
+
cmp="$cmp --"
|
| 66 |
+
|
| 67 |
+
for file; do
|
| 68 |
+
test "X$file" = X- || true < "$file" || exit 2
|
| 69 |
+
done
|
| 70 |
+
|
| 71 |
+
# xz needs -qQ to ignore warnings like unsupported check type.
|
| 72 |
+
xz1="$xz -qQ"
|
| 73 |
+
xz2="$xz -qQ"
|
| 74 |
+
xz_status=0
|
| 75 |
+
exec 3>&1
|
| 76 |
+
|
| 77 |
+
if test $# -eq 1; then
|
| 78 |
+
case $1 in
|
| 79 |
+
*[-.]xz | *[-.]lzma | *[-.]lz | *.t[lx]z)
|
| 80 |
+
;;
|
| 81 |
+
*[-.]bz2 | *.tbz | *.tbz2)
|
| 82 |
+
xz1=bzip2;;
|
| 83 |
+
*[-.][zZ] | *_z | *[-.]gz | *.t[ag]z)
|
| 84 |
+
xz1=gzip;;
|
| 85 |
+
*[-.]lzo | *.tzo)
|
| 86 |
+
xz1=lzop;;
|
| 87 |
+
*[-.]zst | *.tzst)
|
| 88 |
+
xz1='zstd -q';;
|
| 89 |
+
*[-.]lz4)
|
| 90 |
+
xz1=lz4;;
|
| 91 |
+
*)
|
| 92 |
+
printf '%s\n' "$0: $1: Unknown compressed file name suffix" >&2
|
| 93 |
+
exit 2;;
|
| 94 |
+
esac
|
| 95 |
+
# The FILE variable is used with eval, and shellcheck doesn't see that.
|
| 96 |
+
# shellcheck disable=SC2034
|
| 97 |
+
case $1 in
|
| 98 |
+
*[-.][zZ] | *_z | *[-.][gx]z | *[-.]bz2 | *[-.]lzma | *[-.]lz | *[-.]lzo | *[-.]zst | *[-.]lz4)
|
| 99 |
+
FILE=`expr "X$1" : 'X\(.*\)[-.][abglmostxzZ24]*$'`;;
|
| 100 |
+
*.t[abglx]z)
|
| 101 |
+
FILE=`expr "X$1" : 'X\(.*[-.]t\)[abglx]z$'`ar;;
|
| 102 |
+
*.tbz2)
|
| 103 |
+
FILE=`expr "X$1" : 'X\(.*[-.]t\)bz2$'`ar;;
|
| 104 |
+
*.tzo)
|
| 105 |
+
FILE=`expr "X$1" : 'X\(.*[-.]t\)zo$'`ar;;
|
| 106 |
+
*.tzst)
|
| 107 |
+
FILE=`expr "X$1" : 'X\(.*[-.]t\)zst$'`ar;;
|
| 108 |
+
esac
|
| 109 |
+
xz_status=$(
|
| 110 |
+
exec 4>&1
|
| 111 |
+
($xz1 -cd -- "$1" 4>&-; echo $? >&4) 3>&- | eval "$cmp" - '"$FILE"' >&3
|
| 112 |
+
)
|
| 113 |
+
elif test $# -eq 2; then
|
| 114 |
+
case $1 in
|
| 115 |
+
*[-.]bz2 | *.tbz | *.tbz2) xz1=bzip2;;
|
| 116 |
+
*[-.][zZ] | *_z | *[-.]gz | *.t[ag]z) xz1=gzip;;
|
| 117 |
+
*[-.]lzo | *.tzo) xz1=lzop;;
|
| 118 |
+
*[-.]zst | *.tzst) xz1='zstd -q';;
|
| 119 |
+
*[-.]lz4) xz1=lz4;;
|
| 120 |
+
esac
|
| 121 |
+
case $2 in
|
| 122 |
+
*[-.]bz2 | *.tbz | *.tbz2) xz2=bzip2;;
|
| 123 |
+
*[-.][zZ] | *_z | *[-.]gz | *.t[ag]z) xz2=gzip;;
|
| 124 |
+
*[-.]lzo | *.tzo) xz2=lzop;;
|
| 125 |
+
*[-.]zst | *.tzst) xz2='zstd -q';;
|
| 126 |
+
*[-.]lz4) xz2=lz4;;
|
| 127 |
+
esac
|
| 128 |
+
case $1 in
|
| 129 |
+
*[-.][zZ] | *_z | *[-.][gx]z | *[-.]bz2 | *[-.]lzma | *[-.]lz | *.t[abglx]z | *.tbz2 | *[-.]lzo | *.tzo | *[-.]zst | *.tzst | *[-.]lz4 | -)
|
| 130 |
+
case "$2" in
|
| 131 |
+
*[-.][zZ] | *_z | *[-.][gx]z | *[-.]bz2 | *[-.]lzma | *[-.]lz | *.t[abglx]z | *.tbz2 | *[-.]lzo | *.tzo | *[-.]zst | *.tzst | *[-.]lz4 | -)
|
| 132 |
+
if test "$1$2" = --; then
|
| 133 |
+
xz_status=$(
|
| 134 |
+
exec 4>&1
|
| 135 |
+
($xz1 -cdf - 4>&-; echo $? >&4) 3>&- |
|
| 136 |
+
eval "$cmp" - - >&3
|
| 137 |
+
)
|
| 138 |
+
elif # Reject Solaris 8's buggy /bin/bash 2.03.
|
| 139 |
+
echo X | (echo X | eval "$cmp" /dev/fd/5 - >/dev/null 2>&1) 5<&0; then
|
| 140 |
+
# NOTE: xz_status will contain two numbers.
|
| 141 |
+
xz_status=$(
|
| 142 |
+
exec 4>&1
|
| 143 |
+
($xz1 -cdf -- "$1" 4>&-; echo $? >&4) 3>&- |
|
| 144 |
+
( ($xz2 -cdf -- "$2" 4>&-; echo $? >&4) 3>&- 5<&- </dev/null |
|
| 145 |
+
eval "$cmp" /dev/fd/5 - >&3) 5<&0
|
| 146 |
+
)
|
| 147 |
+
else
|
| 148 |
+
F=`expr "/$2" : '.*/\(.*\)[-.][ablmotxz2]*$'` || F=$prog
|
| 149 |
+
tmp=
|
| 150 |
+
trap '
|
| 151 |
+
test -n "$tmp" && rm -rf "$tmp"
|
| 152 |
+
(exit 2); exit 2
|
| 153 |
+
' HUP INT PIPE TERM 0
|
| 154 |
+
if type mktemp >/dev/null 2>&1; then
|
| 155 |
+
# Note that FreeBSD's mktemp isn't fully compatible with
|
| 156 |
+
# the implementations from mktemp.org and GNU coreutils.
|
| 157 |
+
# It is important that the -t argument is the last argument
|
| 158 |
+
# and that no "--" is used between -t and the template argument.
|
| 159 |
+
# This way this command works on all implementations.
|
| 160 |
+
tmp=`mktemp -d -t "$prog.XXXXXXXXXX"` || exit 2
|
| 161 |
+
else
|
| 162 |
+
# Fallback code if mktemp is missing. This isn't as
|
| 163 |
+
# robust as using mktemp since this doesn't try with
|
| 164 |
+
# different file names in case of a file name conflict.
|
| 165 |
+
#
|
| 166 |
+
# There's no need to save the original umask since
|
| 167 |
+
# we don't create any non-temp files. Note that using
|
| 168 |
+
# mkdir -m 0077 isn't secure since some mkdir implementations
|
| 169 |
+
# create the dir with the default umask and chmod the
|
| 170 |
+
# the dir afterwards.
|
| 171 |
+
umask 0077
|
| 172 |
+
mkdir -- "${TMPDIR-/tmp}/$prog.$$" || exit 2
|
| 173 |
+
tmp="${TMPDIR-/tmp}/$prog.$$"
|
| 174 |
+
fi
|
| 175 |
+
$xz2 -cdf -- "$2" > "$tmp/$F" || exit 2
|
| 176 |
+
xz_status=$(
|
| 177 |
+
exec 4>&1
|
| 178 |
+
($xz1 -cdf -- "$1" 4>&-; echo $? >&4) 3>&- |
|
| 179 |
+
eval "$cmp" - '"$tmp/$F"' >&3
|
| 180 |
+
)
|
| 181 |
+
cmp_status=$?
|
| 182 |
+
rm -rf "$tmp" || xz_status=$?
|
| 183 |
+
trap - HUP INT PIPE TERM 0
|
| 184 |
+
(exit $cmp_status)
|
| 185 |
+
fi;;
|
| 186 |
+
*)
|
| 187 |
+
xz_status=$(
|
| 188 |
+
exec 4>&1
|
| 189 |
+
($xz1 -cdf -- "$1" 4>&-; echo $? >&4) 3>&- |
|
| 190 |
+
eval "$cmp" - '"$2"' >&3
|
| 191 |
+
);;
|
| 192 |
+
esac;;
|
| 193 |
+
*)
|
| 194 |
+
case "$2" in
|
| 195 |
+
*[-.][zZ] | *_z | *[-.][gx]z | *[-.]bz2 | *[-.]lzma | *[-.]lz | *.t[abglx]z | *.tbz2 | *[-.]lzo | *.tzo | *[-.]zst | *.tzst | *[-.]lz4 | -)
|
| 196 |
+
xz_status=$(
|
| 197 |
+
exec 4>&1
|
| 198 |
+
($xz2 -cdf -- "$2" 4>&-; echo $? >&4) 3>&- |
|
| 199 |
+
eval "$cmp" '"$1"' - >&3
|
| 200 |
+
);;
|
| 201 |
+
*)
|
| 202 |
+
eval "$cmp" '"$1"' '"$2"';;
|
| 203 |
+
esac;;
|
| 204 |
+
esac
|
| 205 |
+
else
|
| 206 |
+
printf '%s\n' "$0: Invalid number of operands; try '${0##*/} --help' for help" >&2
|
| 207 |
+
exit 2
|
| 208 |
+
fi
|
| 209 |
+
|
| 210 |
+
cmp_status=$?
|
| 211 |
+
for num in $xz_status ; do
|
| 212 |
+
# 0 from decompressor means successful decompression. SIGPIPE from
|
| 213 |
+
# decompressor is possible when diff or cmp exits before the whole file
|
| 214 |
+
# has been decompressed. In that case we want to retain the exit status
|
| 215 |
+
# from diff or cmp. Note that using "trap '' PIPE" is not possible
|
| 216 |
+
# because gzip changes its behavior (including exit status) if SIGPIPE
|
| 217 |
+
# is ignored.
|
| 218 |
+
test "$num" -eq 0 && continue
|
| 219 |
+
test "$num" -ge 128 \
|
| 220 |
+
&& test "$(kill -l "$num" 2> /dev/null)" = "PIPE" \
|
| 221 |
+
&& continue
|
| 222 |
+
exit 2
|
| 223 |
+
done
|
| 224 |
+
exit $cmp_status
|
data/conda_envs/abstr/bin/lzdiff
ADDED
|
@@ -0,0 +1,224 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/bin/sh
|
| 2 |
+
# SPDX-License-Identifier: GPL-2.0-or-later
|
| 3 |
+
|
| 4 |
+
# Copyright (C) 1998, 2002, 2006, 2007 Free Software Foundation
|
| 5 |
+
# Copyright (C) 1993 Jean-loup Gailly
|
| 6 |
+
|
| 7 |
+
# Modified for XZ Utils by Andrew Dudman and Lasse Collin.
|
| 8 |
+
|
| 9 |
+
# This program is free software; you can redistribute it and/or modify
|
| 10 |
+
# it under the terms of the GNU General Public License as published by
|
| 11 |
+
# the Free Software Foundation; either version 2 of the License, or
|
| 12 |
+
# (at your option) any later version.
|
| 13 |
+
|
| 14 |
+
# This program is distributed in the hope that it will be useful,
|
| 15 |
+
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
| 16 |
+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
| 17 |
+
# GNU General Public License for more details.
|
| 18 |
+
|
| 19 |
+
# shellcheck shell=sh disable=SC1003,SC2016
|
| 20 |
+
|
| 21 |
+
|
| 22 |
+
#SET_PATH - This line is a placeholder to ease patching this script.
|
| 23 |
+
|
| 24 |
+
# Instead of unsetting XZ_OPT, just make sure that xz will use file format
|
| 25 |
+
# autodetection. This way memory usage limit and thread limit can be
|
| 26 |
+
# specified via XZ_OPT. With gzip, bzip2, and lzop it's OK to just unset the
|
| 27 |
+
# environment variables.
|
| 28 |
+
xz='xz --format=auto'
|
| 29 |
+
unset GZIP BZIP BZIP2 LZOP
|
| 30 |
+
|
| 31 |
+
case ${0##*/} in
|
| 32 |
+
*cmp*) prog=xzcmp; cmp=${CMP:-cmp};;
|
| 33 |
+
*) prog=xzdiff; cmp=${DIFF:-diff};;
|
| 34 |
+
esac
|
| 35 |
+
|
| 36 |
+
version="$prog (XZ Utils) 5.8.2"
|
| 37 |
+
|
| 38 |
+
usage="Usage: ${0##*/} [OPTION]... FILE1 [FILE2]
|
| 39 |
+
Compare FILE1 to FILE2, using their uncompressed contents if they are
|
| 40 |
+
compressed. If FILE2 is omitted, then the files compared are FILE1 and
|
| 41 |
+
FILE1 from which the compression format suffix has been stripped.
|
| 42 |
+
|
| 43 |
+
Do comparisons like '$cmp' does. OPTIONs are the same as for '$cmp'.
|
| 44 |
+
|
| 45 |
+
Report bugs to <xz@tukaani.org>."
|
| 46 |
+
|
| 47 |
+
# sed script to escape all ' for the shell, and then (to handle trailing
|
| 48 |
+
# newlines correctly) turn trailing X on last line into '.
|
| 49 |
+
escape='
|
| 50 |
+
s/'\''/'\''\\'\'''\''/g
|
| 51 |
+
$s/X$/'\''/
|
| 52 |
+
'
|
| 53 |
+
|
| 54 |
+
while :; do
|
| 55 |
+
case $1 in
|
| 56 |
+
--h*) printf '%s\n' "$usage" || exit 2; exit;;
|
| 57 |
+
--v*) printf '%s\n' "$version" || exit 2; exit;;
|
| 58 |
+
--) shift; break;;
|
| 59 |
+
-*\'*) cmp="$cmp '"`printf '%sX\n' "$1" | sed "$escape"`;;
|
| 60 |
+
-?*) cmp="$cmp '$1'";;
|
| 61 |
+
*) break;;
|
| 62 |
+
esac
|
| 63 |
+
shift
|
| 64 |
+
done
|
| 65 |
+
cmp="$cmp --"
|
| 66 |
+
|
| 67 |
+
for file; do
|
| 68 |
+
test "X$file" = X- || true < "$file" || exit 2
|
| 69 |
+
done
|
| 70 |
+
|
| 71 |
+
# xz needs -qQ to ignore warnings like unsupported check type.
|
| 72 |
+
xz1="$xz -qQ"
|
| 73 |
+
xz2="$xz -qQ"
|
| 74 |
+
xz_status=0
|
| 75 |
+
exec 3>&1
|
| 76 |
+
|
| 77 |
+
if test $# -eq 1; then
|
| 78 |
+
case $1 in
|
| 79 |
+
*[-.]xz | *[-.]lzma | *[-.]lz | *.t[lx]z)
|
| 80 |
+
;;
|
| 81 |
+
*[-.]bz2 | *.tbz | *.tbz2)
|
| 82 |
+
xz1=bzip2;;
|
| 83 |
+
*[-.][zZ] | *_z | *[-.]gz | *.t[ag]z)
|
| 84 |
+
xz1=gzip;;
|
| 85 |
+
*[-.]lzo | *.tzo)
|
| 86 |
+
xz1=lzop;;
|
| 87 |
+
*[-.]zst | *.tzst)
|
| 88 |
+
xz1='zstd -q';;
|
| 89 |
+
*[-.]lz4)
|
| 90 |
+
xz1=lz4;;
|
| 91 |
+
*)
|
| 92 |
+
printf '%s\n' "$0: $1: Unknown compressed file name suffix" >&2
|
| 93 |
+
exit 2;;
|
| 94 |
+
esac
|
| 95 |
+
# The FILE variable is used with eval, and shellcheck doesn't see that.
|
| 96 |
+
# shellcheck disable=SC2034
|
| 97 |
+
case $1 in
|
| 98 |
+
*[-.][zZ] | *_z | *[-.][gx]z | *[-.]bz2 | *[-.]lzma | *[-.]lz | *[-.]lzo | *[-.]zst | *[-.]lz4)
|
| 99 |
+
FILE=`expr "X$1" : 'X\(.*\)[-.][abglmostxzZ24]*$'`;;
|
| 100 |
+
*.t[abglx]z)
|
| 101 |
+
FILE=`expr "X$1" : 'X\(.*[-.]t\)[abglx]z$'`ar;;
|
| 102 |
+
*.tbz2)
|
| 103 |
+
FILE=`expr "X$1" : 'X\(.*[-.]t\)bz2$'`ar;;
|
| 104 |
+
*.tzo)
|
| 105 |
+
FILE=`expr "X$1" : 'X\(.*[-.]t\)zo$'`ar;;
|
| 106 |
+
*.tzst)
|
| 107 |
+
FILE=`expr "X$1" : 'X\(.*[-.]t\)zst$'`ar;;
|
| 108 |
+
esac
|
| 109 |
+
xz_status=$(
|
| 110 |
+
exec 4>&1
|
| 111 |
+
($xz1 -cd -- "$1" 4>&-; echo $? >&4) 3>&- | eval "$cmp" - '"$FILE"' >&3
|
| 112 |
+
)
|
| 113 |
+
elif test $# -eq 2; then
|
| 114 |
+
case $1 in
|
| 115 |
+
*[-.]bz2 | *.tbz | *.tbz2) xz1=bzip2;;
|
| 116 |
+
*[-.][zZ] | *_z | *[-.]gz | *.t[ag]z) xz1=gzip;;
|
| 117 |
+
*[-.]lzo | *.tzo) xz1=lzop;;
|
| 118 |
+
*[-.]zst | *.tzst) xz1='zstd -q';;
|
| 119 |
+
*[-.]lz4) xz1=lz4;;
|
| 120 |
+
esac
|
| 121 |
+
case $2 in
|
| 122 |
+
*[-.]bz2 | *.tbz | *.tbz2) xz2=bzip2;;
|
| 123 |
+
*[-.][zZ] | *_z | *[-.]gz | *.t[ag]z) xz2=gzip;;
|
| 124 |
+
*[-.]lzo | *.tzo) xz2=lzop;;
|
| 125 |
+
*[-.]zst | *.tzst) xz2='zstd -q';;
|
| 126 |
+
*[-.]lz4) xz2=lz4;;
|
| 127 |
+
esac
|
| 128 |
+
case $1 in
|
| 129 |
+
*[-.][zZ] | *_z | *[-.][gx]z | *[-.]bz2 | *[-.]lzma | *[-.]lz | *.t[abglx]z | *.tbz2 | *[-.]lzo | *.tzo | *[-.]zst | *.tzst | *[-.]lz4 | -)
|
| 130 |
+
case "$2" in
|
| 131 |
+
*[-.][zZ] | *_z | *[-.][gx]z | *[-.]bz2 | *[-.]lzma | *[-.]lz | *.t[abglx]z | *.tbz2 | *[-.]lzo | *.tzo | *[-.]zst | *.tzst | *[-.]lz4 | -)
|
| 132 |
+
if test "$1$2" = --; then
|
| 133 |
+
xz_status=$(
|
| 134 |
+
exec 4>&1
|
| 135 |
+
($xz1 -cdf - 4>&-; echo $? >&4) 3>&- |
|
| 136 |
+
eval "$cmp" - - >&3
|
| 137 |
+
)
|
| 138 |
+
elif # Reject Solaris 8's buggy /bin/bash 2.03.
|
| 139 |
+
echo X | (echo X | eval "$cmp" /dev/fd/5 - >/dev/null 2>&1) 5<&0; then
|
| 140 |
+
# NOTE: xz_status will contain two numbers.
|
| 141 |
+
xz_status=$(
|
| 142 |
+
exec 4>&1
|
| 143 |
+
($xz1 -cdf -- "$1" 4>&-; echo $? >&4) 3>&- |
|
| 144 |
+
( ($xz2 -cdf -- "$2" 4>&-; echo $? >&4) 3>&- 5<&- </dev/null |
|
| 145 |
+
eval "$cmp" /dev/fd/5 - >&3) 5<&0
|
| 146 |
+
)
|
| 147 |
+
else
|
| 148 |
+
F=`expr "/$2" : '.*/\(.*\)[-.][ablmotxz2]*$'` || F=$prog
|
| 149 |
+
tmp=
|
| 150 |
+
trap '
|
| 151 |
+
test -n "$tmp" && rm -rf "$tmp"
|
| 152 |
+
(exit 2); exit 2
|
| 153 |
+
' HUP INT PIPE TERM 0
|
| 154 |
+
if type mktemp >/dev/null 2>&1; then
|
| 155 |
+
# Note that FreeBSD's mktemp isn't fully compatible with
|
| 156 |
+
# the implementations from mktemp.org and GNU coreutils.
|
| 157 |
+
# It is important that the -t argument is the last argument
|
| 158 |
+
# and that no "--" is used between -t and the template argument.
|
| 159 |
+
# This way this command works on all implementations.
|
| 160 |
+
tmp=`mktemp -d -t "$prog.XXXXXXXXXX"` || exit 2
|
| 161 |
+
else
|
| 162 |
+
# Fallback code if mktemp is missing. This isn't as
|
| 163 |
+
# robust as using mktemp since this doesn't try with
|
| 164 |
+
# different file names in case of a file name conflict.
|
| 165 |
+
#
|
| 166 |
+
# There's no need to save the original umask since
|
| 167 |
+
# we don't create any non-temp files. Note that using
|
| 168 |
+
# mkdir -m 0077 isn't secure since some mkdir implementations
|
| 169 |
+
# create the dir with the default umask and chmod the
|
| 170 |
+
# the dir afterwards.
|
| 171 |
+
umask 0077
|
| 172 |
+
mkdir -- "${TMPDIR-/tmp}/$prog.$$" || exit 2
|
| 173 |
+
tmp="${TMPDIR-/tmp}/$prog.$$"
|
| 174 |
+
fi
|
| 175 |
+
$xz2 -cdf -- "$2" > "$tmp/$F" || exit 2
|
| 176 |
+
xz_status=$(
|
| 177 |
+
exec 4>&1
|
| 178 |
+
($xz1 -cdf -- "$1" 4>&-; echo $? >&4) 3>&- |
|
| 179 |
+
eval "$cmp" - '"$tmp/$F"' >&3
|
| 180 |
+
)
|
| 181 |
+
cmp_status=$?
|
| 182 |
+
rm -rf "$tmp" || xz_status=$?
|
| 183 |
+
trap - HUP INT PIPE TERM 0
|
| 184 |
+
(exit $cmp_status)
|
| 185 |
+
fi;;
|
| 186 |
+
*)
|
| 187 |
+
xz_status=$(
|
| 188 |
+
exec 4>&1
|
| 189 |
+
($xz1 -cdf -- "$1" 4>&-; echo $? >&4) 3>&- |
|
| 190 |
+
eval "$cmp" - '"$2"' >&3
|
| 191 |
+
);;
|
| 192 |
+
esac;;
|
| 193 |
+
*)
|
| 194 |
+
case "$2" in
|
| 195 |
+
*[-.][zZ] | *_z | *[-.][gx]z | *[-.]bz2 | *[-.]lzma | *[-.]lz | *.t[abglx]z | *.tbz2 | *[-.]lzo | *.tzo | *[-.]zst | *.tzst | *[-.]lz4 | -)
|
| 196 |
+
xz_status=$(
|
| 197 |
+
exec 4>&1
|
| 198 |
+
($xz2 -cdf -- "$2" 4>&-; echo $? >&4) 3>&- |
|
| 199 |
+
eval "$cmp" '"$1"' - >&3
|
| 200 |
+
);;
|
| 201 |
+
*)
|
| 202 |
+
eval "$cmp" '"$1"' '"$2"';;
|
| 203 |
+
esac;;
|
| 204 |
+
esac
|
| 205 |
+
else
|
| 206 |
+
printf '%s\n' "$0: Invalid number of operands; try '${0##*/} --help' for help" >&2
|
| 207 |
+
exit 2
|
| 208 |
+
fi
|
| 209 |
+
|
| 210 |
+
cmp_status=$?
|
| 211 |
+
for num in $xz_status ; do
|
| 212 |
+
# 0 from decompressor means successful decompression. SIGPIPE from
|
| 213 |
+
# decompressor is possible when diff or cmp exits before the whole file
|
| 214 |
+
# has been decompressed. In that case we want to retain the exit status
|
| 215 |
+
# from diff or cmp. Note that using "trap '' PIPE" is not possible
|
| 216 |
+
# because gzip changes its behavior (including exit status) if SIGPIPE
|
| 217 |
+
# is ignored.
|
| 218 |
+
test "$num" -eq 0 && continue
|
| 219 |
+
test "$num" -ge 128 \
|
| 220 |
+
&& test "$(kill -l "$num" 2> /dev/null)" = "PIPE" \
|
| 221 |
+
&& continue
|
| 222 |
+
exit 2
|
| 223 |
+
done
|
| 224 |
+
exit $cmp_status
|