[Groonga-mysql-commit] mroonga/mroonga [master] don't include generated files.

Back to archive index

null+****@clear***** null+****@clear*****
2011年 11月 7日 (月) 14:18:35 JST


Kouhei Sutou	2011-11-07 05:18:35 +0000 (Mon, 07 Nov 2011)

  New Revision: ea7d019b1fbbad74b7fc2bea34c9ac1d26ea67e1

  Log:
    don't include generated files.

  Modified files:
    test/sql/groonga_storage/r/files.am
    test/sql/update-result-files.sh

  Modified: test/sql/groonga_storage/r/files.am (+1 -1)
===================================================================
--- test/sql/groonga_storage/r/files.am    2011-11-07 05:08:24 +0000 (02f9928)
+++ test/sql/groonga_storage/r/files.am    2011-11-07 05:18:35 +0000 (f82f9db)
@@ -34,7 +34,7 @@ result_files = \
 	hash_index_id_primary.result \
 	hash_index_id_unique.result \
 	hash_index_normal_column_insert.result \
-	information_schema.result \
+	information_schema.result.in \
 	insert.result \
 	last_insert_grn_id.result \
 	log_level.result \

  Modified: test/sql/update-result-files.sh (+10 -1)
===================================================================
--- test/sql/update-result-files.sh    2011-11-07 05:08:24 +0000 (deca217)
+++ test/sql/update-result-files.sh    2011-11-07 05:18:35 +0000 (130e380)
@@ -1,5 +1,14 @@
 #!/bin/sh
 
+remove_generated_path()
+{
+    while read path; do
+	if [ ! -f "$path.in" ]; then
+	    echo "$path"
+	fi
+    done
+}
+
 list_paths()
 {
     variable_name=$1
@@ -12,7 +21,7 @@ list_paths()
     echo
 }
 
-(find . -type f -name '*.result'; \
+(find . -type f -name '*.result' | remove_generated_path; \
  find . -type f -name '*.result.in') | \
     sed -e 's,\./,,' | \
     list_paths "result_files"




Groonga-mysql-commit メーリングリストの案内
Back to archive index