summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorP. J. McDermott <pjm@nac.net>2012-10-04 19:16:46 (EDT)
committer P. J. McDermott <pjm@nac.net>2012-10-04 19:16:46 (EDT)
commit08be8e33e55ada3f15ef1c8b49572f7e783325f0 (patch)
treedd3fcb32b5be072ab64b9b9c77d777a63a1b69da
parent276d68f9e90bf111cf55cf650cb1474547224b09 (diff)
Implement _ob_get_system_path_proteanos().
-rw-r--r--lib/metadata/proteanos.sh50
1 files changed, 50 insertions, 0 deletions
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 ${?}
+}