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:fc5be6ea36d914a465ae83272994afb6f8ba2d7d
  • Code
  • Branches (0)
  • Releases (4)
    • Branches
    • Releases
      • 4
      • 4
      • 3
      • 2
      • 1
    • c501fcf
    • /
    • rubenarslan-formr.org-0797b20
    • /
    • Makefile
    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
    content badge Iframe embedding
    swh:1:cnt:a6c8a7f286ce4b85f89a1e3389034f0d9ec773c3
    directory badge Iframe embedding
    swh:1:dir:a4f1bf3ec890c395b3ff7526e731387c533a85bd
    snapshot badge
    swh:1:snp:fc5be6ea36d914a465ae83272994afb6f8ba2d7d
    release badge
    swh:1:rel:bce81870630aa4105bba65651a8ea173973c44c0

    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 ...
    Makefile
    # [formr.org]
    
    FORMR_DIR?=/var/www/formr
    INSTALL_DIR=$(CTSR_ROOT)$(FORMR_DIR)
    CONFIG_DIR=$(INSTALL_DIR)/config
    CRON_TAB=$(INSTALL_DIR)/config/formr_crontab
    SYS_CRON_TAB=$(CTSR_ROOT)/etc/cron.d/formr_crontab
    SMI_CONFIG=/etc/smysqlin/formr.ini
    
    GIT_REPO?=https://github.com/rubenarslan/formr.org.git
    GIT=$(shell echo "git --git-dir=$(INSTALL_DIR)/.git --work-tree=$(INSTALL_DIR)")
    GIT_BRANCH?=master
    
    APACHE_USER?=www-data
    APACHE_GROUP?=www-data
    
    COMPOSER=composer
    
    all: install
    
    install: init init_install install_files install_dependencies clean
    	@echo "formr.org has been installed successfully to $(INSTALL_DIR)."
    	@echo "\nConfigure database and other settings at $(CONFIG_DIR)/settings.php and then activate cron at $(SYS_CRON_TAB)"
    
    install_files:
    	@echo "Installing files .....";
    
    	@install -d -m 0755 $(INSTALL_DIR)
    
    	$(GIT) init
    	$(GIT) remote add origin $(GIT_REPO)
    	$(GIT) pull origin $(GIT_BRANCH)
    
    	install -d -m 0755 $(CONFIG_DIR)
    	chmod 0755 $(INSTALL_DIR)/bin/cron.php
    	[ -d $(CONFIG_DIR) ] && cp -R $(INSTALL_DIR)/config_default/* $(CONFIG_DIR)/
    
    	[ ! -f $(SYS_CRON_TAB) ] && cp $(CRON_TAB) $(SYS_CRON_TAB)
    
    	@echo "File installation.... Done."
    
    install_dependencies:
    	@echo "Installing dependencies ....."
    
    	cd $(INSTALL_DIR) && $(COMPOSER) install
    	@echo "Done"
    
    uninstall:
    	@echo "Uninstalling config files, log directory and app files .....";
    	@rm -rf $(INSTALL_DIR)
    	@rm -rf $(SYS_CRON_TAB)
    	@echo "Done."
    
    update: init update_files clean
    	@echo "Updating.... Done"
    
    update_files:
    	$(GIT) pull origin $(GIT_BRANCH)
    
    	cd $(INSTALL_DIR) && $(COMPOSER) install
    	@chmod 0755 $(INSTALL_DIR)/bin/cron.php
    
    init:
    	@type git >/dev/null 2>&1 || { echo >&2 "'git' is required but it's not installed. Aborting..."; exit 1; }
    	@type composer >/dev/null 2>&1 || { echo >&2 "'composer' is required but it's not installed. Aborting..."; exit 1; }
    
    init_install:
    	@if [ -d $(INSTALL_DIR) ]; then echo "'formr.org' is already installed. Run 'make update' or 'make uninstall' instead. Aborting..."; exit 1; fi
    
    clean:
    	chown -R $(APACHE_USER):$(APACHE_GROUP) $(INSTALL_DIR)
    	@echo "Installation completed..."
    

    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