Add files using upload-large-folder tool
Browse filesThis view is limited to 50 files because it contains too many changes.
See raw diff
- .gitattributes +2 -0
- my_container_sandbox/workspace/anaconda3/bin/2to3-3.8 +5 -0
- my_container_sandbox/workspace/anaconda3/bin/accelerate +8 -0
- my_container_sandbox/workspace/anaconda3/bin/accelerate-launch +8 -0
- my_container_sandbox/workspace/anaconda3/bin/activate +6 -0
- my_container_sandbox/workspace/anaconda3/bin/captoinfo +0 -0
- my_container_sandbox/workspace/anaconda3/bin/chardetect +11 -0
- my_container_sandbox/workspace/anaconda3/bin/conda +13 -0
- my_container_sandbox/workspace/anaconda3/bin/convert-caffe2-to-onnx +8 -0
- my_container_sandbox/workspace/anaconda3/bin/convert-onnx-to-caffe2 +8 -0
- my_container_sandbox/workspace/anaconda3/bin/cph +10 -0
- my_container_sandbox/workspace/anaconda3/bin/deactivate +7 -0
- my_container_sandbox/workspace/anaconda3/bin/fonttools +8 -0
- my_container_sandbox/workspace/anaconda3/bin/futurize +8 -0
- my_container_sandbox/workspace/anaconda3/bin/google-oauthlib-tool +8 -0
- my_container_sandbox/workspace/anaconda3/bin/huggingface-cli +8 -0
- my_container_sandbox/workspace/anaconda3/bin/idle3 +5 -0
- my_container_sandbox/workspace/anaconda3/bin/idle3.8 +5 -0
- my_container_sandbox/workspace/anaconda3/bin/imageio_remove_bin +8 -0
- my_container_sandbox/workspace/anaconda3/bin/infocmp +0 -0
- my_container_sandbox/workspace/anaconda3/bin/infotocap +0 -0
- my_container_sandbox/workspace/anaconda3/bin/lzcmp +215 -0
- my_container_sandbox/workspace/anaconda3/bin/lzdiff +215 -0
- my_container_sandbox/workspace/anaconda3/bin/lzgrep +298 -0
- my_container_sandbox/workspace/anaconda3/bin/lzless +59 -0
- my_container_sandbox/workspace/anaconda3/bin/lzmadec +0 -0
- my_container_sandbox/workspace/anaconda3/bin/lzmore +79 -0
- my_container_sandbox/workspace/anaconda3/bin/ncursesw6-config +331 -0
- my_container_sandbox/workspace/anaconda3/bin/nib-conform +8 -0
- my_container_sandbox/workspace/anaconda3/bin/nib-convert +8 -0
- my_container_sandbox/workspace/anaconda3/bin/nib-dicomfs +8 -0
- my_container_sandbox/workspace/anaconda3/bin/nib-ls +8 -0
- my_container_sandbox/workspace/anaconda3/bin/nib-nifti-dx +8 -0
- my_container_sandbox/workspace/anaconda3/bin/nib-stats +8 -0
- my_container_sandbox/workspace/anaconda3/bin/nib-trk2tck +8 -0
- my_container_sandbox/workspace/anaconda3/bin/normalizer +8 -0
- my_container_sandbox/workspace/anaconda3/bin/parrec2nii +8 -0
- my_container_sandbox/workspace/anaconda3/bin/pasteurize +8 -0
- my_container_sandbox/workspace/anaconda3/bin/pip +10 -0
- my_container_sandbox/workspace/anaconda3/bin/pip3 +10 -0
- my_container_sandbox/workspace/anaconda3/bin/pycodestyle +8 -0
- my_container_sandbox/workspace/anaconda3/bin/pydoc +5 -0
- my_container_sandbox/workspace/anaconda3/bin/pydoc3.8 +5 -0
- my_container_sandbox/workspace/anaconda3/bin/pyftmerge +8 -0
- my_container_sandbox/workspace/anaconda3/bin/pyftsubset +8 -0
- my_container_sandbox/workspace/anaconda3/bin/pygrun +164 -0
- my_container_sandbox/workspace/anaconda3/bin/pyrsa-encrypt +8 -0
- my_container_sandbox/workspace/anaconda3/bin/python3-config +116 -0
- my_container_sandbox/workspace/anaconda3/bin/reset +0 -0
- my_container_sandbox/workspace/anaconda3/bin/skivi +8 -0
.gitattributes
CHANGED
|
@@ -143,3 +143,5 @@ my_container_sandbox/workspace/anaconda3/lib/libnppicc.so.11 filter=lfs diff=lfs
|
|
| 143 |
my_container_sandbox/workspace/anaconda3/lib/libstdc++.so filter=lfs diff=lfs merge=lfs -text
|
| 144 |
my_container_sandbox/workspace/anaconda3/lib/libnppial.so.11 filter=lfs diff=lfs merge=lfs -text
|
| 145 |
my_container_sandbox/workspace/anaconda3/lib/libaccinj64.so.11.3.111 filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
|
|
|
| 143 |
my_container_sandbox/workspace/anaconda3/lib/libstdc++.so filter=lfs diff=lfs merge=lfs -text
|
| 144 |
my_container_sandbox/workspace/anaconda3/lib/libnppial.so.11 filter=lfs diff=lfs merge=lfs -text
|
| 145 |
my_container_sandbox/workspace/anaconda3/lib/libaccinj64.so.11.3.111 filter=lfs diff=lfs merge=lfs -text
|
| 146 |
+
my_container_sandbox/workspace/anaconda3/lib/libyaml-0.so.2 filter=lfs diff=lfs merge=lfs -text
|
| 147 |
+
my_container_sandbox/workspace/anaconda3/lib/libnppial.so filter=lfs diff=lfs merge=lfs -text
|
my_container_sandbox/workspace/anaconda3/bin/2to3-3.8
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/workspace/anaconda3/bin/python3.8
|
| 2 |
+
import sys
|
| 3 |
+
from lib2to3.main import main
|
| 4 |
+
|
| 5 |
+
sys.exit(main("lib2to3.fixes"))
|
my_container_sandbox/workspace/anaconda3/bin/accelerate
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/workspace/anaconda3/bin/python3.8
|
| 2 |
+
# -*- coding: utf-8 -*-
|
| 3 |
+
import re
|
| 4 |
+
import sys
|
| 5 |
+
from accelerate.commands.accelerate_cli import main
|
| 6 |
+
if __name__ == '__main__':
|
| 7 |
+
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
|
| 8 |
+
sys.exit(main())
|
my_container_sandbox/workspace/anaconda3/bin/accelerate-launch
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/workspace/anaconda3/bin/python3.8
|
| 2 |
+
# -*- coding: utf-8 -*-
|
| 3 |
+
import re
|
| 4 |
+
import sys
|
| 5 |
+
from accelerate.commands.launch import main
|
| 6 |
+
if __name__ == '__main__':
|
| 7 |
+
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
|
| 8 |
+
sys.exit(main())
|
my_container_sandbox/workspace/anaconda3/bin/activate
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/bin/sh
|
| 2 |
+
_CONDA_ROOT="/workspace/anaconda3"
|
| 3 |
+
# Copyright (C) 2012 Anaconda, Inc
|
| 4 |
+
# SPDX-License-Identifier: BSD-3-Clause
|
| 5 |
+
\. "$_CONDA_ROOT/etc/profile.d/conda.sh" || return $?
|
| 6 |
+
conda activate "$@"
|
my_container_sandbox/workspace/anaconda3/bin/captoinfo
ADDED
|
Binary file (92.2 kB). View file
|
|
|
my_container_sandbox/workspace/anaconda3/bin/chardetect
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/workspace/anaconda3/bin/python
|
| 2 |
+
|
| 3 |
+
# -*- coding: utf-8 -*-
|
| 4 |
+
import re
|
| 5 |
+
import sys
|
| 6 |
+
|
| 7 |
+
from chardet.cli.chardetect import main
|
| 8 |
+
|
| 9 |
+
if __name__ == '__main__':
|
| 10 |
+
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
|
| 11 |
+
sys.exit(main())
|
my_container_sandbox/workspace/anaconda3/bin/conda
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/workspace/anaconda3/bin/python
|
| 2 |
+
# -*- coding: utf-8 -*-
|
| 3 |
+
import sys
|
| 4 |
+
# Before any more imports, leave cwd out of sys.path for internal 'conda shell.*' commands.
|
| 5 |
+
# see https://github.com/conda/conda/issues/6549
|
| 6 |
+
if len(sys.argv) > 1 and sys.argv[1].startswith('shell.') and sys.path and sys.path[0] == '':
|
| 7 |
+
# The standard first entry in sys.path is an empty string,
|
| 8 |
+
# and os.path.abspath('') expands to os.getcwd().
|
| 9 |
+
del sys.path[0]
|
| 10 |
+
|
| 11 |
+
if __name__ == '__main__':
|
| 12 |
+
from conda.cli import main
|
| 13 |
+
sys.exit(main())
|
my_container_sandbox/workspace/anaconda3/bin/convert-caffe2-to-onnx
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/workspace/anaconda3/bin/python3.8
|
| 2 |
+
# -*- coding: utf-8 -*-
|
| 3 |
+
import re
|
| 4 |
+
import sys
|
| 5 |
+
from caffe2.python.onnx.bin.conversion import caffe2_to_onnx
|
| 6 |
+
if __name__ == '__main__':
|
| 7 |
+
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
|
| 8 |
+
sys.exit(caffe2_to_onnx())
|
my_container_sandbox/workspace/anaconda3/bin/convert-onnx-to-caffe2
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/workspace/anaconda3/bin/python3.8
|
| 2 |
+
# -*- coding: utf-8 -*-
|
| 3 |
+
import re
|
| 4 |
+
import sys
|
| 5 |
+
from caffe2.python.onnx.bin.conversion import onnx_to_caffe2
|
| 6 |
+
if __name__ == '__main__':
|
| 7 |
+
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
|
| 8 |
+
sys.exit(onnx_to_caffe2())
|
my_container_sandbox/workspace/anaconda3/bin/cph
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/workspace/anaconda3/bin/python3.8
|
| 2 |
+
# -*- coding: utf-8 -*-
|
| 3 |
+
import re
|
| 4 |
+
import sys
|
| 5 |
+
|
| 6 |
+
from conda_package_handling.cli import main
|
| 7 |
+
|
| 8 |
+
if __name__ == '__main__':
|
| 9 |
+
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
|
| 10 |
+
sys.exit(main())
|
my_container_sandbox/workspace/anaconda3/bin/deactivate
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/bin/sh
|
| 2 |
+
_CONDA_ROOT="/workspace/anaconda3"
|
| 3 |
+
# Copyright (C) 2012 Anaconda, Inc
|
| 4 |
+
# SPDX-License-Identifier: BSD-3-Clause
|
| 5 |
+
\echo >&2 "DeprecationWarning: 'source deactivate' is deprecated. Use 'conda deactivate'."
|
| 6 |
+
\. "$_CONDA_ROOT/etc/profile.d/conda.sh" || return $?
|
| 7 |
+
conda deactivate
|
my_container_sandbox/workspace/anaconda3/bin/fonttools
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/workspace/anaconda3/bin/python3.8
|
| 2 |
+
# -*- coding: utf-8 -*-
|
| 3 |
+
import re
|
| 4 |
+
import sys
|
| 5 |
+
from fontTools.__main__ import main
|
| 6 |
+
if __name__ == '__main__':
|
| 7 |
+
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
|
| 8 |
+
sys.exit(main())
|
my_container_sandbox/workspace/anaconda3/bin/futurize
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/workspace/anaconda3/bin/python3.8
|
| 2 |
+
# -*- coding: utf-8 -*-
|
| 3 |
+
import re
|
| 4 |
+
import sys
|
| 5 |
+
from libfuturize.main import main
|
| 6 |
+
if __name__ == '__main__':
|
| 7 |
+
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
|
| 8 |
+
sys.exit(main())
|
my_container_sandbox/workspace/anaconda3/bin/google-oauthlib-tool
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/workspace/anaconda3/bin/python3.8
|
| 2 |
+
# -*- coding: utf-8 -*-
|
| 3 |
+
import re
|
| 4 |
+
import sys
|
| 5 |
+
from google_auth_oauthlib.tool.__main__ import main
|
| 6 |
+
if __name__ == '__main__':
|
| 7 |
+
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
|
| 8 |
+
sys.exit(main())
|
my_container_sandbox/workspace/anaconda3/bin/huggingface-cli
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/workspace/anaconda3/bin/python3.8
|
| 2 |
+
# -*- coding: utf-8 -*-
|
| 3 |
+
import re
|
| 4 |
+
import sys
|
| 5 |
+
from huggingface_hub.commands.huggingface_cli import main
|
| 6 |
+
if __name__ == '__main__':
|
| 7 |
+
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
|
| 8 |
+
sys.exit(main())
|
my_container_sandbox/workspace/anaconda3/bin/idle3
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/workspace/anaconda3/bin/python3.8
|
| 2 |
+
|
| 3 |
+
from idlelib.pyshell import main
|
| 4 |
+
if __name__ == '__main__':
|
| 5 |
+
main()
|
my_container_sandbox/workspace/anaconda3/bin/idle3.8
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/workspace/anaconda3/bin/python3.8
|
| 2 |
+
|
| 3 |
+
from idlelib.pyshell import main
|
| 4 |
+
if __name__ == '__main__':
|
| 5 |
+
main()
|
my_container_sandbox/workspace/anaconda3/bin/imageio_remove_bin
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/workspace/anaconda3/bin/python3.8
|
| 2 |
+
# -*- coding: utf-8 -*-
|
| 3 |
+
import re
|
| 4 |
+
import sys
|
| 5 |
+
from imageio.__main__ import remove_bin_main
|
| 6 |
+
if __name__ == '__main__':
|
| 7 |
+
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
|
| 8 |
+
sys.exit(remove_bin_main())
|
my_container_sandbox/workspace/anaconda3/bin/infocmp
ADDED
|
Binary file (63.5 kB). View file
|
|
|
my_container_sandbox/workspace/anaconda3/bin/infotocap
ADDED
|
Binary file (92.2 kB). View file
|
|
|
my_container_sandbox/workspace/anaconda3/bin/lzcmp
ADDED
|
@@ -0,0 +1,215 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/bin/sh
|
| 2 |
+
|
| 3 |
+
# Copyright (C) 1998, 2002, 2006, 2007 Free Software Foundation
|
| 4 |
+
# Copyright (C) 1993 Jean-loup Gailly
|
| 5 |
+
|
| 6 |
+
# Modified for XZ Utils by Andrew Dudman and Lasse Collin.
|
| 7 |
+
|
| 8 |
+
# This program is free software; you can redistribute it and/or modify
|
| 9 |
+
# it under the terms of the GNU General Public License as published by
|
| 10 |
+
# the Free Software Foundation; either version 2 of the License, or
|
| 11 |
+
# (at your option) any later version.
|
| 12 |
+
|
| 13 |
+
# This program is distributed in the hope that it will be useful,
|
| 14 |
+
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
| 15 |
+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
| 16 |
+
# GNU General Public License for more details.
|
| 17 |
+
|
| 18 |
+
|
| 19 |
+
#SET_PATH - This line is a placeholder to ease patching this script.
|
| 20 |
+
|
| 21 |
+
# Instead of unsetting XZ_OPT, just make sure that xz will use file format
|
| 22 |
+
# autodetection. This way memory usage limit and thread limit can be
|
| 23 |
+
# specified via XZ_OPT. With gzip, bzip2, and lzop it's OK to just unset the
|
| 24 |
+
# environment variables.
|
| 25 |
+
xz='xz --format=auto'
|
| 26 |
+
unset GZIP BZIP BZIP2 LZOP
|
| 27 |
+
|
| 28 |
+
case ${0##*/} in
|
| 29 |
+
*cmp*) prog=xzcmp; cmp=${CMP:-cmp};;
|
| 30 |
+
*) prog=xzdiff; cmp=${DIFF:-diff};;
|
| 31 |
+
esac
|
| 32 |
+
|
| 33 |
+
version="$prog (XZ Utils) 5.4.6"
|
| 34 |
+
|
| 35 |
+
usage="Usage: ${0##*/} [OPTION]... FILE1 [FILE2]
|
| 36 |
+
Compare FILE1 to FILE2, using their uncompressed contents if they are
|
| 37 |
+
compressed. If FILE2 is omitted, then the files compared are FILE1 and
|
| 38 |
+
FILE1 from which the compression format suffix has been stripped.
|
| 39 |
+
|
| 40 |
+
Do comparisons like '$cmp' does. OPTIONs are the same as for '$cmp'.
|
| 41 |
+
|
| 42 |
+
Report bugs to <xz@tukaani.org>."
|
| 43 |
+
|
| 44 |
+
# sed script to escape all ' for the shell, and then (to handle trailing
|
| 45 |
+
# newlines correctly) turn trailing X on last line into '.
|
| 46 |
+
escape='
|
| 47 |
+
s/'\''/'\''\\'\'''\''/g
|
| 48 |
+
$s/X$/'\''/
|
| 49 |
+
'
|
| 50 |
+
|
| 51 |
+
while :; do
|
| 52 |
+
case $1 in
|
| 53 |
+
--h*) printf '%s\n' "$usage" || exit 2; exit;;
|
| 54 |
+
--v*) printf '%s\n' "$version" || exit 2; exit;;
|
| 55 |
+
--) shift; break;;
|
| 56 |
+
-*\'*) cmp="$cmp '"`printf '%sX\n' "$1" | sed "$escape"`;;
|
| 57 |
+
-?*) cmp="$cmp '$1'";;
|
| 58 |
+
*) break;;
|
| 59 |
+
esac
|
| 60 |
+
shift
|
| 61 |
+
done
|
| 62 |
+
cmp="$cmp --"
|
| 63 |
+
|
| 64 |
+
for file; do
|
| 65 |
+
test "X$file" = X- || <"$file" || exit 2
|
| 66 |
+
done
|
| 67 |
+
|
| 68 |
+
# xz needs -qQ to ignore warnings like unsupported check type.
|
| 69 |
+
xz1="$xz -qQ"
|
| 70 |
+
xz2="$xz -qQ"
|
| 71 |
+
xz_status=0
|
| 72 |
+
exec 3>&1
|
| 73 |
+
|
| 74 |
+
if test $# -eq 1; then
|
| 75 |
+
case $1 in
|
| 76 |
+
*[-.]xz | *[-.]lzma | *[-.]lz | *.t[lx]z)
|
| 77 |
+
;;
|
| 78 |
+
*[-.]bz2 | *.tbz | *.tbz2)
|
| 79 |
+
xz1=bzip2;;
|
| 80 |
+
*[-.][zZ] | *_z | *[-.]gz | *.t[ag]z)
|
| 81 |
+
xz1=gzip;;
|
| 82 |
+
*[-.]lzo | *.tzo)
|
| 83 |
+
xz1=lzop;;
|
| 84 |
+
*[-.]zst | *.tzst)
|
| 85 |
+
xz1='zstd -q';;
|
| 86 |
+
*)
|
| 87 |
+
printf '%s\n' "$0: $1: Unknown compressed file name suffix" >&2
|
| 88 |
+
exit 2;;
|
| 89 |
+
esac
|
| 90 |
+
case $1 in
|
| 91 |
+
*[-.][zZ] | *_z | *[-.][gx]z | *[-.]bz2 | *[-.]lzma | *[-.]lz | *[-.]lzo | *[-.]zst)
|
| 92 |
+
FILE=`expr "X$1" : 'X\(.*\)[-.][abglmostxzZ2]*$'`;;
|
| 93 |
+
*.t[abglx]z)
|
| 94 |
+
FILE=`expr "X$1" : 'X\(.*[-.]t\)[abglx]z$'`ar;;
|
| 95 |
+
*.tbz2)
|
| 96 |
+
FILE=`expr "X$1" : 'X\(.*[-.]t\)bz2$'`ar;;
|
| 97 |
+
*.tzo)
|
| 98 |
+
FILE=`expr "X$1" : 'X\(.*[-.]t\)zo$'`ar;;
|
| 99 |
+
*.tzst)
|
| 100 |
+
FILE=`expr "X$1" : 'X\(.*[-.]t\)zst$'`ar;;
|
| 101 |
+
esac
|
| 102 |
+
xz_status=$(
|
| 103 |
+
exec 4>&1
|
| 104 |
+
($xz1 -cd -- "$1" 4>&-; echo $? >&4) 3>&- | eval "$cmp" - '"$FILE"' >&3
|
| 105 |
+
)
|
| 106 |
+
elif test $# -eq 2; then
|
| 107 |
+
case $1 in
|
| 108 |
+
*[-.]bz2 | *.tbz | *.tbz2) xz1=bzip2;;
|
| 109 |
+
*[-.][zZ] | *_z | *[-.]gz | *.t[ag]z) xz1=gzip;;
|
| 110 |
+
*[-.]lzo | *.tzo) xz1=lzop;;
|
| 111 |
+
*[-.]zst | *.tzst) xz1='zstd -q';;
|
| 112 |
+
esac
|
| 113 |
+
case $2 in
|
| 114 |
+
*[-.]bz2 | *.tbz | *.tbz2) xz2=bzip2;;
|
| 115 |
+
*[-.][zZ] | *_z | *[-.]gz | *.t[ag]z) xz2=gzip;;
|
| 116 |
+
*[-.]lzo | *.tzo) xz2=lzop;;
|
| 117 |
+
*[-.]zst | *.tzst) xz2='zstd -q';;
|
| 118 |
+
esac
|
| 119 |
+
case $1 in
|
| 120 |
+
*[-.][zZ] | *_z | *[-.][gx]z | *[-.]bz2 | *[-.]lzma | *[-.]lz | *.t[abglx]z | *.tbz2 | *[-.]lzo | *.tzo | *[-.]zst | *.tzst | -)
|
| 121 |
+
case "$2" in
|
| 122 |
+
*[-.][zZ] | *_z | *[-.][gx]z | *[-.]bz2 | *[-.]lzma | *[-.]lz | *.t[abglx]z | *.tbz2 | *[-.]lzo | *.tzo | *[-.]zst | *.tzst | -)
|
| 123 |
+
if test "$1$2" = --; then
|
| 124 |
+
xz_status=$(
|
| 125 |
+
exec 4>&1
|
| 126 |
+
($xz1 -cdf - 4>&-; echo $? >&4) 3>&- |
|
| 127 |
+
eval "$cmp" - - >&3
|
| 128 |
+
)
|
| 129 |
+
elif # Reject Solaris 8's buggy /bin/bash 2.03.
|
| 130 |
+
echo X | (echo X | eval "$cmp" /dev/fd/5 - >/dev/null 2>&1) 5<&0; then
|
| 131 |
+
# NOTE: xz_status will contain two numbers.
|
| 132 |
+
xz_status=$(
|
| 133 |
+
exec 4>&1
|
| 134 |
+
($xz1 -cdf -- "$1" 4>&-; echo $? >&4) 3>&- |
|
| 135 |
+
( ($xz2 -cdf -- "$2" 4>&-; echo $? >&4) 3>&- 5<&- </dev/null |
|
| 136 |
+
eval "$cmp" /dev/fd/5 - >&3) 5<&0
|
| 137 |
+
)
|
| 138 |
+
else
|
| 139 |
+
F=`expr "/$2" : '.*/\(.*\)[-.][ablmotxz2]*$'` || F=$prog
|
| 140 |
+
tmp=
|
| 141 |
+
trap '
|
| 142 |
+
test -n "$tmp" && rm -rf "$tmp"
|
| 143 |
+
(exit 2); exit 2
|
| 144 |
+
' HUP INT PIPE TERM 0
|
| 145 |
+
if type mktemp >/dev/null 2>&1; then
|
| 146 |
+
# Note that FreeBSD's mktemp isn't fully compatible with
|
| 147 |
+
# the implementations from mktemp.org and GNU coreutils.
|
| 148 |
+
# It is important that the -t argument is the last argument
|
| 149 |
+
# and that no "--" is used between -t and the template argument.
|
| 150 |
+
# This way this command works on all implementations.
|
| 151 |
+
tmp=`mktemp -d -t "$prog.XXXXXXXXXX"` || exit 2
|
| 152 |
+
else
|
| 153 |
+
# Fallback code if mktemp is missing. This isn't as
|
| 154 |
+
# robust as using mktemp since this doesn't try with
|
| 155 |
+
# different file names in case of a file name conflict.
|
| 156 |
+
#
|
| 157 |
+
# There's no need to save the original umask since
|
| 158 |
+
# we don't create any non-temp files. Note that using
|
| 159 |
+
# mkdir -m 0077 isn't secure since some mkdir implementations
|
| 160 |
+
# create the dir with the default umask and chmod the
|
| 161 |
+
# the dir afterwards.
|
| 162 |
+
umask 0077
|
| 163 |
+
mkdir -- "${TMPDIR-/tmp}/$prog.$$" || exit 2
|
| 164 |
+
tmp="${TMPDIR-/tmp}/$prog.$$"
|
| 165 |
+
fi
|
| 166 |
+
$xz2 -cdf -- "$2" > "$tmp/$F" || exit 2
|
| 167 |
+
xz_status=$(
|
| 168 |
+
exec 4>&1
|
| 169 |
+
($xz1 -cdf -- "$1" 4>&-; echo $? >&4) 3>&- |
|
| 170 |
+
eval "$cmp" - '"$tmp/$F"' >&3
|
| 171 |
+
)
|
| 172 |
+
cmp_status=$?
|
| 173 |
+
rm -rf "$tmp" || xz_status=$?
|
| 174 |
+
trap - HUP INT PIPE TERM 0
|
| 175 |
+
(exit $cmp_status)
|
| 176 |
+
fi;;
|
| 177 |
+
*)
|
| 178 |
+
xz_status=$(
|
| 179 |
+
exec 4>&1
|
| 180 |
+
($xz1 -cdf -- "$1" 4>&-; echo $? >&4) 3>&- |
|
| 181 |
+
eval "$cmp" - '"$2"' >&3
|
| 182 |
+
);;
|
| 183 |
+
esac;;
|
| 184 |
+
*)
|
| 185 |
+
case "$2" in
|
| 186 |
+
*[-.][zZ] | *_z | *[-.][gx]z | *[-.]bz2 | *[-.]lzma | *[-.]lz | *.t[abglx]z | *.tbz2 | *[-.]lzo | *.tzo | *[-.]zst | *.tzst | -)
|
| 187 |
+
xz_status=$(
|
| 188 |
+
exec 4>&1
|
| 189 |
+
($xz2 -cdf -- "$2" 4>&-; echo $? >&4) 3>&- |
|
| 190 |
+
eval "$cmp" '"$1"' - >&3
|
| 191 |
+
);;
|
| 192 |
+
*)
|
| 193 |
+
eval "$cmp" '"$1"' '"$2"';;
|
| 194 |
+
esac;;
|
| 195 |
+
esac
|
| 196 |
+
else
|
| 197 |
+
printf '%s\n' "$0: Invalid number of operands; try \`${0##*/} --help' for help" >&2
|
| 198 |
+
exit 2
|
| 199 |
+
fi
|
| 200 |
+
|
| 201 |
+
cmp_status=$?
|
| 202 |
+
for num in $xz_status ; do
|
| 203 |
+
# 0 from decompressor means successful decompression. SIGPIPE from
|
| 204 |
+
# decompressor is possible when diff or cmp exits before the whole file
|
| 205 |
+
# has been decompressed. In that case we want to retain the exit status
|
| 206 |
+
# from diff or cmp. Note that using "trap '' PIPE" is not possible
|
| 207 |
+
# because gzip changes its behavior (including exit status) if SIGPIPE
|
| 208 |
+
# is ignored.
|
| 209 |
+
test "$num" -eq 0 && continue
|
| 210 |
+
test "$num" -ge 128 \
|
| 211 |
+
&& test "$(kill -l "$num" 2> /dev/null)" = "PIPE" \
|
| 212 |
+
&& continue
|
| 213 |
+
exit 2
|
| 214 |
+
done
|
| 215 |
+
exit $cmp_status
|
my_container_sandbox/workspace/anaconda3/bin/lzdiff
ADDED
|
@@ -0,0 +1,215 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/bin/sh
|
| 2 |
+
|
| 3 |
+
# Copyright (C) 1998, 2002, 2006, 2007 Free Software Foundation
|
| 4 |
+
# Copyright (C) 1993 Jean-loup Gailly
|
| 5 |
+
|
| 6 |
+
# Modified for XZ Utils by Andrew Dudman and Lasse Collin.
|
| 7 |
+
|
| 8 |
+
# This program is free software; you can redistribute it and/or modify
|
| 9 |
+
# it under the terms of the GNU General Public License as published by
|
| 10 |
+
# the Free Software Foundation; either version 2 of the License, or
|
| 11 |
+
# (at your option) any later version.
|
| 12 |
+
|
| 13 |
+
# This program is distributed in the hope that it will be useful,
|
| 14 |
+
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
| 15 |
+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
| 16 |
+
# GNU General Public License for more details.
|
| 17 |
+
|
| 18 |
+
|
| 19 |
+
#SET_PATH - This line is a placeholder to ease patching this script.
|
| 20 |
+
|
| 21 |
+
# Instead of unsetting XZ_OPT, just make sure that xz will use file format
|
| 22 |
+
# autodetection. This way memory usage limit and thread limit can be
|
| 23 |
+
# specified via XZ_OPT. With gzip, bzip2, and lzop it's OK to just unset the
|
| 24 |
+
# environment variables.
|
| 25 |
+
xz='xz --format=auto'
|
| 26 |
+
unset GZIP BZIP BZIP2 LZOP
|
| 27 |
+
|
| 28 |
+
case ${0##*/} in
|
| 29 |
+
*cmp*) prog=xzcmp; cmp=${CMP:-cmp};;
|
| 30 |
+
*) prog=xzdiff; cmp=${DIFF:-diff};;
|
| 31 |
+
esac
|
| 32 |
+
|
| 33 |
+
version="$prog (XZ Utils) 5.4.6"
|
| 34 |
+
|
| 35 |
+
usage="Usage: ${0##*/} [OPTION]... FILE1 [FILE2]
|
| 36 |
+
Compare FILE1 to FILE2, using their uncompressed contents if they are
|
| 37 |
+
compressed. If FILE2 is omitted, then the files compared are FILE1 and
|
| 38 |
+
FILE1 from which the compression format suffix has been stripped.
|
| 39 |
+
|
| 40 |
+
Do comparisons like '$cmp' does. OPTIONs are the same as for '$cmp'.
|
| 41 |
+
|
| 42 |
+
Report bugs to <xz@tukaani.org>."
|
| 43 |
+
|
| 44 |
+
# sed script to escape all ' for the shell, and then (to handle trailing
|
| 45 |
+
# newlines correctly) turn trailing X on last line into '.
|
| 46 |
+
escape='
|
| 47 |
+
s/'\''/'\''\\'\'''\''/g
|
| 48 |
+
$s/X$/'\''/
|
| 49 |
+
'
|
| 50 |
+
|
| 51 |
+
while :; do
|
| 52 |
+
case $1 in
|
| 53 |
+
--h*) printf '%s\n' "$usage" || exit 2; exit;;
|
| 54 |
+
--v*) printf '%s\n' "$version" || exit 2; exit;;
|
| 55 |
+
--) shift; break;;
|
| 56 |
+
-*\'*) cmp="$cmp '"`printf '%sX\n' "$1" | sed "$escape"`;;
|
| 57 |
+
-?*) cmp="$cmp '$1'";;
|
| 58 |
+
*) break;;
|
| 59 |
+
esac
|
| 60 |
+
shift
|
| 61 |
+
done
|
| 62 |
+
cmp="$cmp --"
|
| 63 |
+
|
| 64 |
+
for file; do
|
| 65 |
+
test "X$file" = X- || <"$file" || exit 2
|
| 66 |
+
done
|
| 67 |
+
|
| 68 |
+
# xz needs -qQ to ignore warnings like unsupported check type.
|
| 69 |
+
xz1="$xz -qQ"
|
| 70 |
+
xz2="$xz -qQ"
|
| 71 |
+
xz_status=0
|
| 72 |
+
exec 3>&1
|
| 73 |
+
|
| 74 |
+
if test $# -eq 1; then
|
| 75 |
+
case $1 in
|
| 76 |
+
*[-.]xz | *[-.]lzma | *[-.]lz | *.t[lx]z)
|
| 77 |
+
;;
|
| 78 |
+
*[-.]bz2 | *.tbz | *.tbz2)
|
| 79 |
+
xz1=bzip2;;
|
| 80 |
+
*[-.][zZ] | *_z | *[-.]gz | *.t[ag]z)
|
| 81 |
+
xz1=gzip;;
|
| 82 |
+
*[-.]lzo | *.tzo)
|
| 83 |
+
xz1=lzop;;
|
| 84 |
+
*[-.]zst | *.tzst)
|
| 85 |
+
xz1='zstd -q';;
|
| 86 |
+
*)
|
| 87 |
+
printf '%s\n' "$0: $1: Unknown compressed file name suffix" >&2
|
| 88 |
+
exit 2;;
|
| 89 |
+
esac
|
| 90 |
+
case $1 in
|
| 91 |
+
*[-.][zZ] | *_z | *[-.][gx]z | *[-.]bz2 | *[-.]lzma | *[-.]lz | *[-.]lzo | *[-.]zst)
|
| 92 |
+
FILE=`expr "X$1" : 'X\(.*\)[-.][abglmostxzZ2]*$'`;;
|
| 93 |
+
*.t[abglx]z)
|
| 94 |
+
FILE=`expr "X$1" : 'X\(.*[-.]t\)[abglx]z$'`ar;;
|
| 95 |
+
*.tbz2)
|
| 96 |
+
FILE=`expr "X$1" : 'X\(.*[-.]t\)bz2$'`ar;;
|
| 97 |
+
*.tzo)
|
| 98 |
+
FILE=`expr "X$1" : 'X\(.*[-.]t\)zo$'`ar;;
|
| 99 |
+
*.tzst)
|
| 100 |
+
FILE=`expr "X$1" : 'X\(.*[-.]t\)zst$'`ar;;
|
| 101 |
+
esac
|
| 102 |
+
xz_status=$(
|
| 103 |
+
exec 4>&1
|
| 104 |
+
($xz1 -cd -- "$1" 4>&-; echo $? >&4) 3>&- | eval "$cmp" - '"$FILE"' >&3
|
| 105 |
+
)
|
| 106 |
+
elif test $# -eq 2; then
|
| 107 |
+
case $1 in
|
| 108 |
+
*[-.]bz2 | *.tbz | *.tbz2) xz1=bzip2;;
|
| 109 |
+
*[-.][zZ] | *_z | *[-.]gz | *.t[ag]z) xz1=gzip;;
|
| 110 |
+
*[-.]lzo | *.tzo) xz1=lzop;;
|
| 111 |
+
*[-.]zst | *.tzst) xz1='zstd -q';;
|
| 112 |
+
esac
|
| 113 |
+
case $2 in
|
| 114 |
+
*[-.]bz2 | *.tbz | *.tbz2) xz2=bzip2;;
|
| 115 |
+
*[-.][zZ] | *_z | *[-.]gz | *.t[ag]z) xz2=gzip;;
|
| 116 |
+
*[-.]lzo | *.tzo) xz2=lzop;;
|
| 117 |
+
*[-.]zst | *.tzst) xz2='zstd -q';;
|
| 118 |
+
esac
|
| 119 |
+
case $1 in
|
| 120 |
+
*[-.][zZ] | *_z | *[-.][gx]z | *[-.]bz2 | *[-.]lzma | *[-.]lz | *.t[abglx]z | *.tbz2 | *[-.]lzo | *.tzo | *[-.]zst | *.tzst | -)
|
| 121 |
+
case "$2" in
|
| 122 |
+
*[-.][zZ] | *_z | *[-.][gx]z | *[-.]bz2 | *[-.]lzma | *[-.]lz | *.t[abglx]z | *.tbz2 | *[-.]lzo | *.tzo | *[-.]zst | *.tzst | -)
|
| 123 |
+
if test "$1$2" = --; then
|
| 124 |
+
xz_status=$(
|
| 125 |
+
exec 4>&1
|
| 126 |
+
($xz1 -cdf - 4>&-; echo $? >&4) 3>&- |
|
| 127 |
+
eval "$cmp" - - >&3
|
| 128 |
+
)
|
| 129 |
+
elif # Reject Solaris 8's buggy /bin/bash 2.03.
|
| 130 |
+
echo X | (echo X | eval "$cmp" /dev/fd/5 - >/dev/null 2>&1) 5<&0; then
|
| 131 |
+
# NOTE: xz_status will contain two numbers.
|
| 132 |
+
xz_status=$(
|
| 133 |
+
exec 4>&1
|
| 134 |
+
($xz1 -cdf -- "$1" 4>&-; echo $? >&4) 3>&- |
|
| 135 |
+
( ($xz2 -cdf -- "$2" 4>&-; echo $? >&4) 3>&- 5<&- </dev/null |
|
| 136 |
+
eval "$cmp" /dev/fd/5 - >&3) 5<&0
|
| 137 |
+
)
|
| 138 |
+
else
|
| 139 |
+
F=`expr "/$2" : '.*/\(.*\)[-.][ablmotxz2]*$'` || F=$prog
|
| 140 |
+
tmp=
|
| 141 |
+
trap '
|
| 142 |
+
test -n "$tmp" && rm -rf "$tmp"
|
| 143 |
+
(exit 2); exit 2
|
| 144 |
+
' HUP INT PIPE TERM 0
|
| 145 |
+
if type mktemp >/dev/null 2>&1; then
|
| 146 |
+
# Note that FreeBSD's mktemp isn't fully compatible with
|
| 147 |
+
# the implementations from mktemp.org and GNU coreutils.
|
| 148 |
+
# It is important that the -t argument is the last argument
|
| 149 |
+
# and that no "--" is used between -t and the template argument.
|
| 150 |
+
# This way this command works on all implementations.
|
| 151 |
+
tmp=`mktemp -d -t "$prog.XXXXXXXXXX"` || exit 2
|
| 152 |
+
else
|
| 153 |
+
# Fallback code if mktemp is missing. This isn't as
|
| 154 |
+
# robust as using mktemp since this doesn't try with
|
| 155 |
+
# different file names in case of a file name conflict.
|
| 156 |
+
#
|
| 157 |
+
# There's no need to save the original umask since
|
| 158 |
+
# we don't create any non-temp files. Note that using
|
| 159 |
+
# mkdir -m 0077 isn't secure since some mkdir implementations
|
| 160 |
+
# create the dir with the default umask and chmod the
|
| 161 |
+
# the dir afterwards.
|
| 162 |
+
umask 0077
|
| 163 |
+
mkdir -- "${TMPDIR-/tmp}/$prog.$$" || exit 2
|
| 164 |
+
tmp="${TMPDIR-/tmp}/$prog.$$"
|
| 165 |
+
fi
|
| 166 |
+
$xz2 -cdf -- "$2" > "$tmp/$F" || exit 2
|
| 167 |
+
xz_status=$(
|
| 168 |
+
exec 4>&1
|
| 169 |
+
($xz1 -cdf -- "$1" 4>&-; echo $? >&4) 3>&- |
|
| 170 |
+
eval "$cmp" - '"$tmp/$F"' >&3
|
| 171 |
+
)
|
| 172 |
+
cmp_status=$?
|
| 173 |
+
rm -rf "$tmp" || xz_status=$?
|
| 174 |
+
trap - HUP INT PIPE TERM 0
|
| 175 |
+
(exit $cmp_status)
|
| 176 |
+
fi;;
|
| 177 |
+
*)
|
| 178 |
+
xz_status=$(
|
| 179 |
+
exec 4>&1
|
| 180 |
+
($xz1 -cdf -- "$1" 4>&-; echo $? >&4) 3>&- |
|
| 181 |
+
eval "$cmp" - '"$2"' >&3
|
| 182 |
+
);;
|
| 183 |
+
esac;;
|
| 184 |
+
*)
|
| 185 |
+
case "$2" in
|
| 186 |
+
*[-.][zZ] | *_z | *[-.][gx]z | *[-.]bz2 | *[-.]lzma | *[-.]lz | *.t[abglx]z | *.tbz2 | *[-.]lzo | *.tzo | *[-.]zst | *.tzst | -)
|
| 187 |
+
xz_status=$(
|
| 188 |
+
exec 4>&1
|
| 189 |
+
($xz2 -cdf -- "$2" 4>&-; echo $? >&4) 3>&- |
|
| 190 |
+
eval "$cmp" '"$1"' - >&3
|
| 191 |
+
);;
|
| 192 |
+
*)
|
| 193 |
+
eval "$cmp" '"$1"' '"$2"';;
|
| 194 |
+
esac;;
|
| 195 |
+
esac
|
| 196 |
+
else
|
| 197 |
+
printf '%s\n' "$0: Invalid number of operands; try \`${0##*/} --help' for help" >&2
|
| 198 |
+
exit 2
|
| 199 |
+
fi
|
| 200 |
+
|
| 201 |
+
cmp_status=$?
|
| 202 |
+
for num in $xz_status ; do
|
| 203 |
+
# 0 from decompressor means successful decompression. SIGPIPE from
|
| 204 |
+
# decompressor is possible when diff or cmp exits before the whole file
|
| 205 |
+
# has been decompressed. In that case we want to retain the exit status
|
| 206 |
+
# from diff or cmp. Note that using "trap '' PIPE" is not possible
|
| 207 |
+
# because gzip changes its behavior (including exit status) if SIGPIPE
|
| 208 |
+
# is ignored.
|
| 209 |
+
test "$num" -eq 0 && continue
|
| 210 |
+
test "$num" -ge 128 \
|
| 211 |
+
&& test "$(kill -l "$num" 2> /dev/null)" = "PIPE" \
|
| 212 |
+
&& continue
|
| 213 |
+
exit 2
|
| 214 |
+
done
|
| 215 |
+
exit $cmp_status
|
my_container_sandbox/workspace/anaconda3/bin/lzgrep
ADDED
|
@@ -0,0 +1,298 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/bin/sh
|
| 2 |
+
|
| 3 |
+
# xzgrep -- a wrapper around a grep program that decompresses files as needed
|
| 4 |
+
# Adapted from a version sent by Charles Levert <charles@comm.polymtl.ca>
|
| 5 |
+
|
| 6 |
+
# Copyright (C) 1998, 2001, 2002, 2006, 2007 Free Software Foundation
|
| 7 |
+
# Copyright (C) 1993 Jean-loup Gailly
|
| 8 |
+
|
| 9 |
+
# Modified for XZ Utils by Andrew Dudman and Lasse Collin.
|
| 10 |
+
|
| 11 |
+
# This program is free software; you can redistribute it and/or modify
|
| 12 |
+
# it under the terms of the GNU General Public License as published by
|
| 13 |
+
# the Free Software Foundation; either version 2 of the License, or
|
| 14 |
+
# (at your option) any later version.
|
| 15 |
+
|
| 16 |
+
# This program is distributed in the hope that it will be useful,
|
| 17 |
+
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
| 18 |
+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
| 19 |
+
# GNU General Public License for more details.
|
| 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 |
+
*egrep*) prog=xzegrep; grep=${GREP:-grep -E};;
|
| 33 |
+
*fgrep*) prog=xzfgrep; grep=${GREP:-grep -F};;
|
| 34 |
+
*) prog=xzgrep; grep=${GREP:-grep};;
|
| 35 |
+
esac
|
| 36 |
+
|
| 37 |
+
version="$prog (XZ Utils) 5.4.6"
|
| 38 |
+
|
| 39 |
+
usage="Usage: ${0##*/} [OPTION]... [-e] PATTERN [FILE]...
|
| 40 |
+
Look for instances of PATTERN in the input FILEs, using their
|
| 41 |
+
uncompressed contents if they are compressed.
|
| 42 |
+
|
| 43 |
+
OPTIONs are the same as for '$grep'.
|
| 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 |
+
operands=
|
| 54 |
+
have_pat=0
|
| 55 |
+
files_with_matches=0
|
| 56 |
+
files_without_matches=0
|
| 57 |
+
no_filename=0
|
| 58 |
+
with_filename=0
|
| 59 |
+
|
| 60 |
+
# See if -H and --label options are supported (GNU and *BSDs).
|
| 61 |
+
if test f:x = "$(eval "echo x | $grep -H --label=f x 2> /dev/null")"; then
|
| 62 |
+
grep_supports_label=1
|
| 63 |
+
else
|
| 64 |
+
grep_supports_label=0
|
| 65 |
+
fi
|
| 66 |
+
|
| 67 |
+
while test $# -ne 0; do
|
| 68 |
+
option=$1
|
| 69 |
+
shift
|
| 70 |
+
optarg=
|
| 71 |
+
|
| 72 |
+
case $option in
|
| 73 |
+
(-[0123456789abcdEFGhHiIKlLnoPqrRsTuUvVwxyzZ]*[!0123456789]*)
|
| 74 |
+
# Something like -Fiv was specified, that is, $option contains more
|
| 75 |
+
# than one option of which the first option (in this example -F)
|
| 76 |
+
# doesn't take an argument. Split the first option into a standalone
|
| 77 |
+
# argument and continue parsing the rest of the options (in this example,
|
| 78 |
+
# replace -Fiv with -iv in the argument list and set option=-F).
|
| 79 |
+
#
|
| 80 |
+
# If there are digits [0-9] they are treated as if they were a single
|
| 81 |
+
# option character because this syntax is an alias for -C for GNU grep.
|
| 82 |
+
# For example, "grep -25F" is equivalent to "grep -C25 -F". If only
|
| 83 |
+
# digits are specified like "grep -25" we don't get here because the
|
| 84 |
+
# above pattern in the case-statement doesn't match such strings.
|
| 85 |
+
arg2=-\'$(LC_ALL=C expr "X${option}X" : 'X-.[0-9]*\(.*\)' |
|
| 86 |
+
LC_ALL=C sed "$escape")
|
| 87 |
+
eval "set -- $arg2 "'${1+"$@"}'
|
| 88 |
+
option=$(LC_ALL=C expr "X$option" : 'X\(-.[0-9]*\)');;
|
| 89 |
+
(--binary-*=* | --[lm]a*=* | --reg*=*)
|
| 90 |
+
# These options require an argument and an argument has been provided
|
| 91 |
+
# with the --foo=argument syntax. All is good.
|
| 92 |
+
;;
|
| 93 |
+
(-[ABCDefmX] | --binary-* | --file | --[lm]a* | --reg*)
|
| 94 |
+
# These options require an argument which should now be in $1.
|
| 95 |
+
# If it isn't, display an error and exit.
|
| 96 |
+
case ${1?"$option option requires an argument"} in
|
| 97 |
+
(*\'*)
|
| 98 |
+
optarg=" '"$(printf '%sX\n' "$1" | LC_ALL=C sed "$escape");;
|
| 99 |
+
(*)
|
| 100 |
+
optarg=" '$1'";;
|
| 101 |
+
esac
|
| 102 |
+
shift;;
|
| 103 |
+
(--)
|
| 104 |
+
break;;
|
| 105 |
+
(-?*)
|
| 106 |
+
;;
|
| 107 |
+
(*)
|
| 108 |
+
case $option in
|
| 109 |
+
(*\'*)
|
| 110 |
+
operands="$operands '"$(printf '%sX\n' "$option" |
|
| 111 |
+
LC_ALL=C sed "$escape");;
|
| 112 |
+
(*)
|
| 113 |
+
operands="$operands '$option'";;
|
| 114 |
+
esac
|
| 115 |
+
${POSIXLY_CORRECT+break}
|
| 116 |
+
continue;;
|
| 117 |
+
esac
|
| 118 |
+
|
| 119 |
+
case $option in
|
| 120 |
+
(-[drRzZ] | --di* | --exc* | --inc* | --rec* | --nu*)
|
| 121 |
+
printf >&2 '%s: %s: Option not supported\n' "$0" "$option"
|
| 122 |
+
exit 2;;
|
| 123 |
+
(-[ef]* | --file | --file=* | --reg*)
|
| 124 |
+
have_pat=1;;
|
| 125 |
+
(--h | --he | --hel | --help)
|
| 126 |
+
printf '%s\n' "$usage" || exit 2
|
| 127 |
+
exit;;
|
| 128 |
+
(-H | --wi | --wit | --with | --with- | --with-f | --with-fi \
|
| 129 |
+
| --with-fil | --with-file | --with-filen | --with-filena | --with-filenam \
|
| 130 |
+
| --with-filename)
|
| 131 |
+
with_filename=1
|
| 132 |
+
continue;;
|
| 133 |
+
(-l | --files-with-*)
|
| 134 |
+
files_with_matches=1
|
| 135 |
+
continue;;
|
| 136 |
+
(-L | --files-witho*)
|
| 137 |
+
files_without_matches=1
|
| 138 |
+
continue;;
|
| 139 |
+
(-h | --no-f*)
|
| 140 |
+
no_filename=1;;
|
| 141 |
+
(-V | --v | --ve | --ver | --vers | --versi | --versio | --version)
|
| 142 |
+
printf '%s\n' "$version" || exit 2
|
| 143 |
+
exit;;
|
| 144 |
+
esac
|
| 145 |
+
|
| 146 |
+
case $option in
|
| 147 |
+
(*\'?*)
|
| 148 |
+
option=\'$(printf '%sX\n' "$option" | LC_ALL=C sed "$escape");;
|
| 149 |
+
(*)
|
| 150 |
+
option="'$option'";;
|
| 151 |
+
esac
|
| 152 |
+
|
| 153 |
+
grep="$grep $option$optarg"
|
| 154 |
+
done
|
| 155 |
+
|
| 156 |
+
eval "set -- $operands "'${1+"$@"}'
|
| 157 |
+
|
| 158 |
+
if test $have_pat -eq 0; then
|
| 159 |
+
case ${1?"Missing pattern; try \`${0##*/} --help' for help"} in
|
| 160 |
+
(*\'*)
|
| 161 |
+
grep="$grep -e '"$(printf '%sX\n' "$1" | LC_ALL=C sed "$escape");;
|
| 162 |
+
(*)
|
| 163 |
+
grep="$grep -e '$1'";;
|
| 164 |
+
esac
|
| 165 |
+
shift
|
| 166 |
+
fi
|
| 167 |
+
|
| 168 |
+
if test $# -eq 0; then
|
| 169 |
+
set -- -
|
| 170 |
+
fi
|
| 171 |
+
|
| 172 |
+
exec 3>&1
|
| 173 |
+
|
| 174 |
+
# res=1 means that no file matched yet
|
| 175 |
+
res=1
|
| 176 |
+
|
| 177 |
+
for i; do
|
| 178 |
+
case $i in
|
| 179 |
+
*[-.][zZ] | *_z | *[-.]gz | *.t[ag]z) uncompress="gzip -cdf";;
|
| 180 |
+
*[-.]bz2 | *[-.]tbz | *.tbz2) uncompress="bzip2 -cdf";;
|
| 181 |
+
*[-.]lzo | *[-.]tzo) uncompress="lzop -cdf";;
|
| 182 |
+
*[-.]zst | *[-.]tzst) uncompress="zstd -cdfq";; # zstd needs -q.
|
| 183 |
+
*) uncompress="$xz -cdfqQ";; # -qQ to ignore warnings like unsupp. check.
|
| 184 |
+
esac
|
| 185 |
+
# xz_status will hold the decompressor's exit status.
|
| 186 |
+
# Exit status of grep (and in rare cases, printf or sed) is
|
| 187 |
+
# available as the exit status of this assignment command.
|
| 188 |
+
xz_status=$(
|
| 189 |
+
exec 5>&1
|
| 190 |
+
($uncompress -- "$i" 5>&-; echo $? >&5) 3>&- |
|
| 191 |
+
if test $files_with_matches -eq 1; then
|
| 192 |
+
eval "$grep -q" && { printf '%s\n' "$i" || exit 2; }
|
| 193 |
+
elif test $files_without_matches -eq 1; then
|
| 194 |
+
eval "$grep -q" || {
|
| 195 |
+
r=$?
|
| 196 |
+
if test $r -eq 1; then
|
| 197 |
+
printf '%s\n' "$i" || r=2
|
| 198 |
+
fi
|
| 199 |
+
exit $r
|
| 200 |
+
}
|
| 201 |
+
elif test $with_filename -eq 0 &&
|
| 202 |
+
{ test $# -eq 1 || test $no_filename -eq 1; }; then
|
| 203 |
+
eval "$grep"
|
| 204 |
+
elif test $grep_supports_label -eq 1; then
|
| 205 |
+
# The grep implementation in use allows us to specify the filename
|
| 206 |
+
# that grep will prefix to the output lines. This is faster and
|
| 207 |
+
# less prone to security bugs than the fallback method that uses sed.
|
| 208 |
+
# This also avoids confusing output with GNU grep >= 3.5 (2020-09-27)
|
| 209 |
+
# which prints "binary file matches" to stderr instead of stdout.
|
| 210 |
+
#
|
| 211 |
+
# If reading from stdin, let grep use whatever name it prefers for
|
| 212 |
+
# stdin. With GNU grep it is a locale-specific translated string.
|
| 213 |
+
if test "x$i" = "x-"; then
|
| 214 |
+
eval "$grep -H"
|
| 215 |
+
else
|
| 216 |
+
eval "$grep -H --label \"\$i\""
|
| 217 |
+
fi
|
| 218 |
+
else
|
| 219 |
+
# Append a colon so that the last character will never be a newline
|
| 220 |
+
# which would otherwise get lost in shell command substitution.
|
| 221 |
+
i="$i:"
|
| 222 |
+
|
| 223 |
+
# Escape & \ | and newlines only if such characters are present
|
| 224 |
+
# (speed optimization).
|
| 225 |
+
case $i in
|
| 226 |
+
(*'
|
| 227 |
+
'* | *'&'* | *'\'* | *'|'*)
|
| 228 |
+
# If sed fails, set i to a known safe string to ensure that
|
| 229 |
+
# failing sed did not create a half-escaped dangerous string.
|
| 230 |
+
i=$(printf '%s\n' "$i" | LC_ALL=C sed 's/[&\|]/\\&/g; $!s/$/\\/') ||
|
| 231 |
+
i='(unknown filename):';;
|
| 232 |
+
esac
|
| 233 |
+
|
| 234 |
+
# $i already ends with a colon so do not add it here.
|
| 235 |
+
sed_script="s|^|$i|"
|
| 236 |
+
|
| 237 |
+
# If grep or sed fails, pick the larger value of the two exit statuses.
|
| 238 |
+
# If sed fails, use at least 2 since we use >= 2 to indicate errors.
|
| 239 |
+
r=$(
|
| 240 |
+
exec 4>&1
|
| 241 |
+
(eval "$grep" 4>&-; echo $? >&4) 3>&- |
|
| 242 |
+
LC_ALL=C sed "$sed_script" >&3 4>&-
|
| 243 |
+
) || {
|
| 244 |
+
sed_status=$?
|
| 245 |
+
test "$sed_status" -lt 2 && sed_status=2
|
| 246 |
+
test "$r" -lt "$sed_status" && r=$sed_status
|
| 247 |
+
}
|
| 248 |
+
exit $r
|
| 249 |
+
fi >&3 5>&-
|
| 250 |
+
)
|
| 251 |
+
r=$?
|
| 252 |
+
|
| 253 |
+
# If grep or sed or other non-decompression command failed with a signal,
|
| 254 |
+
# exit immediately and ignore the possible remaining files.
|
| 255 |
+
#
|
| 256 |
+
# NOTE: Instead of 128 + signal_number, some shells use
|
| 257 |
+
# 256 + signal_number (ksh) or 384 + signal_number (yash).
|
| 258 |
+
# This is fine for us since their "exit" and "kill -l" commands take
|
| 259 |
+
# this into account. (At least the versions I tried do but there is
|
| 260 |
+
# a report of an old ksh variant whose "exit" truncates the exit status
|
| 261 |
+
# to 8 bits without any special handling for values indicating a signal.)
|
| 262 |
+
test "$r" -ge 128 && exit "$r"
|
| 263 |
+
|
| 264 |
+
if test -z "$xz_status"; then
|
| 265 |
+
# Something unusual happened, for example, we got a signal and
|
| 266 |
+
# the exit status of the decompressor was never echoed and thus
|
| 267 |
+
# $xz_status is empty. Exit immediately and ignore the possible
|
| 268 |
+
# remaining files.
|
| 269 |
+
exit 2
|
| 270 |
+
elif test "$xz_status" -ge 128; then
|
| 271 |
+
# The decompressor died due to a signal. SIGPIPE is ignored since it can
|
| 272 |
+
# occur if grep exits before the whole file has been decompressed (grep -q
|
| 273 |
+
# can do that). If the decompressor died with some other signal, exit
|
| 274 |
+
# immediately and ignore the possible remaining files.
|
| 275 |
+
test "$(kill -l "$xz_status" 2> /dev/null)" != "PIPE" && exit "$xz_status"
|
| 276 |
+
elif test "$xz_status" -gt 0; then
|
| 277 |
+
# Decompression failed but we will continue with the remaining
|
| 278 |
+
# files anwyway. Set exit status to at least 2 to indicate an error.
|
| 279 |
+
test "$r" -lt 2 && r=2
|
| 280 |
+
fi
|
| 281 |
+
|
| 282 |
+
# Since res=1 is the initial value, we only need to care about
|
| 283 |
+
# matches (r == 0) and errors (r >= 2) here; r == 1 can be ignored.
|
| 284 |
+
if test "$r" -ge 2; then
|
| 285 |
+
# An error occurred in decompressor, grep, or some other command. Update
|
| 286 |
+
# res unless a larger error code has been seen with an earlier file.
|
| 287 |
+
test "$res" -lt "$r" && res=$r
|
| 288 |
+
elif test "$r" -eq 0; then
|
| 289 |
+
# grep found a match and no errors occurred. Update res if no errors have
|
| 290 |
+
# occurred with earlier files.
|
| 291 |
+
test "$res" -eq 1 && res=0
|
| 292 |
+
fi
|
| 293 |
+
done
|
| 294 |
+
|
| 295 |
+
# 0: At least one file matched and no errors occurred.
|
| 296 |
+
# 1: No matches were found and no errors occurred.
|
| 297 |
+
# >=2: Error. It's unknown if matches were found.
|
| 298 |
+
exit "$res"
|
my_container_sandbox/workspace/anaconda3/bin/lzless
ADDED
|
@@ -0,0 +1,59 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/bin/sh
|
| 2 |
+
|
| 3 |
+
# Copyright (C) 1998, 2002, 2006, 2007 Free Software Foundation
|
| 4 |
+
|
| 5 |
+
# The original version for gzip was written by Paul Eggert.
|
| 6 |
+
# Modified for XZ Utils by Andrew Dudman and Lasse Collin.
|
| 7 |
+
|
| 8 |
+
# This program is free software; you can redistribute it and/or modify
|
| 9 |
+
# it under the terms of the GNU General Public License as published by
|
| 10 |
+
# the Free Software Foundation; either version 2 of the License, or
|
| 11 |
+
# (at your option) any later version.
|
| 12 |
+
|
| 13 |
+
# This program is distributed in the hope that it will be useful,
|
| 14 |
+
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
| 15 |
+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
| 16 |
+
# GNU General Public License for more details.
|
| 17 |
+
|
| 18 |
+
|
| 19 |
+
#SET_PATH - This line is a placeholder to ease patching this script.
|
| 20 |
+
|
| 21 |
+
# Instead of unsetting XZ_OPT, just make sure that xz will use file format
|
| 22 |
+
# autodetection. This way memory usage limit and thread limit can be
|
| 23 |
+
# specified via XZ_OPT.
|
| 24 |
+
xz='xz --format=auto'
|
| 25 |
+
|
| 26 |
+
version='xzless (XZ Utils) 5.4.6'
|
| 27 |
+
|
| 28 |
+
usage="Usage: ${0##*/} [OPTION]... [FILE]...
|
| 29 |
+
Like 'less', but operate on the uncompressed contents of xz compressed FILEs.
|
| 30 |
+
|
| 31 |
+
Options are the same as for 'less'.
|
| 32 |
+
|
| 33 |
+
Report bugs to <xz@tukaani.org>."
|
| 34 |
+
|
| 35 |
+
case $1 in
|
| 36 |
+
--help) printf '%s\n' "$usage" || exit 2; exit;;
|
| 37 |
+
--version) printf '%s\n' "$version" || exit 2; exit;;
|
| 38 |
+
esac
|
| 39 |
+
|
| 40 |
+
if test "${LESSMETACHARS+set}" != set; then
|
| 41 |
+
# Work around a bug in less 394 and earlier;
|
| 42 |
+
# it mishandles the metacharacters '$%=~'.
|
| 43 |
+
space=' '
|
| 44 |
+
tab=' '
|
| 45 |
+
nl='
|
| 46 |
+
'
|
| 47 |
+
LESSMETACHARS="$space$tab$nl'"';*?"()<>[|&^`#\$%=~'
|
| 48 |
+
fi
|
| 49 |
+
|
| 50 |
+
if test "$(less -V | { read _ ver _ && echo ${ver%%.*}; })" -ge 429; then
|
| 51 |
+
# less 429 or later: LESSOPEN pipe will be used on
|
| 52 |
+
# standard input if $LESSOPEN begins with |-.
|
| 53 |
+
LESSOPEN="|-$xz -cdfqQ -- %s"
|
| 54 |
+
else
|
| 55 |
+
LESSOPEN="|$xz -cdfqQ -- %s"
|
| 56 |
+
fi
|
| 57 |
+
export LESSMETACHARS LESSOPEN
|
| 58 |
+
|
| 59 |
+
exec less "$@"
|
my_container_sandbox/workspace/anaconda3/bin/lzmadec
ADDED
|
Binary file (17.2 kB). View file
|
|
|
my_container_sandbox/workspace/anaconda3/bin/lzmore
ADDED
|
@@ -0,0 +1,79 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/bin/sh
|
| 2 |
+
|
| 3 |
+
# Copyright (C) 2001, 2002, 2007 Free Software Foundation
|
| 4 |
+
# Copyright (C) 1992, 1993 Jean-loup Gailly
|
| 5 |
+
|
| 6 |
+
# Modified for XZ Utils by Andrew Dudman and Lasse Collin.
|
| 7 |
+
|
| 8 |
+
# This program is free software; you can redistribute it and/or modify
|
| 9 |
+
# it under the terms of the GNU General Public License as published by
|
| 10 |
+
# the Free Software Foundation; either version 2 of the License, or
|
| 11 |
+
# (at your option) any later version.
|
| 12 |
+
|
| 13 |
+
# This program is distributed in the hope that it will be useful,
|
| 14 |
+
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
| 15 |
+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
| 16 |
+
# GNU General Public License for more details.
|
| 17 |
+
|
| 18 |
+
|
| 19 |
+
#SET_PATH - This line is a placeholder to ease patching this script.
|
| 20 |
+
|
| 21 |
+
# Instead of unsetting XZ_OPT, just make sure that xz will use file format
|
| 22 |
+
# autodetection. This way memory usage limit and thread limit can be
|
| 23 |
+
# specified via XZ_OPT.
|
| 24 |
+
xz='xz --format=auto'
|
| 25 |
+
|
| 26 |
+
version='xzmore (XZ Utils) 5.4.6'
|
| 27 |
+
|
| 28 |
+
usage="Usage: ${0##*/} [OPTION]... [FILE]...
|
| 29 |
+
Like 'more', but operate on the uncompressed contents of xz compressed FILEs.
|
| 30 |
+
|
| 31 |
+
Report bugs to <xz@tukaani.org>."
|
| 32 |
+
|
| 33 |
+
case $1 in
|
| 34 |
+
--help) printf '%s\n' "$usage" || exit 2; exit;;
|
| 35 |
+
--version) printf '%s\n' "$version" || exit 2; exit;;
|
| 36 |
+
esac
|
| 37 |
+
|
| 38 |
+
oldtty=`stty -g 2>/dev/null`
|
| 39 |
+
if stty -cbreak 2>/dev/null; then
|
| 40 |
+
cb='cbreak'; ncb='-cbreak'
|
| 41 |
+
else
|
| 42 |
+
# 'stty min 1' resets eof to ^a on both SunOS and SysV!
|
| 43 |
+
cb='min 1 -icanon'; ncb='icanon eof ^d'
|
| 44 |
+
fi
|
| 45 |
+
if test $? -eq 0 && test -n "$oldtty"; then
|
| 46 |
+
trap 'stty $oldtty 2>/dev/null; exit' 0 2 3 5 10 13 15
|
| 47 |
+
else
|
| 48 |
+
trap 'stty $ncb echo 2>/dev/null; exit' 0 2 3 5 10 13 15
|
| 49 |
+
fi
|
| 50 |
+
|
| 51 |
+
if test $# = 0; then
|
| 52 |
+
if test -t 0; then
|
| 53 |
+
printf '%s\n' "$usage"; exit 1
|
| 54 |
+
else
|
| 55 |
+
$xz -cdfqQ | eval "${PAGER:-more}"
|
| 56 |
+
fi
|
| 57 |
+
else
|
| 58 |
+
FIRST=1
|
| 59 |
+
for FILE; do
|
| 60 |
+
< "$FILE" || continue
|
| 61 |
+
if test $FIRST -eq 0; then
|
| 62 |
+
printf "%s--More--(Next file: %s)" "" "$FILE"
|
| 63 |
+
stty $cb -echo 2>/dev/null
|
| 64 |
+
ANS=`dd bs=1 count=1 2>/dev/null`
|
| 65 |
+
stty $ncb echo 2>/dev/null
|
| 66 |
+
echo " "
|
| 67 |
+
case "$ANS" in
|
| 68 |
+
[eq]) exit;;
|
| 69 |
+
esac
|
| 70 |
+
fi
|
| 71 |
+
if test "$ANS" != 's'; then
|
| 72 |
+
printf '%s\n' "------> $FILE <------"
|
| 73 |
+
$xz -cdfqQ -- "$FILE" | eval "${PAGER:-more}"
|
| 74 |
+
fi
|
| 75 |
+
if test -t 1; then
|
| 76 |
+
FIRST=0
|
| 77 |
+
fi
|
| 78 |
+
done
|
| 79 |
+
fi
|
my_container_sandbox/workspace/anaconda3/bin/ncursesw6-config
ADDED
|
@@ -0,0 +1,331 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/bin/sh
|
| 2 |
+
# $Id: ncurses-config.in,v 1.52 2022/07/26 21:36:28 tom Exp $
|
| 3 |
+
##############################################################################
|
| 4 |
+
# Copyright 2018-2021,2022 Thomas E. Dickey #
|
| 5 |
+
# Copyright 2006-2015,2017 Free Software Foundation, Inc. #
|
| 6 |
+
# #
|
| 7 |
+
# Permission is hereby granted, free of charge, to any person obtaining a #
|
| 8 |
+
# copy of this software and associated documentation files (the "Software"), #
|
| 9 |
+
# to deal in the Software without restriction, including without limitation #
|
| 10 |
+
# the rights to use, copy, modify, merge, publish, distribute, distribute #
|
| 11 |
+
# with modifications, sublicense, and/or sell copies of the Software, and to #
|
| 12 |
+
# permit persons to whom the Software is furnished to do so, subject to the #
|
| 13 |
+
# following conditions: #
|
| 14 |
+
# #
|
| 15 |
+
# The above copyright notice and this permission notice shall be included in #
|
| 16 |
+
# all copies or substantial portions of the Software. #
|
| 17 |
+
# #
|
| 18 |
+
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR #
|
| 19 |
+
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, #
|
| 20 |
+
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL #
|
| 21 |
+
# THE ABOVE COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER #
|
| 22 |
+
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING #
|
| 23 |
+
# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER #
|
| 24 |
+
# DEALINGS IN THE SOFTWARE. #
|
| 25 |
+
# #
|
| 26 |
+
# Except as contained in this notice, the name(s) of the above copyright #
|
| 27 |
+
# holders shall not be used in advertising or otherwise to promote the sale, #
|
| 28 |
+
# use or other dealings in this Software without prior written #
|
| 29 |
+
# authorization. #
|
| 30 |
+
##############################################################################
|
| 31 |
+
#
|
| 32 |
+
# Author: Thomas E. Dickey, 2006-on
|
| 33 |
+
|
| 34 |
+
LANG=C; export LANG
|
| 35 |
+
LANGUAGE=C; export LANGUAGE
|
| 36 |
+
LC_ALL=C; export LC_ALL
|
| 37 |
+
LC_CTYPE=C; export LC_CTYPE
|
| 38 |
+
|
| 39 |
+
prefix="/workspace/anaconda3"
|
| 40 |
+
exec_prefix="${prefix}"
|
| 41 |
+
|
| 42 |
+
bindir="${exec_prefix}/bin"
|
| 43 |
+
includedir="${prefix}/include"
|
| 44 |
+
libdir="${exec_prefix}/lib"
|
| 45 |
+
datarootdir="${prefix}/share"
|
| 46 |
+
datadir="${datarootdir}"
|
| 47 |
+
mandir="${datarootdir}/man"
|
| 48 |
+
|
| 49 |
+
THIS="ncursesw"
|
| 50 |
+
TINFO_LIB="tinfow"
|
| 51 |
+
RPATH_LIST="${libdir}"
|
| 52 |
+
|
| 53 |
+
includesubdir="${prefix}/include/${THIS}"
|
| 54 |
+
|
| 55 |
+
# Ensure that RPATH_LIST contains only absolute pathnames, if it is nonempty.
|
| 56 |
+
# We cannot filter it out within the build-process since the variable is used
|
| 57 |
+
# in some special cases of installation using a relative path.
|
| 58 |
+
if [ -n "$RPATH_LIST" ]
|
| 59 |
+
then
|
| 60 |
+
save_IFS="$IFS"
|
| 61 |
+
IFS=':'
|
| 62 |
+
filtered=
|
| 63 |
+
for item in $RPATH_LIST
|
| 64 |
+
do
|
| 65 |
+
case "$item" in
|
| 66 |
+
./*|../*|*/..|*/../*)
|
| 67 |
+
;;
|
| 68 |
+
*)
|
| 69 |
+
[ -n "$filtered" ] && filtered="${filtered}:"
|
| 70 |
+
filtered="${filtered}${item}"
|
| 71 |
+
;;
|
| 72 |
+
esac
|
| 73 |
+
done
|
| 74 |
+
IFS="$save_IFS"
|
| 75 |
+
# if the result is empty, there is little we can do to fix it
|
| 76 |
+
RPATH_LIST="$filtered"
|
| 77 |
+
fi
|
| 78 |
+
|
| 79 |
+
# with --disable-overwrite, we installed into a subdirectory, but transformed
|
| 80 |
+
# the headers to include like this:
|
| 81 |
+
# <ncursesw/curses.h>
|
| 82 |
+
if [ xno = xno ]; then
|
| 83 |
+
case $includedir in
|
| 84 |
+
$prefix/include/ncursesw)
|
| 85 |
+
includedir=`echo "$includedir" | sed -e 's,/[^/]*$,,'`
|
| 86 |
+
;;
|
| 87 |
+
esac
|
| 88 |
+
fi
|
| 89 |
+
|
| 90 |
+
LIBS=""
|
| 91 |
+
if [ "tinfo" = "ncurses" ]; then
|
| 92 |
+
LIBS="-l${THIS} $LIBS"
|
| 93 |
+
else
|
| 94 |
+
LIBS="-l${THIS} -l${TINFO_LIB} $LIBS"
|
| 95 |
+
fi
|
| 96 |
+
|
| 97 |
+
# Ignore -L options which do not correspond to an actual directory, or which
|
| 98 |
+
# are standard library directories (i.e., the linker is supposed to search
|
| 99 |
+
# those directories).
|
| 100 |
+
#
|
| 101 |
+
# There is no portable way to find the list of standard library directories.
|
| 102 |
+
# Require a POSIX shell anyway, to keep this simple.
|
| 103 |
+
lib_flags=
|
| 104 |
+
for opt in -L$libdir -Wl,-O2 -Wl,--sort-common -Wl,--as-needed -Wl,-z,relro -Wl,-z,now -Wl,--disable-new-dtags -Wl,--gc-sections -Wl,-rpath,/workspace/anaconda3/lib -Wl,-rpath-link,/workspace/anaconda3/lib -L/workspace/anaconda3/lib $LIBS
|
| 105 |
+
do
|
| 106 |
+
case $opt in
|
| 107 |
+
-specs*) # ignore linker specs-files which were used to build library
|
| 108 |
+
continue
|
| 109 |
+
;;
|
| 110 |
+
-Wl,-z,*) # ignore flags used to manipulate shared image
|
| 111 |
+
continue
|
| 112 |
+
;;
|
| 113 |
+
-Wl,--dynamic-linker*) # ignore ELF interpreter
|
| 114 |
+
continue
|
| 115 |
+
;;
|
| 116 |
+
-Wl,--as-needed|-Wl,--build-id=*|-Wl,-dT,*|-Wl,-T,*)
|
| 117 |
+
continue
|
| 118 |
+
;;
|
| 119 |
+
-L*)
|
| 120 |
+
lib_check=`echo "x$opt" | sed -e 's/^.-L//'`
|
| 121 |
+
[ -d "$lib_check" ] || continue
|
| 122 |
+
case "$lib_check" in
|
| 123 |
+
/usr/local/lib64|/lib64|/usr/lib64|/usr/local/lib|/lib|/usr/lib) # skip standard libdir
|
| 124 |
+
if [ "$lib_check" = "$libdir" ]
|
| 125 |
+
then
|
| 126 |
+
lib_first=yes
|
| 127 |
+
IFS_save="$IFS"
|
| 128 |
+
IFS='|'
|
| 129 |
+
LIBDIRS="/usr/local/lib64|/lib64|/usr/lib64|/usr/local/lib|/lib|/usr/lib"
|
| 130 |
+
for lib_check in $LIBDIRS
|
| 131 |
+
do
|
| 132 |
+
if [ -d "$lib_check" ]
|
| 133 |
+
then
|
| 134 |
+
if [ "$lib_check" != "$libdir" ]
|
| 135 |
+
then
|
| 136 |
+
lib_first=no
|
| 137 |
+
fi
|
| 138 |
+
break
|
| 139 |
+
fi
|
| 140 |
+
done
|
| 141 |
+
IFS="$IFS_save"
|
| 142 |
+
[ $lib_first = yes ] && continue
|
| 143 |
+
found=no
|
| 144 |
+
for check in $lib_flags
|
| 145 |
+
do
|
| 146 |
+
if [ "x$check" = "x$opt" ]
|
| 147 |
+
then
|
| 148 |
+
found=yes
|
| 149 |
+
break
|
| 150 |
+
fi
|
| 151 |
+
done
|
| 152 |
+
[ $found = yes ] && continue
|
| 153 |
+
:
|
| 154 |
+
else
|
| 155 |
+
continue
|
| 156 |
+
fi
|
| 157 |
+
;;
|
| 158 |
+
*)
|
| 159 |
+
found=no
|
| 160 |
+
for check in $lib_flags
|
| 161 |
+
do
|
| 162 |
+
if [ "x$check" = "x$opt" ]
|
| 163 |
+
then
|
| 164 |
+
found=yes
|
| 165 |
+
break
|
| 166 |
+
fi
|
| 167 |
+
done
|
| 168 |
+
[ $found = yes ] && continue
|
| 169 |
+
;;
|
| 170 |
+
esac
|
| 171 |
+
;;
|
| 172 |
+
esac
|
| 173 |
+
lib_flags="$lib_flags $opt"
|
| 174 |
+
done
|
| 175 |
+
|
| 176 |
+
[ $# = 0 ] && exec /bin/sh "$0" --error
|
| 177 |
+
|
| 178 |
+
while [ $# -gt 0 ]; do
|
| 179 |
+
case "$1" in
|
| 180 |
+
# basic configuration
|
| 181 |
+
--prefix)
|
| 182 |
+
echo "$prefix"
|
| 183 |
+
;;
|
| 184 |
+
--exec-prefix)
|
| 185 |
+
echo "$exec_prefix"
|
| 186 |
+
;;
|
| 187 |
+
# compile/link
|
| 188 |
+
--cflags)
|
| 189 |
+
INCS=" -D_GNU_SOURCE -DNCURSES_WIDECHAR"
|
| 190 |
+
if [ "xno" = xno ]; then
|
| 191 |
+
INCS="$INCS -I${includesubdir}"
|
| 192 |
+
fi
|
| 193 |
+
if [ "${includedir}" != /usr/include ]; then
|
| 194 |
+
INCS="$INCS -I${includedir}"
|
| 195 |
+
fi
|
| 196 |
+
sed -e 's,^[ ]*,,' -e 's, [ ]*, ,g' -e 's,[ ]*$,,' <<-ENDECHO
|
| 197 |
+
$INCS
|
| 198 |
+
ENDECHO
|
| 199 |
+
;;
|
| 200 |
+
--libs)
|
| 201 |
+
OPTS=
|
| 202 |
+
for opt in $lib_flags
|
| 203 |
+
do
|
| 204 |
+
[ -n "$OPTS" ] && OPTS="$OPTS "
|
| 205 |
+
OPTS="${OPTS}${opt}"
|
| 206 |
+
done
|
| 207 |
+
printf '%s\n' "$OPTS"
|
| 208 |
+
;;
|
| 209 |
+
--libs-only-L)
|
| 210 |
+
OPTS=
|
| 211 |
+
for opt in $lib_flags
|
| 212 |
+
do
|
| 213 |
+
case "x$opt" in
|
| 214 |
+
x-L*)
|
| 215 |
+
[ -n "$OPTS" ] && OPTS="$OPTS "
|
| 216 |
+
OPTS="${OPTS}${opt}"
|
| 217 |
+
;;
|
| 218 |
+
esac
|
| 219 |
+
done
|
| 220 |
+
printf '%s\n' "$OPTS"
|
| 221 |
+
;;
|
| 222 |
+
--libs-only-l)
|
| 223 |
+
OPTS=
|
| 224 |
+
for opt in $lib_flags
|
| 225 |
+
do
|
| 226 |
+
case "x$opt" in
|
| 227 |
+
x-l*)
|
| 228 |
+
[ -n "$OPTS" ] && OPTS="$OPTS "
|
| 229 |
+
OPTS="${OPTS}${opt}"
|
| 230 |
+
;;
|
| 231 |
+
esac
|
| 232 |
+
done
|
| 233 |
+
printf '%s\n' "$OPTS"
|
| 234 |
+
;;
|
| 235 |
+
--libs-only-other)
|
| 236 |
+
OPTS=
|
| 237 |
+
for opt in $lib_flags
|
| 238 |
+
do
|
| 239 |
+
case "x$opt" in
|
| 240 |
+
x-[lL]*)
|
| 241 |
+
;;
|
| 242 |
+
*)
|
| 243 |
+
[ -n "$OPTS" ] && OPTS="$OPTS "
|
| 244 |
+
OPTS="${OPTS}${opt}"
|
| 245 |
+
;;
|
| 246 |
+
esac
|
| 247 |
+
done
|
| 248 |
+
printf '%s\n' "$OPTS"
|
| 249 |
+
;;
|
| 250 |
+
# identification
|
| 251 |
+
--version)
|
| 252 |
+
echo "6.4.20221231"
|
| 253 |
+
;;
|
| 254 |
+
--abi-version)
|
| 255 |
+
echo "6"
|
| 256 |
+
;;
|
| 257 |
+
--mouse-version)
|
| 258 |
+
echo "2"
|
| 259 |
+
;;
|
| 260 |
+
# locations
|
| 261 |
+
--bindir)
|
| 262 |
+
echo "${bindir}"
|
| 263 |
+
;;
|
| 264 |
+
--datadir)
|
| 265 |
+
echo "${datadir}"
|
| 266 |
+
;;
|
| 267 |
+
--includedir)
|
| 268 |
+
INCS=
|
| 269 |
+
if [ "xno" = xno ]; then
|
| 270 |
+
INCS="${includesubdir}"
|
| 271 |
+
elif [ "${includedir}" != /usr/include ]; then
|
| 272 |
+
INCS="${includedir}"
|
| 273 |
+
fi
|
| 274 |
+
echo "$INCS"
|
| 275 |
+
;;
|
| 276 |
+
--libdir)
|
| 277 |
+
echo "${libdir}"
|
| 278 |
+
;;
|
| 279 |
+
--mandir)
|
| 280 |
+
echo "${mandir}"
|
| 281 |
+
;;
|
| 282 |
+
--terminfo)
|
| 283 |
+
echo "/workspace/anaconda3/share/terminfo"
|
| 284 |
+
;;
|
| 285 |
+
--terminfo-dirs)
|
| 286 |
+
echo "/workspace/anaconda3/share/terminfo"
|
| 287 |
+
;;
|
| 288 |
+
--termpath)
|
| 289 |
+
echo "/etc/termcap:/usr/share/misc/termcap"
|
| 290 |
+
;;
|
| 291 |
+
# general info
|
| 292 |
+
--help)
|
| 293 |
+
cat <<ENDHELP
|
| 294 |
+
Usage: `basename "$0"` [options]
|
| 295 |
+
|
| 296 |
+
Options:
|
| 297 |
+
--prefix echos the package-prefix of ${THIS}
|
| 298 |
+
--exec-prefix echos the executable-prefix of ${THIS}
|
| 299 |
+
|
| 300 |
+
--cflags echos the C compiler flags needed to compile with ${THIS}
|
| 301 |
+
--libs echos the libraries needed to link with ${THIS}
|
| 302 |
+
|
| 303 |
+
--libs-only-L echos -L linker options (search path) for ${THIS}
|
| 304 |
+
--libs-only-l echos -l linker options (libraries) for ${THIS}
|
| 305 |
+
--libs-only-other echos linker options other than -L/-l
|
| 306 |
+
|
| 307 |
+
--version echos the release+patchdate version of ${THIS}
|
| 308 |
+
--abi-version echos the ABI version of ${THIS}
|
| 309 |
+
--mouse-version echos the mouse-interface version of ${THIS}
|
| 310 |
+
|
| 311 |
+
--bindir echos the directory containing ${THIS} programs
|
| 312 |
+
--datadir echos the directory containing ${THIS} data
|
| 313 |
+
--includedir echos the directory containing ${THIS} header files
|
| 314 |
+
--libdir echos the directory containing ${THIS} libraries
|
| 315 |
+
--mandir echos the directory containing ${THIS} manpages
|
| 316 |
+
--terminfo echos the \$TERMINFO terminfo database path
|
| 317 |
+
--terminfo-dirs echos the \$TERMINFO_DIRS directory list
|
| 318 |
+
--termpath echos the \$TERMPATH termcap list
|
| 319 |
+
|
| 320 |
+
--help prints this message
|
| 321 |
+
ENDHELP
|
| 322 |
+
;;
|
| 323 |
+
--error|*)
|
| 324 |
+
/bin/sh "$0" --help 1>&2
|
| 325 |
+
exit 1
|
| 326 |
+
;;
|
| 327 |
+
esac
|
| 328 |
+
shift
|
| 329 |
+
done
|
| 330 |
+
# vi:ts=4 sw=4
|
| 331 |
+
# vile:shmode
|
my_container_sandbox/workspace/anaconda3/bin/nib-conform
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/workspace/anaconda3/bin/python3.8
|
| 2 |
+
# -*- coding: utf-8 -*-
|
| 3 |
+
import re
|
| 4 |
+
import sys
|
| 5 |
+
from nibabel.cmdline.conform import main
|
| 6 |
+
if __name__ == '__main__':
|
| 7 |
+
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
|
| 8 |
+
sys.exit(main())
|
my_container_sandbox/workspace/anaconda3/bin/nib-convert
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/workspace/anaconda3/bin/python3.8
|
| 2 |
+
# -*- coding: utf-8 -*-
|
| 3 |
+
import re
|
| 4 |
+
import sys
|
| 5 |
+
from nibabel.cmdline.convert import main
|
| 6 |
+
if __name__ == '__main__':
|
| 7 |
+
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
|
| 8 |
+
sys.exit(main())
|
my_container_sandbox/workspace/anaconda3/bin/nib-dicomfs
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/workspace/anaconda3/bin/python3.8
|
| 2 |
+
# -*- coding: utf-8 -*-
|
| 3 |
+
import re
|
| 4 |
+
import sys
|
| 5 |
+
from nibabel.cmdline.dicomfs import main
|
| 6 |
+
if __name__ == '__main__':
|
| 7 |
+
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
|
| 8 |
+
sys.exit(main())
|
my_container_sandbox/workspace/anaconda3/bin/nib-ls
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/workspace/anaconda3/bin/python3.8
|
| 2 |
+
# -*- coding: utf-8 -*-
|
| 3 |
+
import re
|
| 4 |
+
import sys
|
| 5 |
+
from nibabel.cmdline.ls import main
|
| 6 |
+
if __name__ == '__main__':
|
| 7 |
+
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
|
| 8 |
+
sys.exit(main())
|
my_container_sandbox/workspace/anaconda3/bin/nib-nifti-dx
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/workspace/anaconda3/bin/python3.8
|
| 2 |
+
# -*- coding: utf-8 -*-
|
| 3 |
+
import re
|
| 4 |
+
import sys
|
| 5 |
+
from nibabel.cmdline.nifti_dx import main
|
| 6 |
+
if __name__ == '__main__':
|
| 7 |
+
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
|
| 8 |
+
sys.exit(main())
|
my_container_sandbox/workspace/anaconda3/bin/nib-stats
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/workspace/anaconda3/bin/python3.8
|
| 2 |
+
# -*- coding: utf-8 -*-
|
| 3 |
+
import re
|
| 4 |
+
import sys
|
| 5 |
+
from nibabel.cmdline.stats import main
|
| 6 |
+
if __name__ == '__main__':
|
| 7 |
+
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
|
| 8 |
+
sys.exit(main())
|
my_container_sandbox/workspace/anaconda3/bin/nib-trk2tck
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/workspace/anaconda3/bin/python3.8
|
| 2 |
+
# -*- coding: utf-8 -*-
|
| 3 |
+
import re
|
| 4 |
+
import sys
|
| 5 |
+
from nibabel.cmdline.trk2tck import main
|
| 6 |
+
if __name__ == '__main__':
|
| 7 |
+
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
|
| 8 |
+
sys.exit(main())
|
my_container_sandbox/workspace/anaconda3/bin/normalizer
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/workspace/anaconda3/bin/python3.8
|
| 2 |
+
# -*- coding: utf-8 -*-
|
| 3 |
+
import re
|
| 4 |
+
import sys
|
| 5 |
+
from charset_normalizer.cli.normalizer import cli_detect
|
| 6 |
+
if __name__ == '__main__':
|
| 7 |
+
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
|
| 8 |
+
sys.exit(cli_detect())
|
my_container_sandbox/workspace/anaconda3/bin/parrec2nii
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/workspace/anaconda3/bin/python3.8
|
| 2 |
+
# -*- coding: utf-8 -*-
|
| 3 |
+
import re
|
| 4 |
+
import sys
|
| 5 |
+
from nibabel.cmdline.parrec2nii import main
|
| 6 |
+
if __name__ == '__main__':
|
| 7 |
+
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
|
| 8 |
+
sys.exit(main())
|
my_container_sandbox/workspace/anaconda3/bin/pasteurize
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/workspace/anaconda3/bin/python3.8
|
| 2 |
+
# -*- coding: utf-8 -*-
|
| 3 |
+
import re
|
| 4 |
+
import sys
|
| 5 |
+
from libpasteurize.main import main
|
| 6 |
+
if __name__ == '__main__':
|
| 7 |
+
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
|
| 8 |
+
sys.exit(main())
|
my_container_sandbox/workspace/anaconda3/bin/pip
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/workspace/anaconda3/bin/python3.8
|
| 2 |
+
# -*- coding: utf-8 -*-
|
| 3 |
+
import re
|
| 4 |
+
import sys
|
| 5 |
+
|
| 6 |
+
from pip._internal.cli.main import main
|
| 7 |
+
|
| 8 |
+
if __name__ == '__main__':
|
| 9 |
+
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
|
| 10 |
+
sys.exit(main())
|
my_container_sandbox/workspace/anaconda3/bin/pip3
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/workspace/anaconda3/bin/python3.8
|
| 2 |
+
# -*- coding: utf-8 -*-
|
| 3 |
+
import re
|
| 4 |
+
import sys
|
| 5 |
+
|
| 6 |
+
from pip._internal.cli.main import main
|
| 7 |
+
|
| 8 |
+
if __name__ == '__main__':
|
| 9 |
+
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
|
| 10 |
+
sys.exit(main())
|
my_container_sandbox/workspace/anaconda3/bin/pycodestyle
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/workspace/anaconda3/bin/python3.8
|
| 2 |
+
# -*- coding: utf-8 -*-
|
| 3 |
+
import re
|
| 4 |
+
import sys
|
| 5 |
+
from pycodestyle import _main
|
| 6 |
+
if __name__ == '__main__':
|
| 7 |
+
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
|
| 8 |
+
sys.exit(_main())
|
my_container_sandbox/workspace/anaconda3/bin/pydoc
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/workspace/anaconda3/bin/python3.8
|
| 2 |
+
|
| 3 |
+
import pydoc
|
| 4 |
+
if __name__ == '__main__':
|
| 5 |
+
pydoc.cli()
|
my_container_sandbox/workspace/anaconda3/bin/pydoc3.8
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/workspace/anaconda3/bin/python3.8
|
| 2 |
+
|
| 3 |
+
import pydoc
|
| 4 |
+
if __name__ == '__main__':
|
| 5 |
+
pydoc.cli()
|
my_container_sandbox/workspace/anaconda3/bin/pyftmerge
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/workspace/anaconda3/bin/python3.8
|
| 2 |
+
# -*- coding: utf-8 -*-
|
| 3 |
+
import re
|
| 4 |
+
import sys
|
| 5 |
+
from fontTools.merge import main
|
| 6 |
+
if __name__ == '__main__':
|
| 7 |
+
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
|
| 8 |
+
sys.exit(main())
|
my_container_sandbox/workspace/anaconda3/bin/pyftsubset
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/workspace/anaconda3/bin/python3.8
|
| 2 |
+
# -*- coding: utf-8 -*-
|
| 3 |
+
import re
|
| 4 |
+
import sys
|
| 5 |
+
from fontTools.subset import main
|
| 6 |
+
if __name__ == '__main__':
|
| 7 |
+
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
|
| 8 |
+
sys.exit(main())
|
my_container_sandbox/workspace/anaconda3/bin/pygrun
ADDED
|
@@ -0,0 +1,164 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/workspace/anaconda3/bin/python3.8
|
| 2 |
+
__author__ = 'jszheng'
|
| 3 |
+
import optparse
|
| 4 |
+
import sys
|
| 5 |
+
import os
|
| 6 |
+
import importlib
|
| 7 |
+
from antlr4 import *
|
| 8 |
+
|
| 9 |
+
|
| 10 |
+
# this is a python version of TestRig
|
| 11 |
+
def beautify_lisp_string(in_string):
|
| 12 |
+
indent_size = 3
|
| 13 |
+
add_indent = ' '*indent_size
|
| 14 |
+
out_string = in_string[0] # no indent for 1st (
|
| 15 |
+
indent = ''
|
| 16 |
+
for i in range(1, len(in_string)):
|
| 17 |
+
if in_string[i] == '(' and in_string[i+1] != ' ':
|
| 18 |
+
indent += add_indent
|
| 19 |
+
out_string += "\n" + indent + '('
|
| 20 |
+
elif in_string[i] == ')':
|
| 21 |
+
out_string += ')'
|
| 22 |
+
if len(indent) > 0:
|
| 23 |
+
indent = indent.replace(add_indent, '', 1)
|
| 24 |
+
else:
|
| 25 |
+
out_string += in_string[i]
|
| 26 |
+
return out_string
|
| 27 |
+
|
| 28 |
+
|
| 29 |
+
if __name__ == '__main__':
|
| 30 |
+
|
| 31 |
+
#############################################################
|
| 32 |
+
# parse options
|
| 33 |
+
# not support -gui -encoding -ps
|
| 34 |
+
#############################################################
|
| 35 |
+
usage = "Usage: %prog [options] Grammar_Name Start_Rule"
|
| 36 |
+
parser = optparse.OptionParser(usage=usage)
|
| 37 |
+
# parser.add_option('-t', '--tree',
|
| 38 |
+
# dest="out_file",
|
| 39 |
+
# default="default.out",
|
| 40 |
+
# help='set output file name',
|
| 41 |
+
# )
|
| 42 |
+
parser.add_option('-t', '--tree',
|
| 43 |
+
default=False,
|
| 44 |
+
action='store_true',
|
| 45 |
+
help='Print AST tree'
|
| 46 |
+
)
|
| 47 |
+
parser.add_option('-k', '--tokens',
|
| 48 |
+
dest="token",
|
| 49 |
+
default=False,
|
| 50 |
+
action='store_true',
|
| 51 |
+
help='Show Tokens'
|
| 52 |
+
)
|
| 53 |
+
parser.add_option('-s', '--sll',
|
| 54 |
+
dest="sll",
|
| 55 |
+
default=False,
|
| 56 |
+
action='store_true',
|
| 57 |
+
help='Show SLL'
|
| 58 |
+
)
|
| 59 |
+
parser.add_option('-d', '--diagnostics',
|
| 60 |
+
dest="diagnostics",
|
| 61 |
+
default=False,
|
| 62 |
+
action='store_true',
|
| 63 |
+
help='Enable diagnostics error listener'
|
| 64 |
+
)
|
| 65 |
+
parser.add_option('-a', '--trace',
|
| 66 |
+
dest="trace",
|
| 67 |
+
default=False,
|
| 68 |
+
action='store_true',
|
| 69 |
+
help='Enable Trace'
|
| 70 |
+
)
|
| 71 |
+
|
| 72 |
+
options, remainder = parser.parse_args()
|
| 73 |
+
if len(remainder) < 2:
|
| 74 |
+
print('ERROR: You have to provide at least 2 arguments!')
|
| 75 |
+
parser.print_help()
|
| 76 |
+
exit(1)
|
| 77 |
+
else:
|
| 78 |
+
grammar = remainder.pop(0)
|
| 79 |
+
start_rule = remainder.pop(0)
|
| 80 |
+
file_list = remainder
|
| 81 |
+
|
| 82 |
+
#############################################################
|
| 83 |
+
# check and load antlr generated files
|
| 84 |
+
#############################################################
|
| 85 |
+
# dynamic load the module and class
|
| 86 |
+
lexerName = grammar + 'Lexer'
|
| 87 |
+
parserName = grammar + 'Parser'
|
| 88 |
+
# check if the generate file exist
|
| 89 |
+
lexer_file = lexerName + '.py'
|
| 90 |
+
parser_file = parserName + '.py'
|
| 91 |
+
if not os.path.exists(lexer_file):
|
| 92 |
+
print("[ERROR] Can't find lexer file {}!".format(lexer_file))
|
| 93 |
+
print(os.path.realpath('.'))
|
| 94 |
+
exit(1)
|
| 95 |
+
if not os.path.exists(parser_file):
|
| 96 |
+
print("[ERROR] Can't find parser file {}!".format(lexer_file))
|
| 97 |
+
print(os.path.realpath('.'))
|
| 98 |
+
exit(1)
|
| 99 |
+
|
| 100 |
+
# current directory is where the generated file loaded
|
| 101 |
+
# the script might be in different place.
|
| 102 |
+
sys.path.append('.')
|
| 103 |
+
# print(sys.path)
|
| 104 |
+
|
| 105 |
+
# print("Load Lexer {}".format(lexerName))
|
| 106 |
+
module_lexer = __import__(lexerName, globals(), locals(), lexerName)
|
| 107 |
+
class_lexer = getattr(module_lexer, lexerName)
|
| 108 |
+
# print(class_lexer)
|
| 109 |
+
|
| 110 |
+
# print("Load Parser {}".format(parserName))
|
| 111 |
+
module_parser = __import__(parserName, globals(), locals(), parserName)
|
| 112 |
+
class_parser = getattr(module_parser, parserName)
|
| 113 |
+
# print(class_parser)
|
| 114 |
+
|
| 115 |
+
#############################################################
|
| 116 |
+
# main process steps.
|
| 117 |
+
#############################################################
|
| 118 |
+
def process(input_stream, class_lexer, class_parser):
|
| 119 |
+
lexer = class_lexer(input_stream)
|
| 120 |
+
token_stream = CommonTokenStream(lexer)
|
| 121 |
+
token_stream.fill()
|
| 122 |
+
if options.token: # need to show token
|
| 123 |
+
for tok in token_stream.tokens:
|
| 124 |
+
print(tok)
|
| 125 |
+
if start_rule == 'tokens':
|
| 126 |
+
return
|
| 127 |
+
|
| 128 |
+
parser = class_parser(token_stream)
|
| 129 |
+
|
| 130 |
+
if options.diagnostics:
|
| 131 |
+
parser.addErrorListener(DiagnosticErrorListener())
|
| 132 |
+
parser._interp.predictionMode = PredictionMode.LL_EXACT_AMBIG_DETECTION
|
| 133 |
+
if options.tree:
|
| 134 |
+
parser.buildParseTrees = True
|
| 135 |
+
if options.sll:
|
| 136 |
+
parser._interp.predictionMode = PredictionMode.SLL
|
| 137 |
+
#parser.setTokenStream(token_stream)
|
| 138 |
+
parser.setTrace(options.trace)
|
| 139 |
+
if hasattr(parser, start_rule):
|
| 140 |
+
func_start_rule = getattr(parser, start_rule)
|
| 141 |
+
parser_ret = func_start_rule()
|
| 142 |
+
if options.tree:
|
| 143 |
+
lisp_tree_str = parser_ret.toStringTree(recog=parser)
|
| 144 |
+
print(beautify_lisp_string(lisp_tree_str))
|
| 145 |
+
else:
|
| 146 |
+
print("[ERROR] Can't find start rule '{}' in parser '{}'".format(start_rule, parserName))
|
| 147 |
+
|
| 148 |
+
#############################################################
|
| 149 |
+
# use stdin if not provide file as input stream
|
| 150 |
+
#############################################################
|
| 151 |
+
if len(file_list) == 0:
|
| 152 |
+
input_stream = InputStream(sys.stdin.read())
|
| 153 |
+
process(input_stream, class_lexer, class_parser)
|
| 154 |
+
exit(0)
|
| 155 |
+
|
| 156 |
+
#############################################################
|
| 157 |
+
# iterate all input file
|
| 158 |
+
#############################################################
|
| 159 |
+
for file_name in file_list:
|
| 160 |
+
if os.path.exists(file_name) and os.path.isfile(file_name):
|
| 161 |
+
input_stream = FileStream(file_name)
|
| 162 |
+
process(input_stream, class_lexer, class_parser)
|
| 163 |
+
else:
|
| 164 |
+
print("[ERROR] file {} not exist".format(os.path.normpath(file_name)))
|
my_container_sandbox/workspace/anaconda3/bin/pyrsa-encrypt
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/workspace/anaconda3/bin/python3.8
|
| 2 |
+
# -*- coding: utf-8 -*-
|
| 3 |
+
import re
|
| 4 |
+
import sys
|
| 5 |
+
from rsa.cli import encrypt
|
| 6 |
+
if __name__ == '__main__':
|
| 7 |
+
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
|
| 8 |
+
sys.exit(encrypt())
|
my_container_sandbox/workspace/anaconda3/bin/python3-config
ADDED
|
@@ -0,0 +1,116 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/bin/sh
|
| 2 |
+
|
| 3 |
+
# Keep this script in sync with python-config.in
|
| 4 |
+
|
| 5 |
+
exit_with_usage ()
|
| 6 |
+
{
|
| 7 |
+
echo "Usage: $0 --prefix|--exec-prefix|--includes|--libs|--cflags|--ldflags|--extension-suffix|--help|--abiflags|--configdir|--embed"
|
| 8 |
+
exit $1
|
| 9 |
+
}
|
| 10 |
+
|
| 11 |
+
if [ "$1" = "" ] ; then
|
| 12 |
+
exit_with_usage 1
|
| 13 |
+
fi
|
| 14 |
+
|
| 15 |
+
# Returns the actual prefix where this script was installed to.
|
| 16 |
+
installed_prefix ()
|
| 17 |
+
{
|
| 18 |
+
RESULT=$(dirname $(cd $(dirname "$1") && pwd -P))
|
| 19 |
+
if which readlink >/dev/null 2>&1 ; then
|
| 20 |
+
if readlink -f "$RESULT" >/dev/null 2>&1; then
|
| 21 |
+
RESULT=$(readlink -f "$RESULT")
|
| 22 |
+
fi
|
| 23 |
+
fi
|
| 24 |
+
echo $RESULT
|
| 25 |
+
}
|
| 26 |
+
|
| 27 |
+
prefix_real=$(installed_prefix "$0")
|
| 28 |
+
|
| 29 |
+
# Use sed to fix paths from their built-to locations to their installed-to
|
| 30 |
+
# locations. Keep prefix & exec_prefix using their original values in case
|
| 31 |
+
# they are referenced in other configure variables, to prevent double
|
| 32 |
+
# substitution, issue #22140.
|
| 33 |
+
prefix="/workspace/anaconda3"
|
| 34 |
+
exec_prefix="${prefix}"
|
| 35 |
+
exec_prefix_real=${prefix_real}
|
| 36 |
+
includedir=$(echo "${prefix}/include" | sed "s#$prefix#$prefix_real#")
|
| 37 |
+
libdir=$(echo "${exec_prefix}/lib" | sed "s#$prefix#$prefix_real#")
|
| 38 |
+
CFLAGS=$(echo "-march=nocona -mtune=haswell -ftree-vectorize -fPIC -fstack-protector-strong -fno-plt -O3 -ffunction-sections -pipe -isystem /workspace/anaconda3/include -fdebug-prefix-map=/croot/python-split_1694437953337/work=/usr/local/src/conda/python-3.8.18 -fdebug-prefix-map=/workspace/anaconda3=/usr/local/src/conda-prefix -fuse-linker-plugin -ffat-lto-objects -flto-partition=none -flto" | sed "s#$prefix#$prefix_real#")
|
| 39 |
+
VERSION="3.8"
|
| 40 |
+
LIBM="-lm"
|
| 41 |
+
LIBC=""
|
| 42 |
+
SYSLIBS="$LIBM $LIBC"
|
| 43 |
+
ABIFLAGS=""
|
| 44 |
+
LIBS=" -lcrypt -lpthread -ldl -lutil -lm $SYSLIBS"
|
| 45 |
+
LIBS_EMBED="-lpython${VERSION}${ABIFLAGS} -lcrypt -lpthread -ldl -lutil -lm $SYSLIBS"
|
| 46 |
+
BASECFLAGS=" -Wno-unused-result -Wsign-compare"
|
| 47 |
+
LDLIBRARY="libpython${VERSION}${ABIFLAGS}.a"
|
| 48 |
+
OPT="-DNDEBUG -fwrapv -O3 -Wall"
|
| 49 |
+
PY_ENABLE_SHARED="0"
|
| 50 |
+
LDVERSION="${VERSION}${ABIFLAGS}"
|
| 51 |
+
LIBDEST=${prefix_real}/lib/python${VERSION}
|
| 52 |
+
LIBPL=$(echo "${prefix}/lib/python3.8/config-${VERSION}${ABIFLAGS}-x86_64-linux-gnu" | sed "s#$prefix#$prefix_real#")
|
| 53 |
+
SO=".cpython-38-x86_64-linux-gnu.so"
|
| 54 |
+
PYTHONFRAMEWORK=""
|
| 55 |
+
INCDIR="-I$includedir/python${VERSION}${ABIFLAGS}"
|
| 56 |
+
PLATINCDIR="-I$includedir/python${VERSION}${ABIFLAGS}"
|
| 57 |
+
PY_EMBED=0
|
| 58 |
+
|
| 59 |
+
# Scan for --help or unknown argument.
|
| 60 |
+
for ARG in $*
|
| 61 |
+
do
|
| 62 |
+
case $ARG in
|
| 63 |
+
--help)
|
| 64 |
+
exit_with_usage 0
|
| 65 |
+
;;
|
| 66 |
+
--embed)
|
| 67 |
+
PY_EMBED=1
|
| 68 |
+
;;
|
| 69 |
+
--prefix|--exec-prefix|--includes|--libs|--cflags|--ldflags|--extension-suffix|--abiflags|--configdir)
|
| 70 |
+
;;
|
| 71 |
+
*)
|
| 72 |
+
exit_with_usage 1
|
| 73 |
+
;;
|
| 74 |
+
esac
|
| 75 |
+
done
|
| 76 |
+
|
| 77 |
+
if [ $PY_EMBED = 1 ] ; then
|
| 78 |
+
LIBS="$LIBS_EMBED"
|
| 79 |
+
fi
|
| 80 |
+
|
| 81 |
+
for ARG in "$@"
|
| 82 |
+
do
|
| 83 |
+
case "$ARG" in
|
| 84 |
+
--prefix)
|
| 85 |
+
echo "$prefix_real"
|
| 86 |
+
;;
|
| 87 |
+
--exec-prefix)
|
| 88 |
+
echo "$exec_prefix_real"
|
| 89 |
+
;;
|
| 90 |
+
--includes)
|
| 91 |
+
echo "$INCDIR $PLATINCDIR"
|
| 92 |
+
;;
|
| 93 |
+
--cflags)
|
| 94 |
+
echo "$INCDIR $PLATINCDIR $BASECFLAGS $CFLAGS $OPT"
|
| 95 |
+
;;
|
| 96 |
+
--libs)
|
| 97 |
+
echo "$LIBS"
|
| 98 |
+
;;
|
| 99 |
+
--ldflags)
|
| 100 |
+
LIBPLUSED=
|
| 101 |
+
if [ "$PY_ENABLE_SHARED" = "0" ] ; then
|
| 102 |
+
LIBPLUSED="-L$LIBPL"
|
| 103 |
+
fi
|
| 104 |
+
echo "$LIBPLUSED -L$libdir $LIBS"
|
| 105 |
+
;;
|
| 106 |
+
--extension-suffix)
|
| 107 |
+
echo "$SO"
|
| 108 |
+
;;
|
| 109 |
+
--abiflags)
|
| 110 |
+
echo "$ABIFLAGS"
|
| 111 |
+
;;
|
| 112 |
+
--configdir)
|
| 113 |
+
echo "$LIBPL"
|
| 114 |
+
;;
|
| 115 |
+
esac
|
| 116 |
+
done
|
my_container_sandbox/workspace/anaconda3/bin/reset
ADDED
|
Binary file (30.7 kB). View file
|
|
|
my_container_sandbox/workspace/anaconda3/bin/skivi
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/workspace/anaconda3/bin/python3.8
|
| 2 |
+
# -*- coding: utf-8 -*-
|
| 3 |
+
import re
|
| 4 |
+
import sys
|
| 5 |
+
from skimage.scripts.skivi import main
|
| 6 |
+
if __name__ == '__main__':
|
| 7 |
+
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
|
| 8 |
+
sys.exit(main())
|