Permalink
Browse files

Change chapter names of xml files (O'Reilly prod change).

  • Loading branch information...
1 parent 6aa4add commit 472f6a86ed5865de2abde79eed1c267d0621ed00 @tomwhite committed Feb 4, 2015
Showing with 19 additions and 19 deletions.
  1. +3 −3 snippet/bin/check_manuscript.sh
  2. +10 −10 snippet/bin/generate_listings.sh
  3. +3 −3 snippet/bin/grunter.sh
  4. +3 −3 snippet/bin/hiver.sh
@@ -6,7 +6,7 @@ bin=`cd "$bin"; pwd`
actual="$bin"/../actual
book_workspace=~/book-workspace/htdg-git
-for ch in ch02-mr-intro ch03-hdfs ch05-io ch06-mr-dev ch08-mr-types ch09-mr-features ch16-pig ch17-hive ch21-zk
+for ch in ch02 ch03 ch05 ch06 ch08 ch09 ch16 ch17 ch21
do
# remove id and language attributes from program listings, and add a newline before </programlisting>
sed '/<programlisting/s/ id="[^"]*"//; /<programlisting/s/ language="[^"]*"//; s|</programlisting>|\
@@ -16,8 +16,8 @@ done
# Avro check
sed -e '/<programlisting/s/ id="[^"]*"//; /<programlisting/s/ language="[^"]*"//; s|</programlisting>|\
-</programlisting>|' $book_workspace/ch12-avro.xml > /tmp/ch12-avro.xml
-$bin/check_manuscript.py /tmp/ch12-avro.xml $actual/ch12-avro/*
+</programlisting>|' $book_workspace/ch12.xml > /tmp/ch12.xml
+$bin/check_manuscript.py /tmp/ch12.xml $actual/ch12/*
# Common check
$bin/check_manuscript.py /tmp/ch08-mr-types.xml $actual/common/*
@@ -6,14 +6,14 @@ bin=`cd "$bin"; pwd`
actual="$bin"/../actual
-perl $bin/phragmite_db.pl $actual/ch02-mr-intro/ $(grep -ElR '(// ?cc|// ?==)' --include '*.java' $bin/../../ch02-mr-intro)
-perl $bin/phragmite_db.pl $actual/ch03-hdfs/ $(grep -ElR '(// ?cc|// ?==)' --include '*.java' $bin/../../ch03-hdfs)
-perl $bin/phragmite_db.pl $actual/ch05-io/ $(grep -ElR '(// ?cc|// ?==)' --include '*.java' $bin/../../ch05-io)
-perl $bin/phragmite_db.pl $actual/ch12-avro/ $(grep -ElR '(// ?cc|// ?==)' --include '*.java' $bin/../../ch12-avro)
-perl $bin/phragmite_db.pl $actual/ch06-mr-dev/ $(grep -ElR '(// ?cc|// ?==)' --include '*.java' $bin/../../ch06-mr-dev)
-perl $bin/phragmite_db.pl $actual/ch06-mr-dev/ $bin/../../../hadoop-book-mr-dev/pom.xml
-perl $bin/phragmite_db.pl $actual/ch06-mr-dev/ $bin/../../ch06-mr-dev/src/main/resources/max-temp-workflow/workflow.xml
-perl $bin/phragmite_db.pl $actual/ch08-mr-types/ $(grep -ElR '(// ?cc|// ?==)' --include '*.java' $bin/../../ch08-mr-types)
+perl $bin/phragmite_db.pl $actual/ch02/ $(grep -ElR '(// ?cc|// ?==)' --include '*.java' $bin/../../ch02-mr-intro)
+perl $bin/phragmite_db.pl $actual/ch03/ $(grep -ElR '(// ?cc|// ?==)' --include '*.java' $bin/../../ch03-hdfs)
+perl $bin/phragmite_db.pl $actual/ch05/ $(grep -ElR '(// ?cc|// ?==)' --include '*.java' $bin/../../ch05-io)
+perl $bin/phragmite_db.pl $actual/ch12/ $(grep -ElR '(// ?cc|// ?==)' --include '*.java' $bin/../../ch12-avro)
+perl $bin/phragmite_db.pl $actual/ch06/ $(grep -ElR '(// ?cc|// ?==)' --include '*.java' $bin/../../ch06-mr-dev)
+perl $bin/phragmite_db.pl $actual/ch06/ $bin/../../../hadoop-book-mr-dev/pom.xml
+perl $bin/phragmite_db.pl $actual/ch06/ $bin/../../ch06-mr-dev/src/main/resources/max-temp-workflow/workflow.xml
+perl $bin/phragmite_db.pl $actual/ch08/ $(grep -ElR '(// ?cc|// ?==)' --include '*.java' $bin/../../ch08-mr-types)
perl $bin/phragmite_db.pl $actual/common/ $(grep -ElR '(// ?cc|// ?==)' --include '*.java' $bin/../../common)
-perl $bin/phragmite_db.pl $actual/ch09-mr-features/ $(grep -ElR '(// ?cc|// ?==)' --include '*.java' $bin/../../ch09-mr-features)
-perl $bin/phragmite_db.pl $actual/ch21-zk/ $(grep -ElR '(// ?cc|// ?==)' --include '*.java' $bin/../../ch21-zk)
+perl $bin/phragmite_db.pl $actual/ch09/ $(grep -ElR '(// ?cc|// ?==)' --include '*.java' $bin/../../ch09-mr-features)
+perl $bin/phragmite_db.pl $actual/ch21/ $(grep -ElR '(// ?cc|// ?==)' --include '*.java' $bin/../../ch21-zk)
View
@@ -10,8 +10,8 @@ actual="$bin"/../actual
cd "$bin"/../..
-rm -rf $actual/ch16-pig
-mkdir -p $actual/ch16-pig
+rm -rf $actual/ch16
+mkdir -p $actual/ch16
for f in ch16-pig/src/main/grunt/*.grunt; do
out=$f.output.txt
@@ -26,7 +26,7 @@ for f in ch16-pig/src/main/grunt/*.grunt; do
-e 's|^\(&gt;&gt; \)\(.*\)|<prompt moreinfo="none">\1</prompt><userinput moreinfo="none">\2</userinput>|' \
> $out
cat $out
- python "$bin"/phragmite_pig.py $out $actual/ch16-pig
+ python "$bin"/phragmite_pig.py $out $actual/ch16
rm $out
done
View
@@ -14,8 +14,8 @@ actual="$bin"/../actual
cd "$bin"/../..
-#rm -rf $actual/ch17-hive
-mkdir -p $actual/ch17-hive
+#rm -rf $actual/ch17
+mkdir -p $actual/ch17
for f in ch17-hive/src/main/hive/*.hive; do
out=$f.output.txt
@@ -35,7 +35,7 @@ for f in ch17-hive/src/main/hive/*.hive; do
> $out
cat $out
- python "$bin"/phragmite_hive.py $out $actual/ch17-hive
+ python "$bin"/phragmite_hive.py $out $actual/ch17
rm $out
done

0 comments on commit 472f6a8

Please sign in to comment.