From 08be8e33e55ada3f15ef1c8b49572f7e783325f0 Mon Sep 17 00:00:00 2001 From: P. J. McDermott Date: Thu, 04 Oct 2012 19:16:46 -0400 Subject: Implement _ob_get_system_path_proteanos(). --- (limited to 'lib/metadata') diff --git a/lib/metadata/proteanos.sh b/lib/metadata/proteanos.sh index acc80a3..17198e7 100644 --- a/lib/metadata/proteanos.sh +++ b/lib/metadata/proteanos.sh @@ -110,3 +110,53 @@ _ob_get_system_plat_proteanos() _ob_return 0 return ${?} } + +_ob_get_system_path_proteanos() +{ + _ob_local _obgsppro_path_id + + _obgsppro_path_id="${1}" + shift 1 + + case "${_obgsppro_path_id}" in + 'package-source') + # source version + if [ ${#} -eq 2 ]; then + printf '/usr/src/%s_%s' "${1}" "${2}" + else + _ob_return 125 + return ${?} + fi + ;; + 'package-docs') + # source version + if [ ${#} -eq 2 ]; then + printf '/usr/share/doc/%s' "${1}" + else + _ob_return 125 + return ${?} + fi + ;; + 'buildflags') + # arch + if [ ${#} -eq 1 ]; then + printf '/usr/share/opkbuild/buildflags/%s' "${1}" + else + _ob_return 125 + return ${?} + fi + ;; + 'platconf') + # source version plat + if [ ${#} -eq 3 ]; then + printf '/usr/share/platconf/%s/%s' "${3}" "${1}" + else + _ob_return 125 + return ${?} + fi + ;; + esac + + _ob_return 0 + return ${?} +} -- cgit v0.9.1