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://doi.org/10.5281/zenodo.7598147
24 January 2025, 17:47:27 UTC
  • Code
  • Branches (0)
  • Releases (1)
  • Visits
    • Branches
    • Releases
      • 1
      • 1
    • b7dd6cb
    • /
    • VatsalSy-Drop-impact-on-viscous-liquid-films-ede5d66
    • /
    • reset_install_requirements.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
    • snapshot
    • release
    origin badgecontent badge Iframe embedding
    swh:1:cnt:a386ed530c990e7210e00d8d6ba4e2f2bd63d081
    origin badgedirectory badge Iframe embedding
    swh:1:dir:227c859cec7f5cca74335ab15d062c9ccbeae9fe
    origin badgesnapshot badge
    swh:1:snp:08e0bbb16876ed0ae34157161c40a1104822baa3
    origin badgerelease badge
    swh:1:rel:44ccb7cd690919e3be4788e53b5de17d7b02b330

    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
    • snapshot
    • release
    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 ...
    reset_install_requirements.sh
    #!/bin/zsh
    # tested on MacOS only. Let us know if you find issues running with Linux by opening an issue. 
    # modify using http://basilisk.fr/src/INSTALL 
    # ensures that we are always using the latest version of basilisk
    
    # Check if --hard flag is passed
    HARD_RESET=false
    if [[ "$1" == "--hard" ]]; then
        HARD_RESET=true
    fi
    
    # Function to install basilisk
    install_basilisk() {
        darcs clone http://basilisk.fr/basilisk
        cd basilisk/src
    
        if [[ "$OSTYPE" == "darwin"* ]]; then
            echo "Using MacOS"
            ln -s config.osx config
        else
            echo "Using Linux"
            ln -s config.gcc config
        fi
        make
    }
    
    # Remove project config always
    rm -rf .project_config
    
    # Check if basilisk needs to be installed
    if [[ "$HARD_RESET" == true ]] || [[ ! -d "basilisk" ]]; then
        echo "Installing basilisk..."
        rm -rf basilisk
        install_basilisk
    else
        echo "Using existing basilisk installation..."
        cd basilisk/src
    fi
    
    # Setup environment variables
    echo "export BASILISK=$PWD" >> ../../.project_config
    echo "export PATH=\$PATH:\$BASILISK" >> ../../.project_config
    
    source ../../.project_config
    
    # Check if qcc is working properly
    echo "\nChecking qcc installation..."
    if ! qcc --version > /dev/null 2>&1; then
        echo "\033[0;31mError: qcc is not working properly.\033[0m"
        echo "Please ensure you have Xcode Command Line Tools installed."
        echo "You can install them by running: xcode-select --install"
        echo "For more details, visit: http://basilisk.fr/src/INSTALL"
        exit 1
    else
        echo "\033[0;32mqcc is properly installed.\033[0m"
        qcc --version
    fi
    

    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