You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
#!/bin/sh
|
|
ETC=/etc/ci
|
|
CONF=.comicinfo
|
|
FILE=ComicInfo.xml
|
|
VARS=$ETC/vars
|
|
cat $VARS|while read in; do cat $FILE|grep "^<$in>"|sed "s@ @@g"|sed "s@<$in>@@g"|sed "s@</$in>@@g" > $CONF/"${in}"; done
|
|
for file in .comicinfo/*; do if [ "$(cat $file)" = "" ]; then rm -v $file; fi; done
|