[Koha-bugs] [Bug 12061] tmpl_process3.pl new features
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Tue Jun 3 11:03:37 CEST 2014
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=12061
Fridolin SOMERS <fridolyn.somers at biblibre.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #28451|0 |1
is obsolete| |
--- Comment #18 from Fridolin SOMERS <fridolyn.somers at biblibre.com> ---
Created attachment 28645
-->
http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=28645&action=edit
Bug 12061 - tmpl_process3.pl - Include/exclude file by name
This patch adds an option to tmpl_process3.pl
for exclude some files by matching their
names. Also modifies current code to include
only selected files to check only filenames.
Checking is case insensitive !!
To test after patch:
A) Include only 'normarc'
1. create
cd misc/translator
perl tmpl_process3.pl create -i ../../koha-tmpl/opac-tmpl/bootstrap/en -s
normarc.po -r -f normarc
- check provenance of strings
egrep "^#:" normarc.po | cut -d":" -f2 | sort | uniq
- only files with normarc in their names must be present
2. update
perl tmpl_process3.pl update -i ../../koha-tmpl/opac-tmpl/bootstrap/en -s
normarc.po -r -f normarc
- repeat check
3. install
mkdir test
perl tmpl_process3.pl install -i ../../koha-tmpl/opac-tmpl/bootstrap/en -o
./test -s normarc.po -r -f normarc
- check name of created files
rm -rf test normarc.po
B) Exclude
4. create
perl tmpl_process3.pl create -i ../../koha-tmpl/opac-tmpl/bootstrap/en -s
xnormarc.po -r -n normarc
- check provenance
egrep "^#:" xnormarc.po | cut -d":" -f2 | sort | uniq | grep -i normarc
- there must be no results
5. update
perl tmpl_process3.pl update -i ../../koha-tmpl/opac-tmpl/bootstrap/en -s
xnormarc.po -r -n normarc
- check provenance
6. install
mkdir test
perl tmpl_process3.pl install -i ../../koha-tmpl/opac-tmpl/bootstrap/en -o
./test -s xnormarc.po -r -n normarc
- check files
find test | grep -i normarc
- there must be no results
You can also try another combination, use for example "-f patron -f user -f
bottom" (or use -n)
or mixed "-f marc -n normarc", do create/install and look filenames
Changed to adapt current functionality (-f)
http://bugs.koha-community.org/show_bug.cgi?id=12292
Signed-off-by: Fridolin Somers <fridolin.somers at biblibre.com>
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list