Skip to main content
  • Home
  • Development
  • Documentation
  • Donate
  • Operational login
  • Browse the archive

swh logo
SoftwareHeritage
Software
Heritage
Archive
Features
  • Search

  • Downloads

  • Save code now

  • Add forge now

  • Help

swh:1:snp:5c760c247cec42eef2064c5ff8a2fde4e71dfb7a
  • Code
  • Branches (1)
  • Releases (1)
    • Branches
    • Releases
    • HEAD
    • refs/heads/main
    • v1.0.0
  • 60be01a
  • /
  • docs
  • /
  • scripts
  • /
  • build_plugin_linux.sh
Raw File Download

To reference or cite the objects present in the Software Heritage archive, permalinks based on SoftWare Hash IDentifiers (SWHIDs) must be used.
Select below a type of object currently browsed in order to display its associated SWHID and permalink.

  • content
  • directory
  • revision
  • snapshot
content badge
swh:1:cnt:1729a901d7628dc22b6a7978f6e11b3f31931d38
directory badge
swh:1:dir:08ef0cf7b60fda093cbbc11510ff1ce9206202c8
revision badge
swh:1:rev:e0203c82702b3dce63effdda1606d58181e829a0
snapshot badge
swh:1:snp:5c760c247cec42eef2064c5ff8a2fde4e71dfb7a

This interface enables to generate software citations, provided that the root directory of browsed objects contains a citation.cff or codemeta.json file.
Select below a type of object currently browsed in order to generate citations for them.

  • content
  • directory
  • revision
  • snapshot
(requires biblatex-software package)
Generating citation ...
(requires biblatex-software package)
Generating citation ...
(requires biblatex-software package)
Generating citation ...
(requires biblatex-software package)
Generating citation ...
Tip revision: e0203c82702b3dce63effdda1606d58181e829a0 authored by Moritz Heinemann on 12 November 2024, 19:30:39 UTC
VofFlow 1.0
Tip revision: e0203c8
build_plugin_linux.sh
#!/bin/bash

# This script is based on the ParaViewEasyPluginBuilder
# https://gitlab.kitware.com/paraview/paraview-easy-plugin-builder

# Create output dir if not exists
if [[ -e plugin_build ]]; then
  echo "Error: Directory 'plugin_build' already exists. Please remove!"
  exit 1
fi
mkdir plugin_build

# Create build script running in the docker container
cat > "plugin_build/run.sh" <<EOF
#!/bin/bash

# Create dirs
mkdir -p /vofflow/src
mkdir -p /vofflow/build

# Download repo
git clone https://github.com/UniStuttgart-VISUS/vof-flow.git /vofflow/src

# Fix CentOS 7 EOL (https://serverfault.com/a/1161847)
sed -i s/mirror.centos.org/vault.centos.org/g /etc/yum.repos.d/CentOS-*.repo
sed -i s/^#.*baseurl=http/baseurl=http/g /etc/yum.repos.d/CentOS-*.repo
sed -i s/^mirrorlist=http/#mirrorlist=http/g /etc/yum.repos.d/CentOS-*.repo

# Install C++17 Compiler
yum -y install devtoolset-9

# Build
PARAVIEW_DIR=\`find /builds/gitlab-kitware-sciviz-ci/build/install/lib/cmake -type d -regex "/builds/gitlab-kitware-sciviz-ci/build/install/lib/cmake/paraview-[0-9,.]*"\`
scl enable devtoolset-9 -- cmake -S /vofflow/src -B /vofflow/build -DParaView_DIR=\$PARAVIEW_DIR -DCMAKE_BUILD_TYPE=Release
scl enable devtoolset-9 -- cmake --build /vofflow/build --parallel 4
scl enable devtoolset-9 -- cmake --install /vofflow/build --prefix /plugin_build

# Cleanup static libs
find /plugin_build -name "*.a" -type f -delete

# Cleanup lib64 > lib
mv /plugin_build/lib64 /plugin_build/lib

# Cleanup file owners
chown -R $(id -u):$(id -g) /plugin_build
EOF
chmod +x "plugin_build/run.sh"

# Execute build in docker
docker run --rm -v "$(pwd)/plugin_build:/plugin_build" kitware/paraview_org-plugin-devel:5.12.0 /bin/bash -c "/plugin_build/run.sh"

# Cleanup
rm "plugin_build/run.sh"

back to top

Software Heritage — Copyright (C) 2015–2026, The Software Heritage developers. License: GNU AGPLv3+.
The source code of Software Heritage itself is available on our development forge.
The source code files archived by Software Heritage are available under their own copyright and licenses.
Terms of use: Archive access, API— Content policy— Contact— JavaScript license information— Web API