assassinlike commited on
Commit
9feb548
·
verified ·
1 Parent(s): 82063c0

Add files using upload-large-folder tool

Browse files
This view is limited to 50 files because it contains too many changes.   See raw diff
Files changed (50) hide show
  1. data/miniconda3/bin/.conda-anaconda-tos-pre-unlink.sh +6 -0
  2. data/miniconda3/bin/.gdk-pixbuf-post-link.sh +18 -0
  3. data/miniconda3/bin/.graphviz-post-link.sh +5 -0
  4. data/miniconda3/bin/.librsvg-post-link.sh +12 -0
  5. data/miniconda3/bin/.librsvg-pre-unlink.sh +10 -0
  6. data/miniconda3/bin/7z +2 -0
  7. data/miniconda3/bin/7za +2 -0
  8. data/miniconda3/bin/7zr +2 -0
  9. data/miniconda3/bin/Magick++-config +65 -0
  10. data/miniconda3/bin/MagickCore-config +67 -0
  11. data/miniconda3/bin/MagickWand-config +62 -0
  12. data/miniconda3/bin/anaconda +11 -0
  13. data/miniconda3/bin/animate +0 -0
  14. data/miniconda3/bin/annotate +0 -0
  15. data/miniconda3/bin/archspec +10 -0
  16. data/miniconda3/bin/autopoint +826 -0
  17. data/miniconda3/bin/bcomps +0 -0
  18. data/miniconda3/bin/bsdcat +0 -0
  19. data/miniconda3/bin/bzegrep +85 -0
  20. data/miniconda3/bin/bzfgrep +85 -0
  21. data/miniconda3/bin/bzgrep +85 -0
  22. data/miniconda3/bin/bzip2recover +0 -0
  23. data/miniconda3/bin/bzless +61 -0
  24. data/miniconda3/bin/bzmore +61 -0
  25. data/miniconda3/bin/c_rehash +253 -0
  26. data/miniconda3/bin/captoinfo +0 -0
  27. data/miniconda3/bin/cjpeg +0 -0
  28. data/miniconda3/bin/clear +0 -0
  29. data/miniconda3/bin/compare +0 -0
  30. data/miniconda3/bin/composite +0 -0
  31. data/miniconda3/bin/conda +13 -0
  32. data/miniconda3/bin/conda-content-trust +11 -0
  33. data/miniconda3/bin/conda-env +7 -0
  34. data/miniconda3/bin/conda-token +11 -0
  35. data/miniconda3/bin/conda2solv +0 -0
  36. data/miniconda3/bin/conjure +0 -0
  37. data/miniconda3/bin/corelist +577 -0
  38. data/miniconda3/bin/cpan +352 -0
  39. data/miniconda3/bin/curl-config +189 -0
  40. data/miniconda3/bin/cwebp +0 -0
  41. data/miniconda3/bin/dbus-monitor +0 -0
  42. data/miniconda3/bin/dbus-run-session +0 -0
  43. data/miniconda3/bin/dbus-send +0 -0
  44. data/miniconda3/bin/dbus-test-tool +0 -0
  45. data/miniconda3/bin/dbus-update-activation-environment +0 -0
  46. data/miniconda3/bin/dbus-uuidgen +0 -0
  47. data/miniconda3/bin/deactivate +7 -0
  48. data/miniconda3/bin/delaunay +0 -0
  49. data/miniconda3/bin/derb +0 -0
  50. data/miniconda3/bin/diffimg +0 -0
