# HG changeset patch # User František Kučera # Date 1620511573 -7200 # Node ID e2d607e4a4f488ad9157b26dbd6fc46f6eb9ebab # Parent 060d2590e77c04704d06a010fd2cd9d7157040d6 release-v0.18.sh: run apt install only once + small fixes and improvements diff -r 060d2590e77c -r e2d607e4a4f4 relpipe-data/examples/release-v0.18.sh --- a/relpipe-data/examples/release-v0.18.sh Sat May 08 21:33:15 2021 +0200 +++ b/relpipe-data/examples/release-v0.18.sh Sun May 09 00:06:13 2021 +0200 @@ -1,18 +1,20 @@ # Install dependencies as root: if [[ "$USER" == "root" ]]; then - apt install g++ make cmake mercurial pkg-config - apt install libxerces-c-dev # needed only for relpipe-in-xml module - apt install guile-2.2-dev # needed only for relpipe-tr-scheme module - apt install gawk # needed only for relpipe-tr-awk module - apt install libxml++2.6-dev # needed only for relpipe-in-xmltable module - apt install unixodbc-dev # needed only for relpipe-tr-sql module - apt install libsqliteodbc # needed only for relpipe-tr-sql module if used with SQLite - apt install odbc-postgresql # needed only for relpipe-tr-sql module if used with PostgreSQL - apt install libjack-jackd2-dev # needed only for relpipe-in-jack and relpipe-out-jack modules; Jack1 should also work - apt install libxi-dev libxtst-dev # needed only for relpipe-in-x11 and relpipe-out-x11 - apt install libzbar-dev libmagick++-dev # needed only for relpipe-in-barcode and the barcode-reader streamlet - apt install libgumbo-dev # needed only for relpipe-in-htmltable - apt install libyaml-dev # needed only for relpipe-in-yaml, relpipe-in-yamltable, relpipe-in-json and relpipe-in-jsontable + RELPIPE_DEPENDENCIES=(g++ make cmake mercurial pkg-config) + RELPIPE_DEPENDENCIES+=(libxerces-c-dev) # needed only for relpipe-in-xml module + RELPIPE_DEPENDENCIES+=(guile-2.2-dev) # needed only for relpipe-tr-scheme module + RELPIPE_DEPENDENCIES+=(gawk) # needed only for relpipe-tr-awk module + RELPIPE_DEPENDENCIES+=(libxml++2.6-dev) # needed only for relpipe-in-xmltable module + RELPIPE_DEPENDENCIES+=(unixodbc-dev) # needed only for relpipe-tr-sql module + RELPIPE_DEPENDENCIES+=(libsqliteodbc) # needed only for relpipe-tr-sql module if used with SQLite + RELPIPE_DEPENDENCIES+=(odbc-postgresql) # needed only for relpipe-tr-sql module if used with PostgreSQL + RELPIPE_DEPENDENCIES+=(libjack-jackd2-dev) # needed only for relpipe-in-jack and relpipe-out-jack modules; Jack1 should also work + RELPIPE_DEPENDENCIES+=(libxi-dev libxtst-dev) # needed only for relpipe-in-x11 and relpipe-out-x11 + RELPIPE_DEPENDENCIES+=(libzbar-dev libmagick++-dev) # needed only for relpipe-in-barcode and the barcode-reader streamlet + RELPIPE_DEPENDENCIES+=(libgumbo-dev) # needed only for relpipe-in-htmltable + RELPIPE_DEPENDENCIES+=(libyaml-dev) # needed only for relpipe-in-yaml, relpipe-in-yamltable, relpipe-in-json and relpipe-in-jsontable + RELPIPE_DEPENDENCIES+=(libvmime-dev) # needed only for relpipe-in-mimetable + apt install "${RELPIPE_DEPENDENCIES[@]}" exit; fi @@ -33,8 +35,9 @@ relpipe_install() { for m in "$@"; do cd "$RELPIPE_BUILD" && mkdir -p relpipe-$m.cpp && cd relpipe-$m.cpp && cmake -DCMAKE_INSTALL_PREFIX:PATH="$RELPIPE_INSTALL" "$RELPIPE_SRC/relpipe-$m.cpp" && make && make install || break; done; } RELPIPE_LIBS=(lib-common lib-reader lib-writer lib-cli lib-xmlwriter) -RELPIPE_TOOLS=(in-cli in-fstab in-xml in-xmltable in-csv in-filesystem in-recfile out-gui.qt out-nullbyte out-ods out-tabular out-xml out-csv out-asn1 out-recfile tr-cut tr-grep tr-python tr-sed tr-validator tr-scheme tr-awk tr-sql in-jack out-jack) -RELPIPE_TOOLS+=(in-asn1table in-barcode in-htmltable in-ini in-initable in-json in-jsontable in-mimetable in-x11 in-yaml in-yamltable out-ini out-x11 out-xml out-yaml tr-xpath) # since v0.18 +RELPIPE_TOOLS=(in-cli in-fstab in-xml in-xmltable in-csv in-filesystem in-recfile out-nullbyte out-ods out-tabular out-xml out-csv out-asn1 out-recfile tr-cut tr-grep tr-sed tr-validator tr-scheme tr-awk tr-sql in-jack out-jack) +RELPIPE_TOOLS+=(in-asn1table in-barcode in-htmltable in-ini in-initable in-mimetable in-x11 in-yaml in-yamltable out-ini out-x11 out-yaml tr-xpath) # since v0.18 +# RELPIPE_TOOLS+=(out-gui.qt tr-python) # not enabled by default # Download all sources: