Skip to main content
  • Home
  • login
  • Browse the archive

    swh mirror partner logo
swh logo
SoftwareHeritage
Software
Heritage
Mirror
Features
  • Search

  • Downloads

  • Save code now

  • Add forge now

  • Help

  • c7b1687
  • /
  • util
  • /
  • ranlib.sh
Raw File
Permalinks

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
content badge Iframe embedding
swh:1:cnt:543f712c6ba7b87fd1036003c339b75462ca29df
directory badge Iframe embedding
swh:1:dir:298e2a1cfdeabc6991af8d2adc8631cd26383ee1
ranlib.sh
#!/bin/sh

cwd=`pwd`
cd /tmp

if [ -s /bin/ranlib ] ; then 
	RL=/bin/ranlib
else if [ -s /usr/bin/ranlib ] ; then
	RL=/usr/bin/ranlib
fi
fi

if [ "x$RL" != "x" ]
then
	case "$1" in
		/*)  
		$RL "$1"
		;;
		*)
		$RL "$cwd/$1"
		;;
	esac
fi

ENEA — Copyright (C), ENEA. License: GNU AGPLv3+.
Legal notes  ::  JavaScript license information ::  Web API

back to top