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

https://github.com/rgcmaack/PLMSS-Replicability-Stamp
08 April 2023, 11:44:49 UTC
  • Code
  • Branches (2)
  • Releases (0)
  • Visits
    • Branches
    • Releases
    • HEAD
    • refs/heads/NoSSE42
    • refs/heads/master
    No releases to show
  • ccbfbf6
  • /
  • Ubuntu-20.04.6
  • /
  • install-helper
Raw File Download
Take a new snapshot of a software origin

If the archived software origin currently browsed is not synchronized with its upstream version (for instance when new commits have been issued), you can explicitly request Software Heritage to take a new snapshot of it.

Use the form below to proceed. Once a request has been submitted and accepted, it will be processed as soon as possible. You can then check its processing state by visiting this dedicated page.
swh spinner

Processing "take a new snapshot" request ...

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
origin badgecontent badge Iframe embedding
swh:1:cnt:bfc64d97d7db23a5f42d06d74a87048ec34612fd
origin badgedirectory badge Iframe embedding
swh:1:dir:9d6c728ae269eeb96648a3ba021fef38835e7229
origin badgerevision badge
swh:1:rev:dbb783a7ac1659cb55cb10088198b27888a09daf
origin badgesnapshot badge
swh:1:snp:42779903fe10aaf33066eb2132eb35b954ca50d9

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
Generate software citation in BibTex format (requires biblatex-software package)
Generating citation ...
Generate software citation in BibTex format (requires biblatex-software package)
Generating citation ...
Generate software citation in BibTex format (requires biblatex-software package)
Generating citation ...
Generate software citation in BibTex format (requires biblatex-software package)
Generating citation ...
Tip revision: dbb783a7ac1659cb55cb10088198b27888a09daf authored by Robin Maack on 06 April 2023, 13:04:07 UTC
Added description
Tip revision: dbb783a
install-helper
#!/bin/bash

set -euo pipefail

# --------------------------------------------------------------------------

function require-pkgs() {
    # compute which packages must be newly installed
    # if we simply install existing packages, they might be
    # erroneously removed later
    dpkg-query -f '${db:Status-Abbrev} ${Package}\n' -W \
        | awk '/^ii/ {print $2}' \
        > /tmp/pkgs1

    for pkg in "$@"; 
        do echo ${pkg} >> /tmp/pkgs2; 
    done

    pkgs=$(sort /tmp/pkgs2 | uniq | sort - /tmp/pkgs1 /tmp/pkgs1 | uniq -u | tr '\n' ' '    )

    echo "installing additional build packages: ${pkgs}"
    apt-get -qq -o=Dpkg::Use-Pty=0 --no-install-recommends install ${pkgs}
}

# --------------------------------------------------------------------------

function fetch-src() {
    curl -qL "$1" | tar xz --strip-components 1
}

# --------------------------------------------------------------------------

configure_args=""

function conf_args() {
    configure_args+=" $@"
}

# --------------------------------------------------------------------------

function cmake-default() {
    cmake -B build -S . $@ ${configure_args} 
    cmake --build build
    cmake --install build
}

# --------------------------------------------------------------------------

# build basename
what=$(basename $1 .sh)
echo "---- begin $what ----"

# call build script
_build_dir="/build/${what}"

mkdir -p ${_build_dir}
pushd ${_build_dir} > /dev/null
source $1
popd > /dev/null

# remove build dir and build script
echo "cleaning up build dir"
rm -rf ${_build_dir} $1

echo "collecting shared library dependencies for /usr/local"

update-dlocatedb

(
set +o pipefail

find /usr/local -type f \( -name "*.so" -o -executable \) \
    | file -F" " -f-    \
    | awk '/ELF/ { print $1 }' \
    | xargs ldd \
    | grep -v "not found" \
    | awk '/^\t(.*)=>(.*)/ { print $3 }' \
    | grep -v "^\/usr\/local" \
    | sort | uniq \
    | xargs dlocate -p \
    | sort | uniq \
    > /usr/local/.pkgs
)

echo "---- end $what ----"

back to top

Software Heritage — Copyright (C) 2015–2025, 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