data/miniconda3/bin/.conda-anaconda-tos-pre-unlink.sh ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ #!/bin/sh
2
+
3
+ _PREFIX="${CONDA_PREFIX:-${PREFIX:-}}"
4
+ _PYTHON="${_PREFIX}/python.exe"
5
+ [ -f "${_PYTHON}" ] || _PYTHON="${_PREFIX}/bin/python"
6
+ "${_PYTHON}" -m conda tos clean --all >>"${_PREFIX}/.messages.txt" 2>&1 || :
data/miniconda3/bin/.gdk-pixbuf-post-link.sh ADDED
@@ -0,0 +1,18 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/bin/bash
2
+
3
+ # Make sure that gdk-pixbuf's loaders.cache is fully up-to-date.
4
+ #
5
+ # Packages that install gdk-pixbuf loaders (such as librsvg) should have
6
+ # post-link and post-unlink scripts that just execute this one, which will be
7
+ # available as `$PREFIX/bin/.gdk-pixbuf-post-link.sh`.
8
+
9
+ set -e
10
+
11
+ # When cross-compiling, or installing for a different platform, the gdk-pixbuf-query-loaders binary can't be executed
12
+ # https://github.com/conda-forge/gdk-pixbuf-feedstock/issues/23
13
+ "$PREFIX/bin/gdk-pixbuf-query-loaders" --update-cache 2>>"${PREFIX}/.messages.txt" || \
14
+ (
15
+ echo "ERROR: Failed to update gdk-pixbuf's cache, some plugins may not be found."
16
+ echo "To fix this, activate the environment and run:"
17
+ echo " gdk-pixbuf-query-loaders --update-cache"
18
+ ) >> "${PREFIX}/.messages.txt"
data/miniconda3/bin/.graphviz-post-link.sh ADDED
@@ -0,0 +1,5 @@
 
 
 
 
 
 
1
+ #!/bin/bash
2
+
3
+ if ! compgen -G "${PREFIX}/lib/graphviz"/config* > /dev/null; then
4
+ "${PREFIX}/bin"/dot -c || true
5
+ fi
data/miniconda3/bin/.librsvg-post-link.sh ADDED
@@ -0,0 +1,12 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ GDK_PIXBUF_POST_LINK_SCRIPT="${PREFIX}/bin/.gdk-pixbuf-post-link.sh"
2
+ if [ -x "$GDK_PIXBUF_POST_LINK_SCRIPT" ]
3
+ then
4
+ # The gdk-pixbuf post-link function updates the loaders
5
+ "$GDK_PIXBUF_POST_LINK_SCRIPT"
6
+ else
7
+ cat >> ${PREFIX}/.messages.txt << EOF
8
+ librsvg: The post-link script did not complete.
9
+ To take advantage of gdk-pixbuf's support for librsvg, please run:
10
+ $GDK_PIXBUF_POST_LINK_SCRIPT
11
+ EOF
12
+ fi
data/miniconda3/bin/.librsvg-pre-unlink.sh ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ GDK_PIXBUF_POST_LINK_SCRIPT="${PREFIX}/bin/.gdk-pixbuf-post-link.sh"
2
+ if [ ! -x "$GDK_PIXBUF_POST_LINK_SCRIPT" ]; then exit 0; fi
3
+
4
+ # Since librsvg is being removed, we want it to be removed from loaders.cache.
5
+ # But since this is a PRE-unlink script, the loader is still present.
6
+ # Remove it now so we can update loaders.cache correctly.
7
+ rm -f ${PREFIX}/lib/gdk-pixbuf-2.0/*/loaders/libpixbufloader-svg.so
8
+
9
+ # The gdk-pixbuf post-link function updates the loaders
10
+ "$GDK_PIXBUF_POST_LINK_SCRIPT"
data/miniconda3/bin/7z ADDED
@@ -0,0 +1,2 @@
 
 
 
1
+ #! /bin/sh
2
+ "/home/zangyihe/miniconda3/lib/p7zip/7z" "$@"
data/miniconda3/bin/7za ADDED
@@ -0,0 +1,2 @@
 
 
 
1
+ #! /bin/sh
2
+ "/home/zangyihe/miniconda3/lib/p7zip/7za" "$@"
data/miniconda3/bin/7zr ADDED
@@ -0,0 +1,2 @@
 
 
 
1
+ #! /bin/sh
2
+ "/home/zangyihe/miniconda3/lib/p7zip/7zr" "$@"
data/miniconda3/bin/Magick++-config ADDED
@@ -0,0 +1,65 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/bin/sh
2
+ #
3
+ # Configure options script for re-calling Magick+ compilation options
4
+ # required to use the Magick++ library.
5
+ #
6
+ #
7
+
8
+ prefix=/home/zangyihe/miniconda3
9
+ exec_prefix=${prefix}
10
+
11
+ usage='Usage: Magick++-config [--cppflags] [--cxxflags] [--exec-prefix] [--ldflags] [--libs] [--prefix] [--version]
12
+
13
+ For example, "magick.cpp" may be compiled to produce "magick" as follows:
14
+
15
+ "c++ -o magick magick.cpp `Magick++-config --cppflags --cxxflags --ldflags --libs`"'
16
+
17
+ if test $# -eq 0; then
18
+ echo "${usage}" 1>&2
19
+ exit 1
20
+ fi
21
+
22
+ while test $# -gt 0; do
23
+ case "$1" in
24
+ -*=*) optarg=`echo "$1" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
25
+ *) optarg= ;;
26
+ esac
27
+ case $1 in
28
+ --prefix=*)
29
+ prefix=$optarg
30
+ ;;
31
+ --prefix)
32
+ echo $prefix
33
+ ;;
34
+ --exec-prefix=*)
35
+ exec_prefix=$optarg
36
+ ;;
37
+ --exec-prefix)
38
+ echo $exec_prefix
39
+ ;;
40
+ --version)
41
+ echo '7.1.1 Q16 HDRI'
42
+ ;;
43
+ --cflags)
44
+ /home/conda/feedstock_root/build_artifacts/imagemagick_1679944893352/_build_env/bin/x86_64-conda-linux-gnu-pkg-config --cflags Magick++-7.Q16HDRI
45
+ ;;
46
+ --cxxflags)
47
+ /home/conda/feedstock_root/build_artifacts/imagemagick_1679944893352/_build_env/bin/x86_64-conda-linux-gnu-pkg-config --cflags Magick++-7.Q16HDRI
48
+ ;;
49
+ --cppflags)
50
+ /home/conda/feedstock_root/build_artifacts/imagemagick_1679944893352/_build_env/bin/x86_64-conda-linux-gnu-pkg-config --cflags Magick++-7.Q16HDRI
51
+ ;;
52
+ --ldflags)
53
+ /home/conda/feedstock_root/build_artifacts/imagemagick_1679944893352/_build_env/bin/x86_64-conda-linux-gnu-pkg-config --libs Magick++-7.Q16HDRI
54
+ ;;
55
+ --libs)
56
+ /home/conda/feedstock_root/build_artifacts/imagemagick_1679944893352/_build_env/bin/x86_64-conda-linux-gnu-pkg-config --libs Magick++-7.Q16HDRI
57
+ ;;
58
+ *)
59
+ echo "${usage}" 1>&2
60
+ exit 1
61
+ ;;
62
+ esac
63
+ shift
64
+ done
65
+
data/miniconda3/bin/MagickCore-config ADDED
@@ -0,0 +1,67 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/bin/sh
2
+ #
3
+ # Configure options script for re-calling MagickCore compilation options
4
+ # required to use the MagickCore library.
5
+ #
6
+
7
+ prefix=/home/zangyihe/miniconda3
8
+ exec_prefix=${prefix}
9
+
10
+ usage="\
11
+ Usage: MagickCore-config [--cflags] [--cppflags] [--exec-prefix] [--ldflags] [--libs] [--prefix] [--version]"
12
+
13
+ if test $# -eq 0; then
14
+ echo "${usage}" 1>&2
15
+ echo "Example: gcc \`MagickCore-config --cflags --cppflags\` -o core core.c \`Magick-config --ldflags --libs\`" 1>&2
16
+ exit 1
17
+ fi
18
+
19
+ while test $# -gt 0; do
20
+ case "$1" in
21
+ -*=*) optarg=`echo "$1" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
22
+ *) optarg= ;;
23
+ esac
24
+ case $1 in
25
+ --prefix=*)
26
+ prefix=$optarg
27
+ ;;
28
+ --prefix)
29
+ echo $prefix
30
+ ;;
31
+ --exec-prefix=*)
32
+ exec_prefix=$optarg
33
+ ;;
34
+ --exec-prefix)
35
+ echo $exec_prefix
36
+ ;;
37
+ --version)
38
+ echo '7.1.1-5 Q16 HDRI'
39
+ ;;
40
+ --cflags)
41
+ /home/conda/feedstock_root/build_artifacts/imagemagick_1679944893352/_build_env/bin/x86_64-conda-linux-gnu-pkg-config --cflags MagickCore-7.Q16HDRI
42
+ ;;
43
+ --cxxflags)
44
+ /home/conda/feedstock_root/build_artifacts/imagemagick_1679944893352/_build_env/bin/x86_64-conda-linux-gnu-pkg-config --cflags MagickCore-7.Q16HDRI
45
+ ;;
46
+ --cppflags)
47
+ /home/conda/feedstock_root/build_artifacts/imagemagick_1679944893352/_build_env/bin/x86_64-conda-linux-gnu-pkg-config --cflags MagickCore-7.Q16HDRI
48
+ ;;
49
+ --ldflags)
50
+ /home/conda/feedstock_root/build_artifacts/imagemagick_1679944893352/_build_env/bin/x86_64-conda-linux-gnu-pkg-config --libs MagickCore-7.Q16HDRI
51
+ ;;
52
+ --libs)
53
+ /home/conda/feedstock_root/build_artifacts/imagemagick_1679944893352/_build_env/bin/x86_64-conda-linux-gnu-pkg-config --libs MagickCore-7.Q16HDRI
54
+ ;;
55
+ --coder-path)
56
+ echo "/home/zangyihe/miniconda3/lib/ImageMagick-7.1.1/modules-Q16HDRI/coders"
57
+ ;;
58
+ --filter-path)
59
+ echo "/home/zangyihe/miniconda3/lib/ImageMagick-7.1.1/modules-Q16HDRI/filters"
60
+ ;;
61
+ *)
62
+ echo "${usage}" 1>&2
63
+ exit 1
64
+ ;;
65
+ esac
66
+ shift
67
+ done
data/miniconda3/bin/MagickWand-config ADDED
@@ -0,0 +1,62 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/bin/sh
2
+ #
3
+ # Configure options script for re-calling MagickWand compilation options
4
+ # required to use the MagickWand library.
5
+ #
6
+
7
+ prefix=/home/zangyihe/miniconda3
8
+ exec_prefix=${prefix}
9
+
10
+ usage="\
11
+ Usage: MagickWand-config [--cflags] [--cppflags] [--exec-prefix] [--ldflags] [--libs] [--prefix] [--version]"
12
+
13
+ if test $# -eq 0; then
14
+ echo "${usage}" 1>&2
15
+ echo "Example: gcc \`MagickWand-config --cflags --cppflags\` -o wand wand.c \`MagickWand-config --ldflags --libs\`" 1>&2
16
+ exit 1
17
+ fi
18
+
19
+ while test $# -gt 0; do
20
+ case "$1" in
21
+ -*=*) optarg=`echo "$1" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
22
+ *) optarg= ;;
23
+ esac
24
+ case $1 in
25
+ --prefix=*)
26
+ prefix=$optarg
27
+ ;;
28
+ --prefix)
29
+ echo $prefix
30
+ ;;
31
+ --exec-prefix=*)
32
+ exec_prefix=$optarg
33
+ ;;
34
+ --exec-prefix)
35
+ echo $exec_prefix
36
+ ;;
37
+ --version)
38
+ echo '7.1.1-5 Q16 HDRI'
39
+ ;;
40
+ --cflags)
41
+ /home/conda/feedstock_root/build_artifacts/imagemagick_1679944893352/_build_env/bin/x86_64-conda-linux-gnu-pkg-config --cflags MagickWand-7.Q16HDRI
42
+ ;;
43
+ --cxxflags)
44
+ /home/conda/feedstock_root/build_artifacts/imagemagick_1679944893352/_build_env/bin/x86_64-conda-linux-gnu-pkg-config --cflags MagickWand-7.Q16HDRI
45
+ ;;
46
+ --cppflags)
47
+ /home/conda/feedstock_root/build_artifacts/imagemagick_1679944893352/_build_env/bin/x86_64-conda-linux-gnu-pkg-config --cflags MagickWand-7.Q16HDRI
48
+ ;;
49
+ --ldflags)
50
+ /home/conda/feedstock_root/build_artifacts/imagemagick_1679944893352/_build_env/bin/x86_64-conda-linux-gnu-pkg-config --libs MagickWand-7.Q16HDRI
51
+ ;;
52
+ --libs)
53
+ /home/conda/feedstock_root/build_artifacts/imagemagick_1679944893352/_build_env/bin/x86_64-conda-linux-gnu-pkg-config --libs MagickWand-7.Q16HDRI
54
+ ;;
55
+ *)
56
+ echo "${usage}" 1>&2
57
+ exit 1
58
+ ;;
59
+ esac
60
+ shift
61
+ done
62
+
data/miniconda3/bin/anaconda ADDED
@@ -0,0 +1,11 @@
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/home/zangyihe/miniconda3/bin/python
2
+
3
+ # -*- coding: utf-8 -*-
4
+ import re
5
+ import sys
6
+
7
+ from anaconda_cli_base.cli import app
8
+
9
+ if __name__ == '__main__':
10
+ sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
11
+ sys.exit(app())
data/miniconda3/bin/animate ADDED
Binary file (21.8 kB). View file
 
data/miniconda3/bin/annotate ADDED
Binary file (16.5 kB). View file
 
data/miniconda3/bin/archspec ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/home/zangyihe/miniconda3/bin/python3.13
2
+ # -*- coding: utf-8 -*-
3
+ import re
4
+ import sys
5
+
6
+ from archspec.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())
data/miniconda3/bin/autopoint ADDED
@@ -0,0 +1,826 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #! /bin/sh
2
+ #
3
+ # Copyright (C) 2002-2020 Free Software Foundation, Inc.
4
+ #
5
+ # This program is free software: you can redistribute it and/or modify
6
+ # it under the terms of the GNU General Public License as published by
7
+ # the Free Software Foundation; either version 3 of the License, or
8
+ # (at your option) any later version.
9
+ #
10
+ # This program is distributed in the hope that it will be useful,
11
+ # but WITHOUT ANY WARRANTY; without even the implied warranty of
12
+ # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
+ # GNU General Public License for more details.
14
+ #
15
+ # You should have received a copy of the GNU General Public License
16
+ # along with this program. If not, see <https://www.gnu.org/licenses/>.
17
+ #
18
+
19
+ # This file is meant for authors, maintainers, co-maintainers or installers
20
+ # of packages which are internationalized with the help of GNU gettext. For
21
+ # further information how to use it consult the GNU gettext manual.
22
+
23
+ progname=$0
24
+ package=gettext-tools
25
+ version=0.21
26
+ archive_version=0.21
27
+
28
+ # Set variables
29
+ # - gettext_datadir directory where the data files are stored.
30
+ prefix="/home/zangyihe/miniconda3"
31
+ datarootdir="${prefix}/share"
32
+ : ${gettext_datadir="${datarootdir}/gettext"}
33
+ : ${AUTOM4TE=autom4te}
34
+
35
+ # func_tmpdir
36
+ # creates a temporary directory.
37
+ # Sets variable
38
+ # - tmp pathname of freshly created temporary directory
39
+ func_tmpdir ()
40
+ {
41
+ # Use the environment variable TMPDIR, falling back to /tmp. This allows
42
+ # users to specify a different temporary directory, for example, if their
43
+ # /tmp is filled up or too small.
44
+ : ${TMPDIR=/tmp}
45
+ {
46
+ # Use the mktemp program if available. If not available, hide the error
47
+ # message.
48
+ tmp=`(umask 077 && mktemp -d "$TMPDIR/gtXXXXXX") 2>/dev/null` &&
49
+ test -n "$tmp" && test -d "$tmp"
50
+ } ||
51
+ {
52
+ # Use a simple mkdir command. It is guaranteed to fail if the directory
53
+ # already exists. $RANDOM is bash specific and expands to empty in shells
54
+ # other than bash, ksh and zsh. Its use does not increase security;
55
+ # rather, it minimizes the probability of failure in a very cluttered /tmp
56
+ # directory.
57
+ tmp=$TMPDIR/gt$$-$RANDOM
58
+ (umask 077 && mkdir "$tmp")
59
+ } ||
60
+ {
61
+ echo "$0: cannot create a temporary directory in $TMPDIR" >&2
62
+ { (exit 1); exit 1; }
63
+ }
64
+ }
65
+
66
+ # Support for relocatability.
67
+ func_find_curr_installdir ()
68
+ {
69
+ # Determine curr_installdir, even taking into account symlinks.
70
+ curr_executable="$0"
71
+ case "$curr_executable" in
72
+ */* | *\\*) ;;
73
+ *) # Need to look in the PATH.
74
+ save_IFS="$IFS"; IFS="${PATH_SEPARATOR=':'}"
75
+ for dir in $PATH; do
76
+ IFS="$save_IFS"
77
+ test -z "$dir" && dir=.
78
+ for exec_ext in ''; do
79
+ if test -f "$dir/$curr_executable$exec_ext"; then
80
+ curr_executable="$dir/$curr_executable$exec_ext"
81
+ break 2
82
+ fi
83
+ done
84
+ done
85
+ IFS="$save_IFS"
86
+ ;;
87
+ esac
88
+ # Make absolute.
89
+ case "$curr_executable" in
90
+ /* | ?:/* | ?:\\*) ;;
91
+ *) curr_executable=`pwd`/"$curr_executable" ;;
92
+ esac
93
+ # Resolve symlinks.
94
+ sed_dirname='s,/[^/]*$,,'
95
+ sed_linkdest='s,^.* -> \(.*\),\1,p'
96
+ while : ; do
97
+ lsline=`LC_ALL=C ls -l "$curr_executable"`
98
+ case "$lsline" in
99
+ *" -> "*)
100
+ linkdest=`echo "$lsline" | sed -n -e "$sed_linkdest"`
101
+ case "$linkdest" in
102
+ /* | ?:/* | ?:\\*) curr_executable="$linkdest" ;;
103
+ *) curr_executable=`echo "$curr_executable" | sed -e "$sed_dirname"`/"$linkdest" ;;
104
+ esac ;;
105
+ *) break ;;
106
+ esac
107
+ done
108
+ curr_installdir=`echo "$curr_executable" | sed -e 's,/[^/]*$,,'`
109
+ # Canonicalize.
110
+ curr_installdir=`cd "$curr_installdir" && pwd`
111
+ }
112
+ func_find_prefixes ()
113
+ {
114
+ # Compute the original/current installation prefixes by stripping the
115
+ # trailing directories off the original/current installation directories.
116
+ orig_installprefix="$orig_installdir"
117
+ curr_installprefix="$curr_installdir"
118
+ while true; do
119
+ orig_last=`echo "$orig_installprefix" | sed -n -e 's,^.*/\([^/]*\)$,\1,p'`
120
+ curr_last=`echo "$curr_installprefix" | sed -n -e 's,^.*/\([^/]*\)$,\1,p'`
121
+ if test -z "$orig_last" || test -z "$curr_last"; then
122
+ break
123
+ fi
124
+ if test "$orig_last" != "$curr_last"; then
125
+ break
126
+ fi
127
+ orig_installprefix=`echo "$orig_installprefix" | sed -e 's,/[^/]*$,,'`
128
+ curr_installprefix=`echo "$curr_installprefix" | sed -e 's,/[^/]*$,,'`
129
+ done
130
+ }
131
+ if test "no" = yes; then
132
+ exec_prefix="${prefix}"
133
+ bindir="${exec_prefix}/bin"
134
+ orig_installdir="$bindir" # see Makefile.am's *_SCRIPTS variables
135
+ func_find_curr_installdir # determine curr_installdir
136
+ func_find_prefixes
137
+ # Relocate the directory variables that we use.
138
+ gettext_datadir=`echo "$gettext_datadir/" | sed -e "s%^${orig_installprefix}/%${curr_installprefix}/%" | sed -e 's,/$,,'`
139
+ fi
140
+
141
+ # func_trace_autoconf macro configure.ac
142
+ # traces an Autoconf macro call and outputs the arguments to stdout,
143
+ # using autom4te.
144
+ func_trace_autoconf ()
145
+ {
146
+ echo '\
147
+ dnl replace macros which may abort autom4te with a no-op variant
148
+ m4_pushdef([m4_assert])
149
+ m4_pushdef([m4_fatal])
150
+ m4_pushdef([m4_warn])
151
+ m4_pushdef([m4_errprintn])
152
+ m4_pushdef([m4_exit])
153
+ m4_pushdef([m4_include])
154
+ m4_pushdef([m4_esyscmd])
155
+ ' \
156
+ | "$AUTOM4TE" --no-cache --language=Autoconf-without-aclocal-m4 \
157
+ --trace="$1":\$% - "$2" 2>/dev/null
158
+ }
159
+
160
+ # func_trace_sed macro configure.ac
161
+ # traces an Autoconf macro call and outputs the arguments to stdout,
162
+ # using sed.
163
+ func_trace_sed ()
164
+ {
165
+ sed_extract_arguments='
166
+ s,#.*$,,; s,^dnl .*$,,; s, dnl .*$,,;
167
+ /'"$1"'(/ {
168
+ ta
169
+ :a
170
+ s/)/)/
171
+ tb
172
+ s/\\$//
173
+ N
174
+ ba
175
+ :b
176
+ s,^.*'"$1"'([[ ]*\([^]"$`\\)]*\).*$,\1,p
177
+ }
178
+ d'
179
+ sed -e "$sed_extract_arguments" "$2"
180
+ }
181
+
182
+ # func_usage
183
+ # outputs to stdout the --help usage message.
184
+ func_usage ()
185
+ {
186
+ echo "\
187
+ Usage: autopoint [OPTION]...
188
+
189
+ Copies standard gettext infrastructure files into a source package.
190
+
191
+ Options:
192
+ --help print this help and exit
193
+ --version print version information and exit
194
+ -f, --force force overwriting of files that already exist
195
+ -n, --dry-run print modifications but don't perform them"
196
+ # echo "\
197
+ # -V version copy the infrastructure of the specified gettext version
198
+ # (dangerous)"
199
+ echo "
200
+ Report bugs in the bug tracker at <https://savannah.gnu.org/projects/gettext>
201
+ or by email to <bug-gettext@gnu.org>."
202
+ }
203
+
204
+ # func_version
205
+ # outputs to stdout the --version message.
206
+ func_version ()
207
+ {
208
+ echo "$progname (GNU $package) $version"
209
+ echo "Uses a versions archive in dirxz format."
210
+ echo "Copyright (C) 2002-2020 Free Software Foundation, Inc.
211
+ License GPLv3+: GNU GPL version 3 or later <https://gnu.org/licenses/gpl.html>
212
+ This is free software: you are free to change and redistribute it.
213
+ There is NO WARRANTY, to the extent permitted by law."
214
+ echo "Written by" "Bruno Haible"
215
+ }
216
+
217
+ # func_fatal_error message
218
+ # outputs to stderr a fatal error message, and terminates the program.
219
+ func_fatal_error ()
220
+ {
221
+ echo "autopoint: *** $1" 1>&2
222
+ echo "autopoint: *** Stop." 1>&2
223
+ exit 1
224
+ }
225
+
226
+ # Nuisances.
227
+ (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
228
+
229
+ # Unset more variables known to interfere with behavior of common tools.
230
+ CLICOLOR_FORCE= GREP_OPTIONS=
231
+ unset CLICOLOR_FORCE GREP_OPTIONS
232
+
233
+ # Command-line option processing.
234
+ # Removes the OPTIONS from the arguments. Sets the variables:
235
+ # - force yes if --force was given, empty otherwise
236
+ # - ver gettext version if -V was given, empty otherwise
237
+ # - doit false if --dry-run was given, : otherwise
238
+ {
239
+ force=
240
+ ver=
241
+ doit=:
242
+
243
+ while test $# -gt 0; do
244
+ case "$1" in
245
+ -n | --dry-run | --dry-ru | --dry-r | --dry- | --dry | --dr | --d )
246
+ shift
247
+ doit=false ;;
248
+ -f | --force | --forc | --for | --fo | --f )
249
+ shift
250
+ force=yes ;;
251
+ --help | --hel | --he | --h )
252
+ func_usage; exit 0 ;;
253
+ # -V ) # Some people put a space between -V and the version number.
254
+ # shift
255
+ # if test $# = 0; then
256
+ # func_usage 1>&2
257
+ # exit 1
258
+ # fi
259
+ # ver=$1;
260
+ # shift ;;
261
+ # -V*) # Some people omit the space between -V and the version number.
262
+ # ver=`echo "X$1" | sed -e 's/^X-V//'`
263
+ # shift ;;
264
+ --version | --versio | --versi | --vers | --ver | --ve | --v )
265
+ func_version
266
+ exit 0 ;;
267
+ -- ) # Stop option prcessing
268
+ shift; break ;;
269
+ -* )
270
+ echo "autopoint: unknown option $1" 1>&2
271
+ echo "Try 'autopoint --help' for more information." 1>&2
272
+ exit 1 ;;
273
+ * )
274
+ break ;;
275
+ esac
276
+ done
277
+ }
278
+
279
+ # Command-line argument processing.
280
+ # Analyzes the remaining arguments.
281
+ {
282
+ if test $# -gt 0; then
283
+ func_usage 1>&2
284
+ exit 1
285
+ fi
286
+ }
287
+
288
+ srcdir=`pwd`
289
+ # The current directory is now $srcdir.
290
+
291
+ # Check integrity of package: A configure.in/ac must be present. Sets variable
292
+ # - configure_in name of configure.in/ac file.
293
+ if test -f configure.in; then
294
+ configure_in=configure.in
295
+ else
296
+ if test -f configure.ac; then
297
+ configure_in=configure.ac
298
+ else
299
+ # KDE specific convention: configure.in.in
300
+ if test -f configure.in.in; then
301
+ configure_in=configure.in.in
302
+ else
303
+ func_fatal_error "Missing configure.in or configure.ac, please cd to your package first."
304
+ fi
305
+ fi
306
+ fi
307
+
308
+ # Select the method for Autoconf macro tracing. func_trace_autoconf
309
+ # is more accurate than func_trace_sed, but it only works with
310
+ # autoconf >= 2.69.
311
+ if echo "AC_PREREQ([2.69])" \
312
+ | "$AUTOM4TE" --no-cache --language=Autoconf-without-aclocal-m4 - 2>&1; then
313
+ func_trace=func_trace_autoconf
314
+ else
315
+ func_trace=func_trace_sed
316
+ fi
317
+
318
+ # func_version_prereq required_version version
319
+ # compares the required version and the latest archive version.
320
+ func_version_prereq ()
321
+ {
322
+ req="$1"
323
+ ver="$2"
324
+ echo "m4_if(m4_version_compare([$ver], [$req]), [-1], [m4_exit([1])])" \
325
+ | "$AUTOM4TE" --language=M4sugar >/dev/null
326
+ }
327
+
328
+ # If AM_GNU_GETTEXT_REQUIRE_VERSION is used and archive_version is newer than
329
+ # that, use archive_version.
330
+ xreq=`func_trace_sed AM_GNU_GETTEXT_REQUIRE_VERSION "$configure_in"`
331
+
332
+ # Need to use func_trace_sed instead of $func_trace, since
333
+ # AM_GNU_GETTEXT_VERSION is not a standard Autoconf trace.
334
+ xver=`func_trace_sed AM_GNU_GETTEXT_VERSION "$configure_in"`
335
+
336
+ # Prefer AM_GNU_GETTEXT_REQUIRE_VERSION over AM_GNU_GETTEXT_VERSION if both are
337
+ # specified.
338
+ if test -n "$xreq" && test -n "$xver"; then
339
+ echo "autopoint: using AM_GNU_GETTEXT_REQUIRE_VERSION instead of AM_GNU_GETTEXT_VERSION"
340
+ fi
341
+
342
+ if test -n "$xreq"; then
343
+ if func_version_prereq "$xreq" "$archive_version"; then
344
+ ver="$archive_version"
345
+ else
346
+ func_fatal_error "gettext version $xreq or newer is required"
347
+ fi
348
+ else
349
+ if test -z "$xver" && test -f intl/VERSION; then
350
+ xver=`cat intl/VERSION | LC_ALL=C sed -n -e 's/^.*gettext-\([-+_.0-9A-Za-z]*\).*$/\1/p'`
351
+ fi
352
+
353
+ # Check whether the -V option and the version number in configure.in match.
354
+ # At least one of the two must be given. If both are given, they must agree.
355
+
356
+ if test -n "$xver"; then
357
+ if test -n "$ver"; then
358
+ if test "X$ver" != "X$xver"; then
359
+ func_fatal_error "Version mismatch: specified -V $ver but the package uses gettext version $xver"
360
+ fi
361
+ else
362
+ ver="$xver"
363
+ fi
364
+ fi
365
+ fi
366
+
367
+ if test -z "$ver"; then
368
+ func_fatal_error "Missing version: please specify in $configure_in through a line 'AM_GNU_GETTEXT_VERSION(x.yy.zz)' the gettext version the package is using"
369
+ fi
370
+
371
+ # Check whether the version number is supported.
372
+ case "$ver" in
373
+ 0.10.35 | 0.10.36 | 0.10.37 | 0.10.38 | 0.10.39 | 0.10.40 | \
374
+ 0.11 | 0.11.1 | 0.11.2 | 0.11.3 | 0.11.4 | 0.11.5 | \
375
+ 0.12 | 0.12.1 | \
376
+ 0.13 | 0.13.1 | \
377
+ 0.14 | 0.14.1 | 0.14.2 | 0.14.3 | 0.14.4 | 0.14.5 | 0.14.6 | \
378
+ 0.15 | \
379
+ 0.16 | 0.16.1 | \
380
+ 0.17 | \
381
+ 0.18 | 0.18.1 | 0.18.2 | 0.18.3 | \
382
+ 0.19 | 0.19.1 | 0.19.2 | 0.19.3 | 0.19.4 | 0.19.5 | 0.19.6 | 0.19.7 | 0.19.8 | \
383
+ 0.20 | 0.20.2 | \
384
+ 0.21 )
385
+ ;;
386
+ *)
387
+ func_fatal_error "The AM_GNU_GETTEXT_VERSION declaration in your $configure_in
388
+ file requires the infrastructure from gettext-$ver but this version
389
+ is older. Please upgrade to gettext-$ver or newer."
390
+ ;;
391
+ esac
392
+
393
+ # Check in which directory config.rpath, mkinstalldirs etc. belong.
394
+ auxdir=`"$func_trace" AC_CONFIG_AUX_DIR "$configure_in"`
395
+ if test -n "$auxdir"; then
396
+ auxdir="$auxdir/"
397
+ fi
398
+
399
+ # Check in which directory the *.m4 macros belong.
400
+ macrodirs=`"$func_trace" AC_CONFIG_MACRO_DIR_TRACE "$configure_in"`
401
+ if test -z "$macrodirs"; then
402
+ macrodirs=`"$func_trace" AC_CONFIG_MACRO_DIR "$configure_in"`
403
+ fi
404
+ for arg in $macrodirs; do
405
+ m4dir="$arg"
406
+ break
407
+ done
408
+
409
+ if test -z "$m4dir" && test -f Makefile.am; then
410
+ # A package using automake.
411
+ # Extract the macro directory name from Makefile.am.
412
+ aclocal_amflags=`grep '^ACLOCAL_AMFLAGS[ ]*=' Makefile.am | sed -e 's/^ACLOCAL_AMFLAGS[ ]*=\(.*\)$/\1/'`
413
+ m4dir_is_next=
414
+ for arg in $aclocal_amflags; do
415
+ if test -n "$m4dir_is_next"; then
416
+ m4dir="$arg"
417
+ break
418
+ else
419
+ if test "X$arg" = "X-I"; then
420
+ m4dir_is_next=yes
421
+ else
422
+ m4dir_is_next=
423
+ fi
424
+ fi
425
+ done
426
+ fi
427
+
428
+ if test -z "$m4dir"; then
429
+ m4dir=m4
430
+ fi
431
+
432
+ # Check whether to omit the intl/ directory.
433
+ omitintl=
434
+ # Need to use func_trace_sed instead of $func_trace, since
435
+ # AM_GNU_GETTEXT is not a standard Autoconf trace.
436
+ xargs=`func_trace_sed AM_GNU_GETTEXT "$configure_in"`
437
+ save_IFS="$IFS"; IFS=:
438
+ for arg in $xargs; do
439
+ if test 'external' = "$arg"; then
440
+ omitintl=yes
441
+ break
442
+ fi
443
+ done
444
+ IFS="$save_IFS"
445
+
446
+ if test -z "$omitintl"; then
447
+ case "$ver" in
448
+ 0.1[0-9] | 0.1[0-9].* ) ;;
449
+ *) func_fatal_error "AM_GNU_GETTEXT without 'external' argument is no longer supported in version $ver" ;;
450
+ esac
451
+ fi
452
+
453
+ # Check in which directory or directories the po/* infrastructure belongs.
454
+ configfiles=`"$func_trace" AC_CONFIG_FILES "$configure_in"`
455
+ # PO directories have a Makefile.in generated from Makefile.in.in.
456
+ # Treat a directory as a PO directory if and only if it has a
457
+ # POTFILES.in file. This allows packages to have multiple PO
458
+ # directories under different names or in different locations.
459
+ sed_remove_Makefile_in='s,/Makefile\.in$,,'
460
+ podirs=`for f in $configfiles; do case "$f" in */Makefile.in) echo $f;; esac; done | sed -e "$sed_remove_Makefile_in"`
461
+ if test -z "$podirs"; then
462
+ # If we cannot get the list of PO directories from configure.ac, assume the
463
+ # common default.
464
+ podirs="po"
465
+ fi
466
+
467
+ # Set up a temporary checkout directory.
468
+ # Set variables
469
+ # - work_dir directory containing the temporary checkout
470
+ work_dir=tmpwrk$$
471
+ mkdir "$work_dir" || {
472
+ if test -d "$work_dir"; then
473
+ func_fatal_error "directory $work_dir already exists"
474
+ else
475
+ func_fatal_error "cannot create directory $work_dir"
476
+ fi
477
+ }
478
+
479
+ # We support three archive formats.
480
+ #
481
+ # Format | Size (KiB) for gettext-0.17 | Extra tools needed |
482
+ # -------+-----------------------------+--------------------+
483
+ # dir | 3000 | -- |
484
+ # cvs | 356 | cvs |
485
+ # git | 484 | git |
486
+ # -------+-----------------------------+--------------------+
487
+
488
+ case "dirxz" in
489
+ dir*)
490
+ # The archive of different versions is very large (unless xz compression is
491
+ # used), but using it does not require special tools.
492
+ case "dirxz" in
493
+ dirgz) gzip -d -c < "$gettext_datadir/archive.dir.tar.gz" ;;
494
+ dirbz2) bzip2 -d -c < "$gettext_datadir/archive.dir.tar.bz2" ;;
495
+ dirxz) xz -d -c < "$gettext_datadir/archive.dir.tar.xz" ;;
496
+ esac \
497
+ | (cd "$work_dir" && tar xf - "gettext-$ver")
498
+ if test `find "$work_dir" -type f -print | wc -l` = 0; then
499
+ rm -rf "$work_dir"
500
+ func_fatal_error "infrastructure files for version $ver not found; this is autopoint from GNU $package $version"
501
+ fi
502
+ mv "$work_dir/gettext-$ver" "$work_dir/archive"
503
+ ;;
504
+
505
+ cvs)
506
+ # We distributed the many different versions of the files in a CVS
507
+ # repository. This guaranteed a good compression rate:
508
+ #
509
+ # Including version size in KB of
510
+ # "du autopoint-files/archive"
511
+ # 0.10.35 240
512
+ # 0.10.36 428
513
+ # 0.10.37 436
514
+ # 0.10.38 488
515
+ # 0.10.39 500
516
+ # 0.10.40 528
517
+ # 0.11 720
518
+ # 0.11.1 740
519
+ # 0.11.2 748
520
+ # 0.11.3 804
521
+ # 0.11.4 864
522
+ # 0.11.5 880
523
+ # 0.12 1032
524
+ # 0.12.1 1032
525
+ # 0.13 1220
526
+ # 0.13.1 1236
527
+ # 0.14 1296
528
+ # 0.14.1 1300
529
+ # 0.14.2 1420
530
+ # 0.14.3 1428
531
+ # 0.14.4 1464
532
+ # 0.14.5 1508
533
+ # 0.14.6 1580
534
+ # 0.15 1760
535
+ # 0.16 1808
536
+ # 0.16.1 1812
537
+ # 0.17 2128
538
+ # 0.18 2656
539
+ #
540
+ # The requirement that the user must have the CVS program available is not
541
+ # a severe restrictions, because most of the people who use autopoint are
542
+ # users of CVS.
543
+ #
544
+ # But the CVS format is now deprecated, because "cvs init" does not work in
545
+ # all circumstances
546
+ # (see <https://lists.gnu.org/archive/html/bug-cvs/2010-05/msg00003.html>)
547
+ # and we are not allowed to distribute the cvs infrastructure files
548
+ # ourselves
549
+ # (see <https://lists.gnu.org/archive/html/bug-cvs/2010-06/msg00011.html>).
550
+ #
551
+ # Check availability of the CVS program.
552
+ (cvs -v) >/dev/null 2>/dev/null || func_fatal_error "cvs program not found"
553
+
554
+ # Set up a temporary CVS repository.
555
+ # We need the temporary CVS repository because any checkout needs write
556
+ # access to the CVSROOT/history file, so it cannot be under $gettext_datadir.
557
+ # We need the temporary checkout directory because when --force was not
558
+ # given, we need to compare the existing files with the checked out ones.
559
+ # Set variables
560
+ # - cvs_dir directory containing the temporary repository
561
+ cvs_dir=tmpcvs$$
562
+ # Use an umask of 077, to avoid attacks that work by overwriting files in
563
+ # the "$CVSROOT"/CVSROOT directory.
564
+ (umask 077 && mkdir "$cvs_dir") || {
565
+ if test -d "$cvs_dir"; then
566
+ func_fatal_error "directory $cvs_dir already exists"
567
+ else
568
+ func_fatal_error "cannot create directory $cvs_dir"
569
+ fi
570
+ }
571
+ CVSROOT="$srcdir/$cvs_dir"
572
+ unset CVS_CLIENT_LOG
573
+ unset CVS_CLIENT_PORT
574
+ unset CVS_IGNORE_REMOTE_ROOT
575
+ unset CVS_LOCAL_BRANCH_NUM
576
+ unset CVS_NOBASES
577
+ unset CVS_PASSFILE
578
+ unset CVS_PASSWORD
579
+ unset CVS_PROXY_PORT
580
+ unset CVS_RCMD_PORT
581
+ unset CVS_RSH
582
+ unset CVS_SERVER
583
+ unset CVS_SERVER_SLEEP
584
+ CVS_SIGN_COMMITS=
585
+ export CVS_SIGN_COMMITS
586
+ unset CVS_SSH
587
+ unset CVS_VERIFY_CHECKOUTS
588
+ unset CVS_VERIFY_TEMPLATE
589
+ unset CVSIGNORE
590
+ unset CVSREAD
591
+ unset CVSREADONLYFS
592
+ unset CVSUMASK
593
+ unset CVSWRAPPERS
594
+
595
+ # Need to pass -d "$CVSROOT", because there may be a CVS directory in the
596
+ # current directory.
597
+ cvs -d "$CVSROOT" init
598
+ gzip -d -c < "$gettext_datadir/archive.cvs.tar.gz" | (cd "$cvs_dir" && tar xf -)
599
+
600
+ cd "$work_dir"
601
+ cvsver=gettext-`echo "$ver" | sed -e 's/\./_/g'`
602
+ (cvs -d "$CVSROOT" checkout -r"$cvsver" archive > /dev/null) 2>&1 | grep -v '^cvs checkout: Updating'
603
+ find archive -name CVS -type d -print | xargs rm -rf
604
+ cd ..
605
+ rm -rf "$cvs_dir"
606
+ # Check that really all CVS directories are gone, otherwise we would overwrite
607
+ # the contents of the user's CVS directories.
608
+ if test `find $work_dir/archive -name CVS -type d -print | wc -l` != 0; then
609
+ rm -rf "$work_dir"
610
+ func_fatal_error "failed to remove all CVS subdirectories"
611
+ fi
612
+ if test `find $work_dir/archive -type f -print | wc -l` = 0; then
613
+ rm -rf "$work_dir"
614
+ func_fatal_error "infrastructure files for version $ver not found; this is autopoint from GNU $package $version"
615
+ fi
616
+ ;;
617
+
618
+ git)
619
+ # Check availability of the git program.
620
+ (git --version) >/dev/null 2>/dev/null || func_fatal_error "git program not found"
621
+ mkdir "$work_dir/archive"
622
+ gzip -d -c < "$gettext_datadir/archive.git.tar.gz" | (cd "$work_dir/archive" && tar xf -)
623
+ (unset GIT_CONFIG
624
+ unset XDG_CONFIG_HOME
625
+ unset HOME
626
+ GIT_CONFIG_NOSYSTEM=1; export GIT_CONFIG_NOSYSTEM
627
+ cd "$work_dir/archive" && git checkout -q "gettext-$ver"
628
+ ) || {
629
+ rm -rf "$work_dir"
630
+ func_fatal_error "infrastructure files for version $ver not found; this is autopoint from GNU $package $version"
631
+ }
632
+ (cd "$work_dir/archive" && rm -rf .git .gitignore)
633
+ ;;
634
+ esac
635
+
636
+ # func_destfile file
637
+ # determines the destination file, relative to the package's top level
638
+ # directory, for a given file name, relative to archive.
639
+ # Sets variables
640
+ # - destfile relative destination file name, or
641
+ # empty if the file shall be omitted
642
+ # - sharedowner yes if the file is not only owned by GNU gettext but may
643
+ # be installed by automake or other tools, otherwise empty
644
+ # - allpodirs yes if the file is to be installed in every dir in $podirs
645
+ func_destfile ()
646
+ {
647
+ # There are five categories of files:
648
+ # ABOUT-NLS -> top level directory
649
+ # config.rpath mkinstalldirs -> $auxdir
650
+ # m4/* -> $m4dir/
651
+ # intl/* -> intl/
652
+ # po/* ->
653
+ sharedowner=
654
+ allpodirs=
655
+ case `echo "$1" | sed -e 's,[^/]*$,,'` in
656
+ "" )
657
+ case "$1" in
658
+ config.rpath ) destfile="$auxdir$1" ;;
659
+ mkinstalldirs ) destfile="$auxdir$1" sharedowner=yes ;;
660
+ * ) destfile="$1" ;;
661
+ esac
662
+ ;;
663
+ m4/ ) destfile=`echo "$1" | sed -e "s,^m4/,$m4dir/,"` ;;
664
+ intl/ ) if test -n "$omitintl"; then destfile=""; else destfile="$1"; fi ;;
665
+ po/ ) destfile=`echo "$1" | sed -e "s,^po/,,"` allpodirs=yes ;;
666
+ * ) destfile="$1" ;;
667
+ esac
668
+ }
669
+
670
+ # func_compare existingfile gettextfile
671
+ # compares the existing file and the file from gettext, and decides whether the
672
+ # existing file should be overwritten with the file from gettext. Returns 0 if
673
+ # it should be overwritten, or 1 if it should be skipped.
674
+ sed_extract_serial='s/^#.* serial \([^ ]*\).*/\1/p
675
+ 1q'
676
+ func_compare ()
677
+ {
678
+ if cmp -s "$1" "$2"; then
679
+ false
680
+ else
681
+ case "$2" in
682
+ *.m4)
683
+ # For interoperability with gnulib. gnulib often has newer versions of
684
+ # the *.m4 files than the latest gettext release. Don't overwrite a
685
+ # newer version from gnulib with an older version from the gettext
686
+ # release. The version can be retrieved from the first line, which
687
+ # looks like this: # file.m4 serial NN ...
688
+ existing_serial=`sed -n -e "$sed_extract_serial" < "$1"`
689
+ gettext_serial=`sed -n -e "$sed_extract_serial" < "$2"`
690
+ if test -n "$existing_serial" && test -n "$gettext_serial" \
691
+ && test "$existing_serial" -ge "$gettext_serial" 2> /dev/null; then
692
+ false
693
+ else
694
+ true
695
+ fi
696
+ ;;
697
+ *)
698
+ true
699
+ ;;
700
+ esac
701
+ fi
702
+ }
703
+
704
+ # If some files have been locally modified and we have not been requested
705
+ # to overwrite them, then bail out. This is better than leaving a source
706
+ # package around where half of the files are locally modified and half are
707
+ # original - too great risk of version mismatch.
708
+ if test -z "$force"; then
709
+ mismatch=
710
+ func_tmpdir
711
+ mismatchfile="$tmp"/autopoint.diff
712
+ for file in `find "$work_dir/archive" -type f -print | sed -e "s,^$work_dir/archive/,," | LC_ALL=C sort`; do
713
+ func_destfile "$file"
714
+ if test -n "$destfile"; then
715
+ func_compare_to_destfile ()
716
+ {
717
+ finaldestfile="$1"
718
+ if test -f "$finaldestfile"; then
719
+ if func_compare "$finaldestfile" "$work_dir/archive/$file"; then
720
+ if test -n "$sharedowner"; then
721
+ echo "autopoint: warning: File $finaldestfile has been locally modified." 1>&2
722
+ else
723
+ echo "autopoint: File $finaldestfile has been locally modified." 1>&2
724
+ mismatch=yes
725
+ diff -c "$work_dir/archive/$file" "$finaldestfile" | sed -e "1s,$work_dir/archive/,," >> "$mismatchfile"
726
+ fi
727
+ fi
728
+ fi
729
+ }
730
+ if test -n "$allpodirs"; then
731
+ for dir in $podirs; do
732
+ func_compare_to_destfile "$dir/$destfile"
733
+ done
734
+ else
735
+ func_compare_to_destfile "$destfile"
736
+ fi
737
+ fi
738
+ done
739
+ if test -n "$mismatch"; then
740
+ rm -rf "$work_dir"
741
+ func_fatal_error "Some files have been locally modified. Not overwriting them because --force has not been specified. For your convenience, you find the local modifications in the file '$mismatchfile'."
742
+ fi
743
+ rm -rf "$tmp"
744
+ fi
745
+
746
+ # func_mkdir_for to
747
+ # ensures the directory that would the given file exists.
748
+ # 'to' is a relative pathname, relative to the current directory.
749
+ func_mkdir_for ()
750
+ {
751
+ base=`echo "$1" | sed -e 's,/[^/]*$,,'`
752
+ if test "X$base" != "X$1" && test -n "$base"; then
753
+ func_mkdir_for "$base"
754
+ # Recompute base. It was clobbered by the recursive call.
755
+ base=`echo "$1" | sed -e 's,/[^/]*$,,'`
756
+ test -d "$base" || { echo "Creating directory $base"; mkdir "$base"; }
757
+ fi
758
+ }
759
+
760
+ # func_copy from to
761
+ # copies a file.
762
+ # 'from' is a relative pathname, relative to the current directory.
763
+ # 'to' is a relative pathname, relative to the current directory.
764
+ func_copy ()
765
+ {
766
+ if $doit; then
767
+ func_mkdir_for "$2"
768
+ rm -f "$2"
769
+ echo "Copying file $2"
770
+ cp "$1" "$2"
771
+ else
772
+ echo "Copy file $2"
773
+ fi
774
+ }
775
+
776
+ # func_backup to
777
+ # makes a backup of a file that is about to be overwritten or replaced.
778
+ # 'to' is a relative pathname, relative to the current directory.
779
+ func_backup ()
780
+ {
781
+ if $doit; then
782
+ if test -f "$1"; then
783
+ rm -f "$1~"
784
+ cp -p "$1" "$1~"
785
+ fi
786
+ fi
787
+ }
788
+
789
+ # Now copy the files.
790
+ for file in `find "$work_dir/archive" -type f -print | sed -e "s,^$work_dir/archive/,," | LC_ALL=C sort`; do
791
+ func_destfile "$file"
792
+ if test -n "$destfile"; then
793
+ func_copy_to_destfile ()
794
+ {
795
+ finaldestfile="$1"
796
+ mustcopy=
797
+ if test -f "$finaldestfile"; then
798
+ if func_compare "$finaldestfile" "$work_dir/archive/$file"; then
799
+ if test -n "$force"; then
800
+ # Overwrite locally modified file.
801
+ mustcopy=yes
802
+ fi
803
+ # If --force is not specified, don't overwrite locally modified files
804
+ # for which GNU gettext is a shared owner.
805
+ fi
806
+ else
807
+ mustcopy=yes
808
+ fi
809
+ if test -n "$mustcopy"; then
810
+ func_backup "$finaldestfile"
811
+ func_copy "$work_dir/archive/$file" "$finaldestfile"
812
+ fi
813
+ }
814
+ if test -n "$allpodirs"; then
815
+ for dir in $podirs; do
816
+ func_copy_to_destfile "$dir/$destfile"
817
+ done
818
+ else
819
+ func_copy_to_destfile "$destfile"
820
+ fi
821
+ fi
822
+ done
823
+
824
+ # That's it.
825
+ rm -rf "$work_dir"
826
+ exit 0
data/miniconda3/bin/bcomps ADDED
Binary file (26.8 kB). View file
 
