minix/external/mit/xorg/tools/getlibvers
Lionel Sambuc 971bb1a587 Importing external/mit/xorg support rules
Change-Id: Ib11d8659485a444797bf3a2118182a1d4e316b50
2014-11-10 14:43:29 +01:00

29 lines
839 B
Bash
Executable file

#! /bin/sh
list='expat fontconfig freetype libFS libICE libSM libX11 libXScrnSaver libXTrap libXau libXcomposite libXcursor libXdamage libXdmcp libXevie libXext libXfixes libXfont libXft libXi libXinerama libXmu libXp libXpm libXrandr libXrender libXres libXt libXtst libXv libXvMC libXxf86dga libXxf86misc libXxf86vm libdrm libfontenc libxkbfile libxkbui'
DISTFILES=${DISTFILES-/usr/pkgsrc/distfiles}
for dist in $list; do
updist=$(echo $dist | tr a-z A-Z)
tarball=$(cd ${DISTFILES}; echo ${dist}-*tar*)
tarver=${tarball#${dist}-}
ext=bz2
case $tarball in
*.tar.bz2)
ver=${tarver%.tar.bz2}
;;
*.tar.gz)
ext=gz
ver=${tarver%.tar.gz}
;;
*)
ver=x
echo "dunno what $dist is -- $tarball" 1>&2
;;
esac
if [ "$ver" != x ]; then
echo "${updist}_VERSION = ${ver}"
echo "${updist}_EXT = ${ext}"
fi
done