OSDN Git Service
(root)
/
portsreinstall
/
current.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[IMPROVED] Adapt to the behavior change grep(1) as of 12.0-RELEASE that the case...
[portsreinstall/current.git]
/
lib
/
chroot
/
liboptions.sh
diff --git
a/lib/chroot/liboptions.sh
b/lib/chroot/liboptions.sh
index
7c73343
..
fe42fb3
100644
(file)
--- a/
lib/chroot/liboptions.sh
+++ b/
lib/chroot/liboptions.sh
@@
-9,7
+9,7
@@
# ============= Database of options which are given at each run and not saved =============
# [Syntax of option databases]
# ============= Database of options which are given at each run and not saved =============
# [Syntax of option databases]
-# short_name, long_name, variable, def
ult_vaul
e, set_value
+# short_name, long_name, variable, def
ault_valu
e, set_value
# Columns are delimited by tab characters.
options_db_onetime ()
{
# Columns are delimited by tab characters.
options_db_onetime ()
{
@@
-43,8
+43,16
@@
s share-port-pkgs-dirs opt_share_port_pkgs_dirs no yes
eof
}
eof
}
-# =============
Regularize the option value
=============
-options_
regularize
()
+# =============
Definitions of value regulator functions
=============
+options_
db_value_regulators
()
{
{
- opt_basedir=`fs_global_path "$opt_basedir"`
+ cat << eof
+opt_basedir options_regularize_to_global_path
+eof
+}
+
+# ============= Regularize a value of an option value: conversion of a oath into the global path =============
+options_regularize_to_global_path ()
+{
+ fs_global_path "$1"
}
}