Skip to Content.
Sympa Menu

sm-commit - [SM-Commit] BZR Change 15 to stage-root sorcery by David Brown <dmlb2000@dmlb2004>

sm-commit AT lists.ibiblio.org

Subject: Source Mage code commit list

List archive

Chronological Thread  
  • From: bzr AT mail.sourcemage.org
  • To: sm-commit AT lists.ibiblio.org
  • Subject: [SM-Commit] BZR Change 15 to stage-root sorcery by David Brown <dmlb2000@dmlb2004>
  • Date: Wed, 12 Apr 2006 16:25:05 -0500

------------------------------------------------------------
revno: 15
committer: David Brown <dmlb2000@dmlb2004>
branch nick: stage-root
timestamp: Wed 2006-04-12 11:59:22 -0700
message:
updated confmeld to run through all the configs in the staged config
directory
pretty basic now, go thru everything if the regular file exists in the
staged
directory call install_config_file on the damn thing

but I need to do a tablet_set_spell or something before because
install_config_file needs that stuff

=== modified file 'usr/sbin/confmeld'
--- usr/sbin/confmeld
+++ usr/sbin/confmeld
@@ -49,6 +49,18 @@
}

#--------------------------------------------------------------------
+## list all spells that have staged configs
+##
+## @stdout list of spells that have staged configs
+#--------------------------------------------------------------------
+function all_spells_with_staged_configs()
+{
+ all_config_files |
+ sed "s#$CONFIG_STAGE_DIRECTORY/##g" |
+ cut -d/ -f1 | uniq
+}
+
+#--------------------------------------------------------------------
## Main
##
## No real arguments get all the config files and start installing
@@ -57,12 +69,11 @@
function main()
{
local target
- all_config_files |
+ all_config_files |
while read file
do
- target=${file/$CONFIG_STAGE_DIRECTORY/}
- target=${target%.*}
- if [[ -f $file ]]
+ target=$(echo $file | sed
"s#^$CONFIG_STAGE_DIRECTORY/[[:alpha:]]*/[[:alnum:]]*##g")
+ if [[ -f $file && $target ]]
then
install_config_file $file $target
fi




  • [SM-Commit] BZR Change 15 to stage-root sorcery by David Brown <dmlb2000@dmlb2004>, bzr, 04/12/2006

Archive powered by MHonArc 2.6.24.

Top of Page