relpipe-data/examples/release-v0.18.sh
branchv_0
changeset 329 5bc2bb8b7946
parent 323 e2d607e4a4f4
equal deleted inserted replaced
328:cc60c8dd7924 329:5bc2bb8b7946
    11 	RELPIPE_DEPENDENCIES+=(libjack-jackd2-dev)                                  # needed only for relpipe-in-jack and relpipe-out-jack modules; Jack1 should also work
    11 	RELPIPE_DEPENDENCIES+=(libjack-jackd2-dev)                                  # needed only for relpipe-in-jack and relpipe-out-jack modules; Jack1 should also work
    12 	RELPIPE_DEPENDENCIES+=(libxi-dev libxtst-dev)                               # needed only for relpipe-in-x11 and relpipe-out-x11
    12 	RELPIPE_DEPENDENCIES+=(libxi-dev libxtst-dev)                               # needed only for relpipe-in-x11 and relpipe-out-x11
    13 	RELPIPE_DEPENDENCIES+=(libzbar-dev libmagick++-dev)                         # needed only for relpipe-in-barcode and the barcode-reader streamlet
    13 	RELPIPE_DEPENDENCIES+=(libzbar-dev libmagick++-dev)                         # needed only for relpipe-in-barcode and the barcode-reader streamlet
    14 	RELPIPE_DEPENDENCIES+=(libgumbo-dev)                                        # needed only for relpipe-in-htmltable
    14 	RELPIPE_DEPENDENCIES+=(libgumbo-dev)                                        # needed only for relpipe-in-htmltable
    15 	RELPIPE_DEPENDENCIES+=(libyaml-dev)                                         # needed only for relpipe-in-yaml, relpipe-in-yamltable, relpipe-in-json and relpipe-in-jsontable
    15 	RELPIPE_DEPENDENCIES+=(libyaml-dev)                                         # needed only for relpipe-in-yaml, relpipe-in-yamltable, relpipe-in-json and relpipe-in-jsontable
       
    16 	RELPIPE_DEPENDENCIES+=(libcbor-dev)                                         # needed only for relpipe-in-cbortable
    16 	RELPIPE_DEPENDENCIES+=(libvmime-dev)                                        # needed only for relpipe-in-mimetable
    17 	RELPIPE_DEPENDENCIES+=(libvmime-dev)                                        # needed only for relpipe-in-mimetable
    17 	apt install "${RELPIPE_DEPENDENCIES[@]}"
    18 	apt install "${RELPIPE_DEPENDENCIES[@]}"
    18 	exit;
    19 	exit;
    19 fi
    20 fi
    20 
    21 
    21 # Run rest of installation as a non-root user:
    22 # Run rest of installation as a non-root user:
    22 export RELPIPE_VERSION="v0.18"
    23 export RELPIPE_VERSION=${RELPIPE_VERSION:-"v0.18"}
    23 export RELPIPE_VERSION="tip" # FIXME: v0.18
       
    24 export RELPIPE_SRC=~/src
    24 export RELPIPE_SRC=~/src
    25 export RELPIPE_BUILD=~/build
    25 export RELPIPE_BUILD=~/build
    26 export RELPIPE_INSTALL=~/install
    26 export RELPIPE_INSTALL=~/install
    27 export PKG_CONFIG_PATH="$RELPIPE_INSTALL/lib/pkgconfig/:$PKG_CONFIG_PATH"
    27 export PKG_CONFIG_PATH="$RELPIPE_INSTALL/lib/pkgconfig/:$PKG_CONFIG_PATH"
    28 export PATH="$RELPIPE_INSTALL/bin:$PATH"
    28 export PATH="$RELPIPE_INSTALL/bin:$PATH"
    34 relpipe_download() { for m in "$@"; do cd "$RELPIPE_SRC" && ([[ -d "relpipe-$m.cpp" ]] && hg pull -R "relpipe-$m.cpp" && hg update -R "relpipe-$m.cpp" "$RELPIPE_VERSION" || hg clone -u "$RELPIPE_VERSION" https://hg.globalcode.info/relpipe/relpipe-$m.cpp) || break; done; }
    34 relpipe_download() { for m in "$@"; do cd "$RELPIPE_SRC" && ([[ -d "relpipe-$m.cpp" ]] && hg pull -R "relpipe-$m.cpp" && hg update -R "relpipe-$m.cpp" "$RELPIPE_VERSION" || hg clone -u "$RELPIPE_VERSION" https://hg.globalcode.info/relpipe/relpipe-$m.cpp) || break; done; }
    35 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; }
    35 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; }
    36 
    36 
    37 RELPIPE_LIBS=(lib-common lib-reader lib-writer lib-cli lib-xmlwriter)
    37 RELPIPE_LIBS=(lib-common lib-reader lib-writer lib-cli lib-xmlwriter)
    38 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)
    38 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)
    39 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
    39 RELPIPE_TOOLS+=(in-asn1 in-asn1table in-barcode in-cbortable in-htmltable in-ini in-initable in-mimetable in-x11 in-yaml in-yamltable out-ini out-x11 out-yaml tr-infertypes tr-xpath) # since v0.18
    40 # RELPIPE_TOOLS+=(out-gui.qt tr-python) # not enabled by default
    40 # RELPIPE_TOOLS+=(out-gui.qt tr-python) # not enabled by default
    41 
    41 
    42 
    42 
    43 # Download all sources:
    43 # Download all sources:
    44 relpipe_download "${RELPIPE_LIBS[@]}" "${RELPIPE_TOOLS[@]}"
    44 relpipe_download "${RELPIPE_LIBS[@]}" "${RELPIPE_TOOLS[@]}"
    63 unset -v RELPIPE_VERSION
    63 unset -v RELPIPE_VERSION
    64 unset -v RELPIPE_SRC
    64 unset -v RELPIPE_SRC
    65 unset -v RELPIPE_BUILD
    65 unset -v RELPIPE_BUILD
    66 unset -v RELPIPE_INSTALL
    66 unset -v RELPIPE_INSTALL
    67 
    67 
    68 # List available JACK ports (the JACK daemon should be running):
    68 # List mice, keyboards and some fstab entries:
    69 relpipe-in-jack --list-ports true --list-midi-messages false | relpipe-out-tabular
    69 (relpipe-in-fstab ; relpipe-in-x11 2>/dev/null) \
       
    70 	| relpipe-tr-xpath \
       
    71 		--relation 'fstab'             --where 'pass > 1' \
       
    72 		--relation 'x11_input_device'  --where 'type = "keyboard" or type = "mouse"' \
       
    73 	| relpipe-out-tabular