github.com/cockroachdb/pebble@v1.1.1-0.20240513155919-3622ade60459/tool/make_lsm_data.sh (about)

     1  #!/bin/bash
     2  
     3  dest=lsm_data.go
     4  do="DO"
     5  not="NOT"
     6  edit="EDIT"
     7  
     8  cat > ${dest} <<EOF
     9  // Code generated by make_lsm_data.sh; ${do} ${not} ${edit}.
    10  
    11  package tool
    12  
    13  var lsmDataCSS = \`
    14  EOF
    15  
    16  cat data/lsm.css >> ${dest}
    17  
    18  cat >> ${dest} <<EOF
    19  \`
    20  
    21  var lsmDataJS = \`
    22  EOF
    23  
    24  cat data/lsm.js >> ${dest}
    25  
    26  cat>> ${dest} <<EOF
    27  \`
    28  EOF