You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

#### 118 lines 3.6 KiB Bash Raw Blame History

 ```# Parses all samples on the command line, and for each of them, prints ``` ```# the versions of the main tools ``` ``` ``` ```# Use tools discovered by ./configure ``` ```. "\${CT_LIB_DIR}/scripts/functions" ``` ``` ``` ```[ "\$1" = "-v" ] && opt="\$1" && shift ``` ``` ``` ```# GREP_OPTIONS screws things up. ``` ```export GREP_OPTIONS= ``` ``` ``` ```fieldwidth=15 ``` ``` ``` ```# Dummy version which is invoked from .config ``` ```CT_Mirrors() { :; } ``` ``` ``` ```# Dump a short package description with a name and version in a format ``` ```# " [-]" ``` ```dump_pkgs_desc() ``` ```{ ``` ``` local category="\${1}" ``` ``` local field="\${2}" ``` ``` shift 2 ``` ``` local show_version ``` ``` local tmp ``` ``` ``` ``` printf " %-*s :" \${fieldwidth} "\${field}" ``` ``` while [ -n "\${1}" ]; do ``` ``` eval "tmp=\"\\${CT_\${category}_\${1}}\"" ``` ``` if [ -n "\${tmp}" ]; then ``` ``` CT_GetPkgBuildVersion "\${category}" "\${1}" show_version ``` ``` printf " %s" "\${show_version}" ``` ``` fi ``` ``` shift ``` ``` done ``` ``` printf "\n" ``` ```} ``` ``` ``` ```# Dump a short package description with a name and version in a format ``` ```# " [-]" ``` ```dump_choice_desc() ``` ```{ ``` ``` local category="\${1}" ``` ``` local field="\${2}" ``` ``` local show_version ``` ``` ``` ``` CT_GetChoicePkgBuildVersion "\${category}" show_version ``` ``` printf " %-*s : %s\n" \${fieldwidth} "\${field}" "\${show_version}" ``` ```} ``` ``` ``` ```# Dump a single sample ``` ```# Note: we use the specific .config.sample config file ``` ```dump_single_sample() ``` ```{ ``` ``` local verbose=0 ``` ``` local complibs ``` ``` [ "\$1" = "-v" ] && verbose=1 && shift ``` ``` local sample="\$1" ``` ``` . \$(pwd)/.config.sample ``` ``` ``` ``` case "\${sample}" in ``` ``` current) ``` ``` sample_type="l" ``` ``` sample="\$( \${CT_NG} show-tuple )" ``` ``` case "\${CT_TOOLCHAIN_TYPE}" in ``` ``` canadian) ``` ``` sample="\${CT_HOST},\${sample}" ``` ``` ;; ``` ``` esac ``` ``` ;; ``` ``` *) if [ -f "\${CT_TOP_DIR}/samples/\${sample}/crosstool.config" ]; then ``` ``` sample_top="\${CT_TOP_DIR}" ``` ``` sample_type="L" ``` ``` else ``` ``` sample_top="\${CT_LIB_DIR}" ``` ``` sample_type="G" ``` ``` fi ``` ``` ;; ``` ``` esac ``` ``` printf "[%s" "\${sample_type}" ``` ``` [ -f "\${sample_top}/samples/\${sample}/broken" ] && printf "B" || printf "." ``` ``` [ "\${CT_EXPERIMENTAL}" = "y" ] && printf "X" || printf "." ``` ``` printf "] %s\n" "\${sample}" ``` ``` if [ \${verbose} -ne 0 ]; then ``` ``` case "\${CT_TOOLCHAIN_TYPE}" in ``` ``` cross) ;; ``` ``` canadian) ``` ``` printf " %-*s : %s\n" \${fieldwidth} "Host" "\${CT_HOST}" ``` ``` ;; ``` ``` esac ``` ``` # FIXME get choice/menu names from generated kconfig files as well ``` ``` # FIXME get the list of menu components from generated kconfig files ``` ``` dump_choice_desc KERNEL "OS" ``` ``` dump_pkgs_desc COMP_LIBS "Companion libs" GMP MPFR MPC ISL CLOOG LIBELF EXPAT NCURSES \ ``` ``` LIBICONV GETTEXT ``` ``` dump_choice_desc BINUTILS "Binutils" ``` ``` dump_choice_desc CC "Compiler" ``` ``` printf " %-*s : %s" \${fieldwidth} "Languages" "C" ``` ``` [ "\${CT_CC_LANG_CXX}" = "y" ] && printf ",C++" ``` ``` [ "\${CT_CC_LANG_FORTRAN}" = "y" ] && printf ",Fortran" ``` ``` [ "\${CT_CC_LANG_JAVA}" = "y" ] && printf ",Java" ``` ``` [ "\${CT_CC_LANG_ADA}" = "y" ] && printf ",ADA" ``` ``` [ "\${CT_CC_LANG_OBJC}" = "y" ] && printf ",Objective-C" ``` ``` [ "\${CT_CC_LANG_OBJCXX}" = "y" ] && printf ",Objective-C++" ``` ``` [ "\${CT_CC_LANG_GOLANG}" = "y" ] && printf ",Go" ``` ``` [ -n "\${CT_CC_LANG_OTHERS}" ] && printf ",\${CT_CC_LANG_OTHERS}" ``` ``` printf "\n" ``` ``` ``` ``` dump_choice_desc LIBC "C library" ``` ``` dump_pkgs_desc DEBUG "Debug tools" DUMA GDB LTRACE STRACE ``` ``` dump_pkgs_desc COMP_TOOLS "Companion tools" AUTOCONF AUTOMAKE LIBTOOL M4 MAKE ``` ``` fi ``` ```} ``` ``` ``` ```for sample in "\${@}"; do ``` ``` dump_single_sample \${opt} "\${sample}" ``` ```done ```
{"ft_lang_label":"__label__en","ft_lang_prob":0.518599,"math_prob":0.8342901,"size":3459,"snap":"2023-40-2023-50","text_gpt3_token_len":1101,"char_repetition_ratio":0.16063675,"word_repetition_ratio":0.13541667,"special_character_ratio":0.40589765,"punctuation_ratio":0.10864745,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.97627676,"pos_list":[0],"im_url_duplicate_count":[null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2023-09-26T12:35:43Z\",\"WARC-Record-ID\":\"<urn:uuid:ab4d1980-95f7-4f13-a43c-9e2baa691b7c>\",\"Content-Length\":\"83909\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:a7b801f9-e096-4d75-85aa-60ba184e73c5>\",\"WARC-Concurrent-To\":\"<urn:uuid:ee407e43-929b-467d-a31e-ebde38e85f48>\",\"WARC-IP-Address\":\"46.226.111.114\",\"WARC-Target-URI\":\"https://git.kataplop.net/marc/crosstool-ng/src/commit/2acab2f06197ab34243fc415020ead54d4a9e505/scripts/show-config.sh\",\"WARC-Payload-Digest\":\"sha1:E3CDMDOFF3YPAKMY4KQ4EEABAKHEYC7H\",\"WARC-Block-Digest\":\"sha1:WJQFOHOUN4KM6WMUGARECMP2IRCPKYDH\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2023/CC-MAIN-2023-40/CC-MAIN-2023-40_segments_1695233510208.72_warc_CC-MAIN-20230926111439-20230926141439-00879.warc.gz\"}"}