mrrl

Minimal Reliable Reproducible Linux
git clone https://ccx.te2000.cz/git/mrrl
Log | Files | Refs | Submodules | README

ocaml-bos (5818B)


      1 #!/usr/bin/env pthbs-build
      2 #+busybox.7f0e4d86f69de7624b0468018b9933c3e3c1757c8ff73938746c292196f916dd
      3 #+busybox-bzip2.52d2053dff44277d3c6f700eec6807d2c64c226e0f1bf589372ff5ff625be40e
      4 #+busybox-gzip.085fc42ce36be284c89a9dec6889cca59dedd07b9ba93a21d3198c4adcac5840
      5 #+busybox-lzop.bccd8f86de85a74d466d34f802ab1ea355f0a9d9886bdfa4d7bb4a785d695be6
      6 #+busybox-unzip.237a4ec36283b7fbdb85df583c7c77c0aaf70d335b1cbae09a40a9bb4b6c82bb
      7 #+busybox-xz.db25ed2ffbfc91e7b5cff54faf2e80de59ab5b15167c2c5bb338fa1ee62de122
      8 #+busybox-cpio.307e9495bcd9b79fd9559882115d55d22c5b687e08886e696f1e53d8db7eebcd
      9 #+busybox-dpkg.3aec8347093bb5b774a0c25795cdf9e624268a3b04cc48e867d74e4e06461db7
     10 #+busybox-rpm.8435251ea7058aea0cbcd41478b144b1a15c5aa121509af887847c0ef45bf5aa
     11 #+busybox-tar.c77139157bce13db8820740b756572c22e29cfbd8bb8c2a3b22b465b70e2eae9
     12 #+busybox-ed.4ac872215d7b9c8096c4cfd508434fbd2e825aebd9a9ea8589a0033b8e50aac2
     13 #+busybox-sed.14269a860b3706f7122b827818365fecaa0e62ce5bc3273e89948685c0953f2d
     14 #+busybox-vi.7e41b306c9c47aaaa281aa8347b9fa6dca260788fd73f53a7ba9260b315627ee
     15 #+busybox-xxd.9df3407fd75b89cb640d65870298eaba77327d6e387d25d8ce1ebab01cb47857
     16 #+busybox-process-extra.65afeaded3cb8fdeea327262f28f08e50f18d51a2b456ea97b293d200c7f558e
     17 #+busybox-procps.e5dc609521d29d8aec8253147269314439131c088a6beeacc172fc07594c4a37
     18 #+busybox-psmisc.7d760b69f45bb1b8d458f2f408b9cb3a42e919e8022f0508c440a5fd20ebb66f
     19 #+busybox-ash.fd5d266905d40248735e0e2e1ae22165b6f0d42c0bacb652660f69f39c1ee71e
     20 #+busybox-bc.6f2fe17efab2237c3036eba1c37d432d696d1b5dba130e21365016ceae0a3184
     21 #+busybox-coreutils.7e581faa6901f832a2a022d72b2858c3091f47afc80a4a463adb2f2a68f1843d
     22 #+busybox-coreutils-extra.5ab183b839676b0780a9a83d75cc345a06221fa34627c44aa3732c4a5a47f9b9
     23 #+busybox-daemontools.bcea69c867a61fe1d49d2f6a27e406959c484ed20d54fd7c0341828d3cdbd428
     24 #+busybox-grep.ac20e6a4295eb7fb0a09d700e10e5fe55e2009d2858e0a1525e461d4914e820b
     25 #+busybox-misc.7f0588b97809fac8061c489b686424de1a7dd17d8eb3431aae56513c7288f1e7
     26 #+busybox-sh.288f0583edc783a176bbbc59a3e854b186258ba2605291377a545cc3191c3d52
     27 #+busybox-util-linux-unpriv.5a286246aa7204f7fa8c9a247f1c93c751979690a65200030f29e255645c1eae
     28 #+busybox-findutils.207f73a9f41a8f9e279072e920cbf0c38ba6516734fa3cf2c1faf55565613487
     29 #+nawk.84c186be0a6d09a951a8c6a5377d16b0ba0a9e476e6b554c0c832d6407ebb5b2
     30 #+busybox-diffutils.895f7a6bf6d00136038d8bafa91a6fb1e7027ce5a32e1e3b64a9119fe69ef19a
     31 #+musl-cross-make.19d51dec5328ccacd41d47d7f24e33bac084aebefb839cb3fecb6573577b831a
     32 #+ocaml.5d68a619356fa3da8a61022cde7b7b58e6d4e05bd0cad320650fe78e2359e764
     33 #+ocaml-findlib.119645cc19ad20e25ac8fff6531d6bd3b5d0c90dcf5a2ea2369d935467241e09
     34 #+ocamlbuild.30e4bfbe643190132b01f96703607ced88d89cdee689d27ad26257d0d3757a6d
     35 #+opam.70f3a1027e3c3c4255aa047339538305bb651f229e25a10e79c236d79eaa2073
     36 #+ocaml-topkg.47ec48d069bbb09724d00eeefee9f38df96c966fc2138a03393eb24fb2a6b36b
     37 #+ocaml-astring.a4728143e319d9b9b8957cf07eb911a02ab311ce13a946a5bc133ef339f71665
     38 #+ocaml-fpath.67a597daf5fd5e6cf802756ff5dc559b2cfba74e71f47af06ef1b155bcabc6db
     39 #+ocaml-rresult.78b43db9f1775e583ee51326d04037a0cb11612c39421f53f390d8a675ff4a1d
     40 #+ocaml-fmt.8c535292c39a3df0a1d004ba643cc1567f7d1bcf4125a55303c13194285fcce9
     41 #+ocaml-logs.fbc2cfc8f44f0d86d8726918305faf1ffb164ec1bb7564a932e028d08b7c4fa6
     42 #+ocaml-mtime.be93b9acdc6b6f7900f9a62a0707d53771e2e19e8f5cb6fa856fd5e7db7ae002
     43 #@untar:-j:sha256:d8d62e786b10d697e0457205a8eedeaa27ebcc90f1855f18df190cac2e3d8f37:.
     44 
     45 
     46 # - build script start -
     47 
     48 prefix=/versions/$pthbs_package
     49 dest=${pthbs_destdir%/}${prefix}
     50 cd 'bos-0.2.1'
     51 
     52 
     53 
     54 ocaml -I "$OCAMLPATH" pkg/pkg.ml build 
     55 
     56 
     57 	opam-installer -i \
     58 		--prefix="$dest" \
     59 		--libdir="$dest/library.ocaml" \
     60 		--mandir="$dest/man" \
     61 		--docdir="$dest/doc/ocaml-bos"
     62 
     63 
     64 
     65 
     66 
     67 cd "$pthbs_destdir/versions/$pthbs_package"
     68 find -type d -o -print | awk -F/ '
     69 BEGIN {
     70 
     71 	x["./library.ocaml/bos/META"]=1
     72 	x["./library.ocaml/bos/bos.a"]=1
     73 	x["./library.ocaml/bos/bos.cma"]=1
     74 	x["./library.ocaml/bos/bos.cmi"]=1
     75 	x["./library.ocaml/bos/bos.cmti"]=1
     76 	x["./library.ocaml/bos/bos.cmx"]=1
     77 	x["./library.ocaml/bos/bos.cmxa"]=1
     78 	x["./library.ocaml/bos/bos.mli"]=1
     79 }
     80 
     81 function r1(s) {
     82 	sub("^[.]/[^/]*", ".", s)
     83 	return s
     84 }
     85 function s1(repl, s) {
     86 	sub("^[.]/[^/]*", "./"repl, s)
     87 	return s
     88 }
     89 function link(src) {
     90 	x[$0]=0
     91 	printf "%s\t%s\n", $0, src
     92 	printf "genlinks >>%s\t%s<<\n", $0, src >>"/dev/stderr"
     93 }
     94 $1!="."{exit 1}
     95 $2 == "env" { link($0); next }
     96 $2 == ".env-template" { link($0); next }
     97 
     98 $2 == "command" { link($0); next }
     99 $2 == "command" { link($0); next }
    100 $2 == "bin" { link(s1("command", $0)); next }
    101 $2 == "sbin" { link(s1("command", $0)); next }
    102 
    103 $2 == "library.so" { link($0); next }
    104 $2 == "library" { link($0); next }
    105 $2 == "lib" && $NF ~ /\.l?a$/ { link(s1("library", $0)); next }
    106 $2 == "lib" && $NF ~ /\.so(\..*)?$/ { link(s1("library.so", $0)); next }
    107 
    108 $2 == "share" && $3 == "info" { link(s1("info", r1($0))); next }
    109 $2 == "share" && $3 == "man" { link(s1("man", r1($0))); next }
    110 $2 == "share" && $3 == "doc" { link(s1("doc", r1($0))); next }
    111 
    112 $2 == "config" { link($0); next }
    113 $2 == "man" { link($0); next }
    114 $2 == "info" { link($0); next }
    115 $2 == "doc" { link($0); next }
    116 $2 == "data" { link($0); next }
    117 $2 == "include" { link($0); next }
    118 
    119 $2 == "share" && $3 ~ /^(icons|terminfo)$/ { link(r1($0)); next }
    120 
    121 $2 == "library.ocaml" { link($0); next }
    122 
    123 $2 == "keys" { link($0); next }
    124 $2 == "zsh" { link($0); next }
    125 $2 == "vimfiles" { link($0); next }
    126 $2 == "icons" { link($0); next }
    127 $2 == "terminfo" { link($0); next }
    128 
    129 
    130 { printf "genlinks ##%s## skipped\n", $0 >>"/dev/stderr" }
    131 
    132 END {
    133 	for(fname in x) { printf "DEBUG: x[\"%s\"]=\"%s\"\n", fname, x[fname] >"/dev/stderr" }
    134 	retcode = 0
    135 	for(fname in x) {
    136 		if(x[fname]) {
    137 			printf "ERROR: missing expected file \"%s\"\n", fname >"/dev/stderr"
    138 			retcode = 3
    139 		}
    140 	}
    141 	exit retcode
    142 }' >.install-links.new
    143 mv .install-links.new .install-links
    144