lmi-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[lmi-commits] [6372] Add some useful commands


From: Greg Chicares
Subject: [lmi-commits] [6372] Add some useful commands
Date: Wed, 21 Oct 2015 14:28:23 +0000

Revision: 6372
          http://svn.sv.gnu.org/viewvc/?view=rev&root=lmi&revision=6372
Author:   chicares
Date:     2015-10-21 14:28:22 +0000 (Wed, 21 Oct 2015)
Log Message:
-----------
Add some useful commands

Modified Paths:
--------------
    lmi/trunk/gwc/develop1.txt

Modified: lmi/trunk/gwc/develop1.txt
===================================================================
--- lmi/trunk/gwc/develop1.txt  2015-10-21 14:11:31 UTC (rev 6371)
+++ lmi/trunk/gwc/develop1.txt  2015-10-21 14:28:22 UTC (rev 6372)
@@ -124,6 +124,17 @@
 cd /opt/lmi/touchstone
 for z in *; do cmp --quiet $z ../test/$z || ( mv $z 
../touchstone_intermediate_eraseme/$z; mv ../test/$z ./$z; ) ; done
 
+  # Validate xrc files
+
+export jar_dir=/opt/lmi/third_party/rng
+java -jar $jar_dir/jing.jar -c xrc.rnc *.xrc 2>&1 |less -S -N
+
+  # Expose menu-toolbar dissimilarities: expect zero lines on stdout
+
+<toolbar.xrc sed -e'/^        /!d' -e'N;N;s/\n//g' -e's/^        //' 
-e's/tooltip/label/g' -e's/longhelp/help/g' |sort >/tmp/t.txt
+<menus.xrc sed -e'/<label>/s/_//' -e'/<label>/s/\\t.*</</' -e '/^        
<\(label\|bitmap\|help\)/!d' -e'N;N;s/\n//g' -e'/object/d' -e's/^        //' 
-e's/platform="win" //' -e's/Contents/Help/' -e's/\.\.\.</</' |sort | uniq 
>/tmp/m.txt
+diff --unified=0 /tmp/m.txt /tmp/t.txt |sed -e'/^[+][+][+]/d' -e'/^@/d' 
-e'/^-/d'
+
   # Test xml schemata
 
 pushd /tmp; /lmi/src/lmi/test_schemata.sh >/lmi/src/log 2>&1; popd
@@ -148,3 +159,23 @@
 
 ./lmi_wx_shared --ash_nazg --data_path=/opt/lmi/data --pyx=show_mvc_dims
 
+  # Test all valid emission types
+
+pushd /opt/lmi/bin
+./lmi_cli_shared --file=sample.ill --accept --ash_nazg 
--data_path=/opt/lmi/data 
--emit=emit_pdf_file,emit_test_data,emit_spreadsheet,emit_text_stream,emit_custom_0,emit_custom_1
  2>&1 |less -S
+./lmi_cli_shared --file=sample.cns --accept --ash_nazg 
--data_path=/opt/lmi/data 
--emit=emit_pdf_file,emit_test_data,emit_spreadsheet,emit_group_roster,emit_text_stream,emit_custom_0,emit_custom_1
  2>&1 |less -S
+popd
+
+  # Miscellany (no particular screen)
+
+cd /lmi/src/lmi
+
+  # Identify source files not encoded compatibly with UTF-8
+
+for z in *.?pp; (iconv -f UTF-8 -t UTF-8 $z &>/dev/null || echo $z)
+
+  # Convert to UTF-8
+
+cp -a product_data.cpp eraseme
+iconv -f ISO-8859-1 -t UTF-8 eraseme > product_data.cpp
+




reply via email to

[Prev in Thread] Current Thread [Next in Thread]