data/miniconda3/bin/bsdcat ADDED
Binary file (94.3 kB). View file
 
data/miniconda3/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/miniconda3/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/miniconda3/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/miniconda3/bin/bzip2recover ADDED
Binary file (30.9 kB). View file
 
data/miniconda3/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/miniconda3/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/miniconda3/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 = "/home/zangyihe/miniconda3";
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/miniconda3/bin/captoinfo ADDED
Binary file (92.2 kB). View file
 
data/miniconda3/bin/cjpeg ADDED
Binary file (48.6 kB). View file
 
data/miniconda3/bin/clear ADDED
Binary file (14.3 kB). View file
 
data/miniconda3/bin/compare ADDED
Binary file (21.8 kB). View file
 
data/miniconda3/bin/composite ADDED
Binary file (21.8 kB). View file
 
data/miniconda3/bin/conda ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/home/zangyihe/miniconda3/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())
data/miniconda3/bin/conda-content-trust ADDED
@@ -0,0 +1,11 @@
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/home/zangyihe/miniconda3/bin/python
2
+
3
+ # -*- coding: utf-8 -*-
4
+ import re
5
+ import sys
6
+
7
+ from conda_content_trust.cli import cli
8
+
9
+ if __name__ == '__main__':
10
+ sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
11
+ sys.exit(cli())
data/miniconda3/bin/conda-env ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ #!/home/zangyihe/miniconda3/bin/python
2
+ # -*- coding: utf-8 -*-
3
+ import sys
4
+
5
+ if __name__ == '__main__':
6
+ from conda_env.cli.main import main
7
+ sys.exit(main())
data/miniconda3/bin/conda-token ADDED
@@ -0,0 +1,11 @@
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/home/zangyihe/miniconda3/bin/python
2
+
3
+ # -*- coding: utf-8 -*-
4
+ import re
5
+ import sys
6
+
7
+ from anaconda_auth._conda.conda_token import cli
8
+
9
+ if __name__ == '__main__':
10
+ sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
11
+ sys.exit(cli())
data/miniconda3/bin/conda2solv ADDED
Binary file (22.8 kB). View file
 
