diff --git a/ci@regen b/ci@regen index 98fb88a..864cfe0 100644 --- a/ci@regen +++ b/ci@regen @@ -1,8 +1,7 @@ #!/bin/sh -CMI_CONF_PATH=/etc/ci -CONF_PATH=.comicinfo +ETC=/etc/ci +CONF=.comicinfo FILE=ComicInfo.xml -VARS=$CMI_CONF_PATH/vars -cat $VARS|while read in; do cat $FILE|grep "<$in>"|sed "s@ @@g"|sed "s@<$in>@@g"|sed "s@@@g" > $CONF_PATH/"${in}"; done +VARS=$ETC/vars +cat $VARS|while read in; do cat $FILE|grep "^<$in>"|sed "s@ @@g"|sed "s@<$in>@@g"|sed "s@@@g" > $CONF/"${in}"; done for file in .comicinfo/*; do if [ "$(cat $file)" = "" ]; then rm -v $file; fi; done -