Mercurial > hgrepos > FreeBSD > ports > sysutils > local-bsdtools
comparison bin/check-ports @ 101:bf8f0aa3c698
Docu: get_mapping() is documented now
| author | Franz Glasner <fzglas.hg@dom66.de> |
|---|---|
| date | Wed, 25 Sep 2019 09:44:04 +0200 |
| parents | a9324638b70e |
| children | 91fb0af73fce |
comparison
equal
deleted
inserted
replaced
| 100:a9324638b70e | 101:bf8f0aa3c698 |
|---|---|
| 255 EOF223 | 255 EOF223 |
| 256 return 2 | 256 return 2 |
| 257 } | 257 } |
| 258 | 258 |
| 259 get_mapping() { | 259 get_mapping() { |
| 260 : 'Determine whether a package `_package` is essentially the same as | |
| 261 another package. | |
| 262 | |
| 263 Args: | |
| 264 _package: the new name of the package | |
| 265 | |
| 266 Returns: | |
| 267 0 when a package mapping has been found, 1 otherwise | |
| 268 | |
| 269 Output (Globals): | |
| 270 mapped_package_name: the name of the package on which `_package` is | |
| 271 based on | |
| 272 | |
| 273 This command reads from the mapping database in in file | |
| 274 `/usr/local/etc/local-bsdtools/package-mapping.conf`. | |
| 275 Example:: | |
| 276 | |
| 277 # | |
| 278 # _package mapped_package_name | |
| 279 # | |
| 280 fmg-nextcloud-php71 nextcloud-php71 | |
| 281 fmg-nextcloud-twofactor_totp-php71 nextcloud-twofactor_totp-php71 | |
| 282 | |
| 283 ' | |
| 260 local _package _n _mapped | 284 local _package _n _mapped |
| 261 | 285 |
| 262 _package=$1 | 286 _package=$1 |
| 263 | 287 |
| 264 if [ -r "${PACKAGE_MAPPING}" ] ; then | 288 if [ -r "${PACKAGE_MAPPING}" ] ; then |