data/miniconda3/bin/conjure ADDED
Binary file (21.8 kB). View file
 
data/miniconda3/bin/corelist ADDED
@@ -0,0 +1,577 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/home/zangyihe/miniconda3/bin/perl
2
+ eval 'exec /home/zangyihe/miniconda3/bin/perl -S $0 ${1+"$@"}'
3
+ if $running_under_some_shell;
4
+ #!/usr/bin/perl
5
+
6
+ =head1 NAME
7
+
8
+ corelist - a commandline frontend to Module::CoreList
9
+
10
+ =head1 DESCRIPTION
11
+
12
+ See L<Module::CoreList> for one.
13
+
14
+ =head1 SYNOPSIS
15
+
16
+ corelist -v
17
+ corelist [-a|-d] <ModuleName> | /<ModuleRegex>/ [<ModuleVersion>] ...
18
+ corelist [-v <PerlVersion>] [ <ModuleName> | /<ModuleRegex>/ ] ...
19
+ corelist [-r <PerlVersion>] ...
20
+ corelist --utils [-d] <UtilityName> [<UtilityName>] ...
21
+ corelist --utils -v <PerlVersion>
22
+ corelist --feature <FeatureName> [<FeatureName>] ...
23
+ corelist --diff PerlVersion PerlVersion
24
+ corelist --upstream <ModuleName>
25
+
26
+ =head1 OPTIONS
27
+
28
+ =over
29
+
30
+ =item -a
31
+
32
+ lists all versions of the given module (or the matching modules, in case you
33
+ used a module regexp) in the perls Module::CoreList knows about.
34
+
35
+ corelist -a Unicode
36
+
37
+ Unicode was first released with perl v5.6.2
38
+ v5.6.2 3.0.1
39
+ v5.8.0 3.2.0
40
+ v5.8.1 4.0.0
41
+ v5.8.2 4.0.0
42
+ v5.8.3 4.0.0
43
+ v5.8.4 4.0.1
44
+ v5.8.5 4.0.1
45
+ v5.8.6 4.0.1
46
+ v5.8.7 4.1.0
47
+ v5.8.8 4.1.0
48
+ v5.8.9 5.1.0
49
+ v5.9.0 4.0.0
50
+ v5.9.1 4.0.0
51
+ v5.9.2 4.0.1
52
+ v5.9.3 4.1.0
53
+ v5.9.4 4.1.0
54
+ v5.9.5 5.0.0
55
+ v5.10.0 5.0.0
56
+ v5.10.1 5.1.0
57
+ v5.11.0 5.1.0
58
+ v5.11.1 5.1.0
59
+ v5.11.2 5.1.0
60
+ v5.11.3 5.2.0
61
+ v5.11.4 5.2.0
62
+ v5.11.5 5.2.0
63
+ v5.12.0 5.2.0
64
+ v5.12.1 5.2.0
65
+ v5.12.2 5.2.0
66
+ v5.12.3 5.2.0
67
+ v5.12.4 5.2.0
68
+ v5.13.0 5.2.0
69
+ v5.13.1 5.2.0
70
+ v5.13.2 5.2.0
71
+ v5.13.3 5.2.0
72
+ v5.13.4 5.2.0
73
+ v5.13.5 5.2.0
74
+ v5.13.6 5.2.0
75
+ v5.13.7 6.0.0
76
+ v5.13.8 6.0.0
77
+ v5.13.9 6.0.0
78
+ v5.13.10 6.0.0
79
+ v5.13.11 6.0.0
80
+ v5.14.0 6.0.0
81
+ v5.14.1 6.0.0
82
+ v5.15.0 6.0.0
83
+
84
+ =item -d
85
+
86
+ finds the first perl version where a module has been released by
87
+ date, and not by version number (as is the default).
88
+
89
+ =item --diff
90
+
91
+ Given two versions of perl, this prints a human-readable table of all module
92
+ changes between the two. The output format may change in the future, and is
93
+ meant for I<humans>, not programs. For programs, use the L<Module::CoreList>
94
+ API.
95
+
96
+ =item -? or -help
97
+
98
+ help! help! help! to see more help, try --man.
99
+
100
+ =item -man
101
+
102
+ all of the help
103
+
104
+ =item -v
105
+
106
+ lists all of the perl release versions we got the CoreList for.
107
+
108
+ If you pass a version argument (value of C<$]>, like C<5.00503> or C<5.008008>),
109
+ you get a list of all the modules and their respective versions.
110
+ (If you have the C<version> module, you can also use new-style version numbers,
111
+ like C<5.8.8>.)
112
+
113
+ In module filtering context, it can be used as Perl version filter.
114
+
115
+ =item -r
116
+
117
+ lists all of the perl releases and when they were released
118
+
119
+ If you pass a perl version you get the release date for that version only.
120
+
121
+ =item --utils
122
+
123
+ lists the first version of perl each named utility program was released with
124
+
125
+ May be used with -d to modify the first release criteria.
126
+
127
+ If used with -v <version> then all utilities released with that version of perl
128
+ are listed, and any utility programs named on the command line are ignored.
129
+
130
+ =item --feature, -f
131
+
132
+ lists the first version bundle of each named feature given
133
+
134
+ =item --upstream, -u
135
+
136
+ Shows if the given module is primarily maintained in perl core or on CPAN
137
+ and bug tracker URL.
138
+
139
+ =back
140
+
141
+ As a special case, if you specify the module name C<Unicode>, you'll get
142
+ the version number of the Unicode Character Database bundled with the
143
+ requested perl versions.
144
+
145
+ =cut
146
+
147
+ BEGIN { pop @INC if $INC[-1] eq '.' }
148
+ use Module::CoreList;
149
+ use Getopt::Long qw(:config no_ignore_case);
150
+ use Pod::Usage;
151
+ use strict;
152
+ use warnings;
153
+ use List::Util qw/maxstr/;
154
+
155
+ my %Opts;
156
+
157
+ GetOptions(
158
+ \%Opts,
159
+ qw[ help|?! man! r|release:s v|version:s a! d diff|D utils feature|f u|upstream ]
160
+ );
161
+
162
+ pod2usage(1) if $Opts{help};
163
+ pod2usage(-verbose=>2) if $Opts{man};
164
+
165
+ if(exists $Opts{r} ){
166
+ if ( !$Opts{r} ) {
167
+ print "\nModule::CoreList has release info for the following perl versions:\n";
168
+ my $versions = { };
169
+ my $max_ver_len = max_mod_len(\%Module::CoreList::released);
170
+ for my $ver ( grep !/0[01]0$/, sort keys %Module::CoreList::released ) {
171
+ printf "%-${max_ver_len}s %s\n", format_perl_version($ver), $Module::CoreList::released{$ver};
172
+ }
173
+ print "\n";
174
+ exit 0;
175
+ }
176
+
177
+ my $num_r = numify_version( $Opts{r} );
178
+ my $version_hash = Module::CoreList->find_version($num_r);
179
+
180
+ if( !$version_hash ) {
181
+ print "\nModule::CoreList has no info on perl $Opts{r}\n\n";
182
+ exit 1;
183
+ }
184
+
185
+ printf "Perl %s was released on %s\n\n", format_perl_version($num_r), $Module::CoreList::released{$num_r};
186
+ exit 0;
187
+ }
188
+
189
+ if(exists $Opts{v} ){
190
+ if( !$Opts{v} ) {
191
+ print "\nModule::CoreList has info on the following perl versions:\n";
192
+ print format_perl_version($_)."\n" for grep !/0[01]0$/, sort keys %Module::CoreList::version;
193
+ print "\n";
194
+ exit 0;
195
+ }
196
+
197
+ my $num_v = numify_version( $Opts{v} );
198
+
199
+ if ($Opts{utils}) {
200
+ utilities_in_version($num_v);
201
+ exit 0;
202
+ }
203
+
204
+ my $version_hash = Module::CoreList->find_version($num_v);
205
+
206
+ if( !$version_hash ) {
207
+ print "\nModule::CoreList has no info on perl $Opts{v}\n\n";
208
+ exit 1;
209
+ }
210
+
211
+ if ( !@ARGV ) {
212
+ print "\nThe following modules were in perl $Opts{v} CORE\n";
213
+ my $max_mod_len = max_mod_len($version_hash);
214
+ for my $mod ( sort keys %$version_hash ) {
215
+ printf "%-${max_mod_len}s %s\n", $mod, $version_hash->{$mod} || "";
216
+ }
217
+ print "\n";
218
+ exit 0;
219
+ }
220
+ }
221
+
222
+ if ($Opts{diff}) {
223
+ if(@ARGV != 2) {
224
+ die "\nprovide exactly two perl core versions to diff with --diff\n";
225
+ }
226
+
227
+ my ($old_ver, $new_ver) = @ARGV;
228
+
229
+ my $old = numify_version($old_ver);
230
+ if ( !Module::CoreList->find_version($old) ) {
231
+ print "\nModule::CoreList has no info on perl $old_ver\n\n";
232
+ exit 1;
233
+ }
234
+ my $new = numify_version($new_ver);
235
+ if ( !Module::CoreList->find_version($new) ) {
236
+ print "\nModule::CoreList has no info on perl $new_ver\n\n";
237
+ exit 1;
238
+ }
239
+
240
+ my %diff = Module::CoreList::changes_between($old, $new);
241
+
242
+ for my $lib (sort keys %diff) {
243
+ my $diff = $diff{$lib};
244
+
245
+ my $was = ! exists $diff->{left} ? '(absent)'
246
+ : ! defined $diff->{left} ? '(undef)'
247
+ : $diff->{left};
248
+
249
+ my $now = ! exists $diff->{right} ? '(absent)'
250
+ : ! defined $diff->{right} ? '(undef)'
251
+ : $diff->{right};
252
+
253
+ printf "%-35s %10s %10s\n", $lib, $was, $now;
254
+ }
255
+ exit(0);
256
+ }
257
+
258
+ if ($Opts{utils}) {
259
+ die "\n--utils only available with perl v5.19.1 or greater\n"
260
+ if $] < 5.019001;
261
+
262
+ die "\nprovide at least one utility name to --utils\n"
263
+ unless @ARGV;
264
+
265
+ warn "\n-a has no effect when --utils is used\n" if $Opts{a};
266
+ warn "\n--diff has no effect when --utils is used\n" if $Opts{diff};
267
+ warn "\n--upstream, or -u, has no effect when --utils is used\n" if $Opts{u};
268
+
269
+ my $when = maxstr(values %Module::CoreList::released);
270
+ print "\n","Data for $when\n";
271
+
272
+ utility_version($_) for @ARGV;
273
+
274
+ exit(0);
275
+ }
276
+
277
+ if ($Opts{feature}) {
278
+ die "\n--feature is only available with perl v5.16.0 or greater\n"
279
+ if $] < 5.016;
280
+
281
+ die "\nprovide at least one feature name to --feature\n"
282
+ unless @ARGV;
283
+
284
+ no warnings 'once';
285
+ require feature;
286
+
287
+ my %feature2version;
288
+ my @bundles = map { $_->[0] }
289
+ sort { $b->[1] <=> $a->[1] }
290
+ map { [$_, numify_version($_)] }
291
+ grep { not /[^0-9.]/ }
292
+ keys %feature::feature_bundle;
293
+
294
+ for my $version (@bundles) {
295
+ $feature2version{$_} = $version =~ /^\d\.\d+$/ ? "$version.0" : $version
296
+ for @{ $feature::feature_bundle{$version} };
297
+ }
298
+
299
+ # allow internal feature names, just in case someone gives us __SUB__
300
+ # instead of current_sub.
301
+ while (my ($name, $internal) = each %feature::feature) {
302
+ $internal =~ s/^feature_//;
303
+ $feature2version{$internal} = $feature2version{$name}
304
+ if $feature2version{$name};
305
+ }
306
+
307
+ my $when = maxstr(values %Module::CoreList::released);
308
+ print "\n","Data for $when\n";
309
+
310
+ for my $feature (@ARGV) {
311
+ print "feature \"$feature\" ",
312
+ exists $feature2version{$feature}
313
+ ? "was first released with the perl "
314
+ . format_perl_version(numify_version($feature2version{$feature}))
315
+ . " feature bundle\n"
316
+ : "doesn't exist (or so I think)\n";
317
+ }
318
+ exit(0);
319
+ }
320
+
321
+ if ( !@ARGV ) {
322
+ pod2usage(0);
323
+ }
324
+
325
+ while (@ARGV) {
326
+ my ($mod, $ver);
327
+ if ($ARGV[0] =~ /=/) {
328
+ ($mod, $ver) = split /=/, shift @ARGV;
329
+ } else {
330
+ $mod = shift @ARGV;
331
+ $ver = (@ARGV && $ARGV[0] =~ /^\d/) ? shift @ARGV : "";
332
+ }
333
+
334
+ if ($mod !~ m|^/(.*)/([imosx]*)$|) { # not a regex
335
+ module_version($mod,$ver);
336
+ } else {
337
+ my $re;
338
+ eval { $re = $2 ? qr/(?$2)($1)/ : qr/$1/; }; # trap exceptions while building regex
339
+ if ($@) {
340
+ # regex errors are usually like 'Quantifier follow nothing in regex; marked by ...'
341
+ # then we drop text after ';' to shorten message
342
+ my $errmsg = $@ =~ /(.*);/ ? $1 : $@;
343
+ warn "\n$mod is a bad regex: $errmsg\n";
344
+ next;
345
+ }
346
+ my @mod = Module::CoreList->find_modules($re);
347
+ if (@mod) {
348
+ module_version($_, $ver) for @mod;
349
+ } else {
350
+ $ver |= '';
351
+ print "\n$mod $ver has no match in CORE (or so I think)\n";
352
+ }
353
+
354
+ }
355
+ }
356
+
357
+ exit();
358
+
359
+ sub module_version {
360
+ my($mod,$ver) = @_;
361
+
362
+ if ( $Opts{v} ) {
363
+ my $numeric_v = numify_version($Opts{v});
364
+ my $version_hash = Module::CoreList->find_version($numeric_v);
365
+ if ($version_hash) {
366
+ print $mod, " ", $version_hash->{$mod} || 'undef', "\n";
367
+ return;
368
+ }
369
+ else { die "Shouldn't happen" }
370
+ }
371
+
372
+ my $ret = $Opts{d}
373
+ ? Module::CoreList->first_release_by_date(@_)
374
+ : Module::CoreList->first_release(@_);
375
+ my $msg = $mod;
376
+ $msg .= " $ver" if $ver;
377
+
378
+ my $rem = $Opts{d}
379
+ ? Module::CoreList->removed_from_by_date($mod)
380
+ : Module::CoreList->removed_from($mod);
381
+
382
+ my $when = maxstr(values %Module::CoreList::released);
383
+ print "\n","Data for $when\n";
384
+
385
+ if( defined $ret ) {
386
+ my $deprecated = Module::CoreList->deprecated_in($mod);
387
+ $msg .= " was ";
388
+ $msg .= "first " unless $ver;
389
+ $msg .= "released with perl " . format_perl_version($ret);
390
+ $msg .= ( $rem ? ',' : ' and' ) . " deprecated (will be CPAN-only) in " . format_perl_version($deprecated) if $deprecated;
391
+ $msg .= " and removed from " . format_perl_version($rem) if $rem;
392
+ } else {
393
+ $msg .= " was not in CORE (or so I think)";
394
+ }
395
+
396
+ print $msg,"\n";
397
+
398
+ if( defined $ret and exists $Opts{u} ) {
399
+ my $upstream = $Module::CoreList::upstream{$mod};
400
+ $upstream = 'undef' unless $upstream;
401
+ print "upstream: $upstream\n";
402
+ if ( $upstream ne 'blead' ) {
403
+ my $bugtracker = $Module::CoreList::bug_tracker{$mod};
404
+ $bugtracker = 'unknown' unless $bugtracker;
405
+ print "bug tracker: $bugtracker\n";
406
+ }
407
+ }
408
+
409
+ if(defined $ret and exists $Opts{a} and $Opts{a}){
410
+ display_a($mod);
411
+ }
412
+ }
413
+
414
+ sub utility_version {
415
+ my ($utility) = @_;
416
+
417
+ require Module::CoreList::Utils;
418
+
419
+ my $released = $Opts{d}
420
+ ? Module::CoreList::Utils->first_release_by_date($utility)
421
+ : Module::CoreList::Utils->first_release($utility);
422
+
423
+ my $removed = $Opts{d}
424
+ ? Module::CoreList::Utils->removed_from_by_date($utility)
425
+ : Module::CoreList::Utils->removed_from($utility);
426
+
427
+ if ($released) {
428
+ print "$utility was first released with perl ", format_perl_version($released);
429
+ print " and later removed in ", format_perl_version($removed)
430
+ if $removed;
431
+ print "\n";
432
+ } else {
433
+ print "$utility was not in CORE (or so I think)\n";
434
+ }
435
+ }
436
+
437
+ sub utilities_in_version {
438
+ my ($version) = @_;
439
+
440
+ require Module::CoreList::Utils;
441
+
442
+ my @utilities = Module::CoreList::Utils->utilities($version);
443
+
444
+ if (not @utilities) {
445
+ print "\nModule::CoreList::Utils has no info on perl $version\n\n";
446
+ exit 1;
447
+ }
448
+
449
+ print "\nThe following utilities were in perl ",
450
+ format_perl_version($version), " CORE\n";
451
+ print "$_\n" for sort { lc($a) cmp lc($b) } @utilities;
452
+ print "\n";
453
+ }
454
+
455
+
456
+ sub max_mod_len {
457
+ my $versions = shift;
458
+ my $max = 0;
459
+ for my $mod (keys %$versions) {
460
+ $max = max($max, length $mod);
461
+ }
462
+
463
+ return $max;
464
+ }
465
+
466
+ sub max {
467
+ my($this, $that) = @_;
468
+ return $this if $this > $that;
469
+ return $that;
470
+ }
471
+
472
+ sub display_a {
473
+ my $mod = shift;
474
+
475
+ for my $v (grep !/0[01]0$/, sort keys %Module::CoreList::version ) {
476
+ next unless exists $Module::CoreList::version{$v}{$mod};
477
+
478
+ my $mod_v = $Module::CoreList::version{$v}{$mod} || 'undef';
479
+ printf " %-10s %-10s\n", format_perl_version($v), $mod_v;
480
+ }
481
+ print "\n";
482
+ }
483
+
484
+
485
+ {
486
+ my $have_version_pm;
487
+ sub have_version_pm {
488
+ return $have_version_pm if defined $have_version_pm;
489
+ return $have_version_pm = eval { require version; 1 };
490
+ }
491
+ }
492
+
493
+
494
+ sub format_perl_version {
495
+ my $v = shift;
496
+ return $v if $v < 5.006 or !have_version_pm;
497
+ return version->new($v)->normal;
498
+ }
499
+
500
+
501
+ sub numify_version {
502
+ my $ver = shift;
503
+ if ($ver =~ /\..+\./) {
504
+ have_version_pm()
505
+ or die "You need to install version.pm to use dotted version numbers\n";
506
+ $ver = version->new($ver)->numify;
507
+ }
508
+ $ver += 0;
509
+ return $ver;
510
+ }
511
+
512
+ =head1 EXAMPLES
513
+
514
+ $ corelist File::Spec
515
+
516
+ File::Spec was first released with perl 5.005
517
+
518
+ $ corelist File::Spec 0.83
519
+
520
+ File::Spec 0.83 was released with perl 5.007003
521
+
522
+ $ corelist File::Spec 0.89
523
+
524
+ File::Spec 0.89 was not in CORE (or so I think)
525
+
526
+ $ corelist File::Spec::Aliens
527
+
528
+ File::Spec::Aliens was not in CORE (or so I think)
529
+
530
+ $ corelist /IPC::Open/
531
+
532
+ IPC::Open2 was first released with perl 5
533
+
534
+ IPC::Open3 was first released with perl 5
535
+
536
+ $ corelist /MANIFEST/i
537
+
538
+ ExtUtils::Manifest was first released with perl 5.001
539
+
540
+ $ corelist /Template/
541
+
542
+ /Template/ has no match in CORE (or so I think)
543
+
544
+ $ corelist -v 5.8.8 B
545
+
546
+ B 1.09_01
547
+
548
+ $ corelist -v 5.8.8 /^B::/
549
+
550
+ B::Asmdata 1.01
551
+ B::Assembler 0.07
552
+ B::Bblock 1.02_01
553
+ B::Bytecode 1.01_01
554
+ B::C 1.04_01
555
+ B::CC 1.00_01
556
+ B::Concise 0.66
557
+ B::Debug 1.02_01
558
+ B::Deparse 0.71
559
+ B::Disassembler 1.05
560
+ B::Lint 1.03
561
+ B::O 1.00
562
+ B::Showlex 1.02
563
+ B::Stackobj 1.00
564
+ B::Stash 1.00
565
+ B::Terse 1.03_01
566
+ B::Xref 1.01
567
+
568
+ =head1 COPYRIGHT
569
+
570
+ Copyright (c) 2002-2007 by D.H. aka PodMaster
571
+
572
+ Currently maintained by the perl 5 porters E<lt>perl5-porters@perl.orgE<gt>.
573
+
574
+ This program is distributed under the same terms as perl itself.
575
+ See http://perl.org/ or http://cpan.org/ for more info on that.
576
+
577
+ =cut
data/miniconda3/bin/cpan ADDED
@@ -0,0 +1,352 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/home/zangyihe/miniconda3/bin/perl
2
+ eval 'exec /home/zangyihe/miniconda3/bin/perl -S $0 ${1+"$@"}'
3
+ if $running_under_some_shell;
4
+ #!/usr/local/bin/perl
5
+
6
+ BEGIN { pop @INC if $INC[-1] eq '.' }
7
+ use strict;
8
+ use vars qw($VERSION);
9
+
10
+ use App::Cpan;
11
+ use CPAN::Version;
12
+ my $minver = '1.64';
13
+ if ( CPAN::Version->vlt($App::Cpan::VERSION, $minver) ) {
14
+ warn "WARNING: your version of App::Cpan is $App::Cpan::VERSION while we would expect at least $minver";
15
+ }
16
+ $VERSION = '1.64';
17
+
18
+ my $rc = App::Cpan->run( @ARGV );
19
+
20
+ # will this work under Strawberry Perl?
21
+ exit( $rc || 0 );
22
+
23
+ =head1 NAME
24
+
25
+ cpan - easily interact with CPAN from the command line
26
+
27
+ =head1 SYNOPSIS
28
+
29
+ # with arguments and no switches, installs specified modules
30
+ cpan module_name [ module_name ... ]
31
+
32
+ # with switches, installs modules with extra behavior
33
+ cpan [-cfFimtTw] module_name [ module_name ... ]
34
+
35
+ # use local::lib
36
+ cpan -I module_name [ module_name ... ]
37
+
38
+ # one time mirror override for faster mirrors
39
+ cpan -p ...
40
+
41
+ # with just the dot, install from the distribution in the
42
+ # current directory
43
+ cpan .
44
+
45
+ # without arguments, starts CPAN.pm shell
46
+ cpan
47
+
48
+ # without arguments, but some switches
49
+ cpan [-ahpruvACDLOPX]
50
+
51
+ =head1 DESCRIPTION
52
+
53
+ This script provides a command interface (not a shell) to CPAN. At the
54
+ moment it uses CPAN.pm to do the work, but it is not a one-shot command
55
+ runner for CPAN.pm.
56
+
57
+ =head2 Options
58
+
59
+ =over 4
60
+
61
+ =item -a
62
+
63
+ Creates a CPAN.pm autobundle with CPAN::Shell->autobundle.
64
+
65
+ =item -A module [ module ... ]
66
+
67
+ Shows the primary maintainers for the specified modules.
68
+
69
+ =item -c module
70
+
71
+ Runs a `make clean` in the specified module's directories.
72
+
73
+ =item -C module [ module ... ]
74
+
75
+ Show the F<Changes> files for the specified modules
76
+
77
+ =item -D module [ module ... ]
78
+
79
+ Show the module details. This prints one line for each out-of-date module
80
+ (meaning, modules locally installed but have newer versions on CPAN).
81
+ Each line has three columns: module name, local version, and CPAN
82
+ version.
83
+
84
+ =item -f
85
+
86
+ Force the specified action, when it normally would have failed. Use this
87
+ to install a module even if its tests fail. When you use this option,
88
+ -i is not optional for installing a module when you need to force it:
89
+
90
+ % cpan -f -i Module::Foo
91
+
92
+ =item -F
93
+
94
+ Turn off CPAN.pm's attempts to lock anything. You should be careful with
95
+ this since you might end up with multiple scripts trying to muck in the
96
+ same directory. This isn't so much of a concern if you're loading a special
97
+ config with C<-j>, and that config sets up its own work directories.
98
+
99
+ =item -g module [ module ... ]
100
+
101
+ Downloads to the current directory the latest distribution of the module.
102
+
103
+ =item -G module [ module ... ]
104
+
105
+ UNIMPLEMENTED
106
+
107
+ Download to the current directory the latest distribution of the
108
+ modules, unpack each distribution, and create a git repository for each
109
+ distribution.
110
+
111
+ If you want this feature, check out Yanick Champoux's C<Git::CPAN::Patch>
112
+ distribution.
113
+
114
+ =item -h
115
+
116
+ Print a help message and exit. When you specify C<-h>, it ignores all
117
+ of the other options and arguments.
118
+
119
+ =item -i module [ module ... ]
120
+
121
+ Install the specified modules. With no other switches, this switch
122
+ is implied.
123
+
124
+ =item -I
125
+
126
+ Load C<local::lib> (think like C<-I> for loading lib paths). Too bad
127
+ C<-l> was already taken.
128
+
129
+ =item -j Config.pm
130
+
131
+ Load the file that has the CPAN configuration data. This should have the
132
+ same format as the standard F<CPAN/Config.pm> file, which defines
133
+ C<$CPAN::Config> as an anonymous hash.
134
+
135
+ =item -J
136
+
137
+ Dump the configuration in the same format that CPAN.pm uses. This is useful
138
+ for checking the configuration as well as using the dump as a starting point
139
+ for a new, custom configuration.
140
+
141
+ =item -l
142
+
143
+ List all installed modules with their versions
144
+
145
+ =item -L author [ author ... ]
146
+
147
+ List the modules by the specified authors.
148
+
149
+ =item -m
150
+
151
+ Make the specified modules.
152
+
153
+ =item -M mirror1,mirror2,...
154
+
155
+ A comma-separated list of mirrors to use for just this run. The C<-P>
156
+ option can find them for you automatically.
157
+
158
+ =item -n
159
+
160
+ Do a dry run, but don't actually install anything. (unimplemented)
161
+
162
+ =item -O
163
+
164
+ Show the out-of-date modules.
165
+
166
+ =item -p
167
+
168
+ Ping the configured mirrors and print a report
169
+
170
+ =item -P
171
+
172
+ Find the best mirrors you could be using and use them for the current
173
+ session.
174
+
175
+ =item -r
176
+
177
+ Recompiles dynamically loaded modules with CPAN::Shell->recompile.
178
+
179
+ =item -s
180
+
181
+ Drop in the CPAN.pm shell. This command does this automatically if you don't
182
+ specify any arguments.
183
+
184
+ =item -t module [ module ... ]
185
+
186
+ Run a `make test` on the specified modules.
187
+
188
+ =item -T
189
+
190
+ Do not test modules. Simply install them.
191
+
192
+ =item -u
193
+
194
+ Upgrade all installed modules. Blindly doing this can really break things,
195
+ so keep a backup.
196
+
197
+ =item -v
198
+
199
+ Print the script version and CPAN.pm version then exit.
200
+
201
+ =item -V
202
+
203
+ Print detailed information about the cpan client.
204
+
205
+ =item -w
206
+
207
+ UNIMPLEMENTED
208
+
209
+ Turn on cpan warnings. This checks various things, like directory permissions,
210
+ and tells you about problems you might have.
211
+
212
+ =item -x module [ module ... ]
213
+
214
+ Find close matches to the named modules that you think you might have
215
+ mistyped. This requires the optional installation of Text::Levenshtein or
216
+ Text::Levenshtein::Damerau.
217
+
218
+ =item -X
219
+
220
+ Dump all the namespaces to standard output.
221
+
222
+ =back
223
+
224
+ =head2 Examples
225
+
226
+ # print a help message
227
+ cpan -h
228
+
229
+ # print the version numbers
230
+ cpan -v
231
+
232
+ # create an autobundle
233
+ cpan -a
234
+
235
+ # recompile modules
236
+ cpan -r
237
+
238
+ # upgrade all installed modules
239
+ cpan -u
240
+
241
+ # install modules ( sole -i is optional )
242
+ cpan -i Netscape::Booksmarks Business::ISBN
243
+
244
+ # force install modules ( must use -i )
245
+ cpan -fi CGI::Minimal URI
246
+
247
+ # install modules but without testing them
248
+ cpan -Ti CGI::Minimal URI
249
+
250
+ =head2 Environment variables
251
+
252
+ There are several components in CPAN.pm that use environment variables.
253
+ The build tools, L<ExtUtils::MakeMaker> and L<Module::Build> use some,
254
+ while others matter to the levels above them. Some of these are specified
255
+ by the Perl Toolchain Gang:
256
+
257
+ Lancaster Concensus: L<https://github.com/Perl-Toolchain-Gang/toolchain-site/blob/master/lancaster-consensus.md>
258
+
259
+ Oslo Concensus: L<https://github.com/Perl-Toolchain-Gang/toolchain-site/blob/master/oslo-consensus.md>
260
+
261
+ =over 4
262
+
263
+ =item NONINTERACTIVE_TESTING
264
+
265
+ Assume no one is paying attention and skips prompts for distributions
266
+ that do that correctly. C<cpan(1)> sets this to C<1> unless it already
267
+ has a value (even if that value is false).
268
+
269
+ =item PERL_MM_USE_DEFAULT
270
+
271
+ Use the default answer for a prompted questions. C<cpan(1)> sets this
272
+ to C<1> unless it already has a value (even if that value is false).
273
+
274
+ =item CPAN_OPTS
275
+
276
+ As with C<PERL5OPT>, a string of additional C<cpan(1)> options to
277
+ add to those you specify on the command line.
278
+
279
+ =item CPANSCRIPT_LOGLEVEL
280
+
281
+ The log level to use, with either the embedded, minimal logger or
282
+ L<Log::Log4perl> if it is installed. Possible values are the same as
283
+ the C<Log::Log4perl> levels: C<TRACE>, C<DEBUG>, C<INFO>, C<WARN>,
284
+ C<ERROR>, and C<FATAL>. The default is C<INFO>.
285
+
286
+ =item GIT_COMMAND
287
+
288
+ The path to the C<git> binary to use for the Git features. The default
289
+ is C</usr/local/bin/git>.
290
+
291
+ =back
292
+
293
+ =head1 EXIT VALUES
294
+
295
+ The script exits with zero if it thinks that everything worked, or a
296
+ positive number if it thinks that something failed. Note, however, that
297
+ in some cases it has to divine a failure by the output of things it does
298
+ not control. For now, the exit codes are vague:
299
+
300
+ 1 An unknown error
301
+
302
+ 2 The was an external problem
303
+
304
+ 4 There was an internal problem with the script
305
+
306
+ 8 A module failed to install
307
+
308
+ =head1 TO DO
309
+
310
+ * one shot configuration values from the command line
311
+
312
+ =head1 BUGS
313
+
314
+ * none noted
315
+
316
+ =head1 SEE ALSO
317
+
318
+ Most behaviour, including environment variables and configuration,
319
+ comes directly from CPAN.pm.
320
+
321
+ =head1 SOURCE AVAILABILITY
322
+
323
+ This code is in Github in the CPAN.pm repository:
324
+
325
+ https://github.com/andk/cpanpm
326
+
327
+ The source used to be tracked separately in another GitHub repo,
328
+ but the canonical source is now in the above repo.
329
+
330
+ =head1 CREDITS
331
+
332
+ Japheth Cleaver added the bits to allow a forced install (-f).
333
+
334
+ Jim Brandt suggest and provided the initial implementation for the
335
+ up-to-date and Changes features.
336
+
337
+ Adam Kennedy pointed out that exit() causes problems on Windows
338
+ where this script ends up with a .bat extension
339
+
340
+ =head1 AUTHOR
341
+
342
+ brian d foy, C<< <bdfoy@cpan.org> >>
343
+
344
+ =head1 COPYRIGHT
345
+
346
+ Copyright (c) 2001-2015, brian d foy, All Rights Reserved.
347
+
348
+ You may redistribute this under the same terms as Perl itself.
349
+
350
+ =cut
351
+
352
+ 1;
data/miniconda3/bin/curl-config ADDED
@@ -0,0 +1,189 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/bin/sh
2
+ #***************************************************************************
3
+ # _ _ ____ _
4
+ # Project ___| | | | _ \| |
5
+ # / __| | | | |_) | |
6
+ # | (__| |_| | _ <| |___
7
+ # \___|\___/|_| \_\_____|
8
+ #
9
+ # Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al.
10
+ #
11
+ # This software is licensed as described in the file COPYING, which
12
+ # you should have received as part of this distribution. The terms
13
+ # are also available at https://curl.se/docs/copyright.html.
14
+ #
15
+ # You may opt to use, copy, modify, merge, publish, distribute and/or sell
16
+ # copies of the Software, and permit persons to whom the Software is
17
+ # furnished to do so, under the terms of the COPYING file.
18
+ #
19
+ # This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
20
+ # KIND, either express or implied.
21
+ #
22
+ # SPDX-License-Identifier: curl
23
+ #
24
+ ###########################################################################
25
+
26
+ # shellcheck disable=SC2006
27
+
28
+ prefix='/home/zangyihe/miniconda3'
29
+ # Used in 'libdir'
30
+ # shellcheck disable=SC2034
31
+ exec_prefix="${prefix}"
32
+ # shellcheck disable=SC2034
33
+ includedir="${prefix}/include"
34
+
35
+ usage()
36
+ {
37
+ cat <<EOF
38
+ Usage: curl-config [OPTION]
39
+
40
+ Available values for OPTION include:
41
+
42
+ --built-shared says 'yes' if libcurl was built shared
43
+ --ca CA bundle install path
44
+ --cc compiler
45
+ --cflags preprocessor and compiler flags
46
+ --checkfor [version] check for (lib)curl of the specified version
47
+ --configure the arguments given to configure when building curl
48
+ --features newline separated list of enabled features
49
+ --help display this help and exit
50
+ --libs library linking information
51
+ --prefix curl install prefix
52
+ --protocols newline separated list of enabled protocols
53
+ --ssl-backends output the SSL backends libcurl was built to support
54
+ --static-libs static libcurl library linking information
55
+ --version output version information
56
+ --vernum output version as a hexadecimal number
57
+ EOF
58
+
59
+ exit "$1"
60
+ }
61
+
62
+ if test "$#" -eq 0; then
63
+ usage 1
64
+ fi
65
+
66
+ while test "$#" -gt 0; do
67
+ case "$1" in
68
+ --built-shared)
69
+ echo 'yes'
70
+ ;;
71
+
72
+ --ca)
73
+ echo '/home/zangyihe/miniconda3/ssl/cacert.pem'
74
+ ;;
75
+
76
+ --cc)
77
+ echo '/home/task_176155543361224/conda-bld/curl-split_1761555530776/_build_env/bin/x86_64-conda-linux-gnu-cc'
78
+ ;;
79
+
80
+ --prefix)
81
+ echo "$prefix"
82
+ ;;
83
+
84
+ --feature|--features)
85
+ for feature in alt-svc AsynchDNS HSTS HTTP2 HTTPS-proxy IDN IPv6 Largefile libz NTLM SSL threadsafe TLS-SRP UnixSockets zstd ''; do
86
+ test -n "$feature" && echo "$feature"
87
+ done
88
+ ;;
89
+
90
+ --protocols)
91
+ # shellcheck disable=SC2043
92
+ for protocol in DICT FILE FTP FTPS GOPHER GOPHERS HTTP HTTPS IMAP IMAPS IPFS IPNS MQTT POP3 POP3S RTSP SCP SFTP SMB SMBS SMTP SMTPS TELNET TFTP WS WSS; do
93
+ echo "$protocol"
94
+ done
95
+ ;;
96
+
97
+ --version)
98
+ echo 'libcurl 8.16.0'
99
+ exit 0
100
+ ;;
101
+
102
+ --checkfor)
103
+ checkfor="$2"
104
+ cmajor=`echo "$checkfor" | cut -d. -f1`
105
+ cminor=`echo "$checkfor" | cut -d. -f2`
106
+ # when extracting the patch part we strip off everything after a
107
+ # dash as that's used for things like version 1.2.3-pre1
108
+ cpatch=`echo "$checkfor" | cut -d. -f3 | cut -d- -f1`
109
+
110
+ vmajor=`echo '8.16.0' | cut -d. -f1`
111
+ vminor=`echo '8.16.0' | cut -d. -f2`
112
+ # when extracting the patch part we strip off everything after a
113
+ # dash as that's used for things like version 1.2.3-pre1
114
+ vpatch=`echo '8.16.0' | cut -d. -f3 | cut -d- -f1`
115
+
116
+ if test "$vmajor" -gt "$cmajor"; then
117
+ exit 0
118
+ fi
119
+ if test "$vmajor" -eq "$cmajor"; then
120
+ if test "$vminor" -gt "$cminor"; then
121
+ exit 0
122
+ fi
123
+ if test "$vminor" -eq "$cminor"; then
124
+ if test "$cpatch" -le "$vpatch"; then
125
+ exit 0
126
+ fi
127
+ fi
128
+ fi
129
+
130
+ echo "requested version $checkfor is newer than existing 8.16.0"
131
+ exit 1
132
+ ;;
133
+
134
+ --vernum)
135
+ echo '081000'
136
+ exit 0
137
+ ;;
138
+
139
+ --help)
140
+ usage 0
141
+ ;;
142
+
143
+ --cflags)
144
+ if test "${prefix}/include" = '/usr/include'; then
145
+ echo ''
146
+ else
147
+ echo " -I${prefix}/include"
148
+ fi
149
+ ;;
150
+
151
+ --libs)
152
+ if test "${exec_prefix}/lib" != '/usr/lib' -a "${exec_prefix}/lib" != '/usr/lib64'; then
153
+ curllibdir="-L${exec_prefix}/lib "
154
+ else
155
+ curllibdir=''
156
+ fi
157
+ if test 'yes' = 'no'; then
158
+ echo "${curllibdir}-lcurl -lssh2 -lidn2 -lssl -lcrypto -lz -lzstd -lnghttp2"
159
+ else
160
+ echo "${curllibdir}-lcurl"
161
+ fi
162
+ ;;
163
+
164
+ --ssl-backends)
165
+ echo 'OpenSSL v3+'
166
+ ;;
167
+
168
+ --static-libs)
169
+ if test 'no' != 'no'; then
170
+ echo "${exec_prefix}/lib/libcurl.a -lpthread -lssh2 -lidn2 -lssl -lcrypto -lz -lzstd -lnghttp2"
171
+ else
172
+ echo 'curl was built with static libraries disabled' >&2
173
+ exit 1
174
+ fi
175
+ ;;
176
+
177
+ --configure)
178
+ echo
179
+ ;;
180
+
181
+ *)
182
+ echo "unknown option: $1"
183
+ usage 1
184
+ ;;
185
+ esac
186
+ shift
187
+ done
188
+
189
+ exit 0
data/miniconda3/bin/cwebp ADDED
Binary file (69 kB). View file
 
data/miniconda3/bin/dbus-monitor ADDED
Binary file (85.8 kB). View file
 
data/miniconda3/bin/dbus-run-session ADDED
Binary file (37.8 kB). View file
 
data/miniconda3/bin/dbus-send ADDED
Binary file (95.6 kB). View file
 
data/miniconda3/bin/dbus-test-tool ADDED
Binary file (68.8 kB). View file
 
data/miniconda3/bin/dbus-update-activation-environment ADDED
Binary file (35.3 kB). View file
 
data/miniconda3/bin/dbus-uuidgen ADDED
Binary file (24.3 kB). View file
 
data/miniconda3/bin/deactivate ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ #!/bin/sh
2
+ _CONDA_ROOT="/home/zangyihe/miniconda3"
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
data/miniconda3/bin/delaunay ADDED
Binary file (27.8 kB). View file
 
data/miniconda3/bin/derb ADDED
Binary file (34.7 kB). View file
 
data/miniconda3/bin/diffimg ADDED
Binary file (17.1 kB). View file