[Ultrapossum-cvs 935] ultrapossum/module 1.5,1.6,ultrapossum.am.in

Back to archive index

Masato Taruishi taru****@users*****
2004年 10月 19日 (火) 17:32:52 JST


===================================================================
RCS file: ultrapossum/module/ultrapossum.am.in,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -r1.5 -r1.6
--- ultrapossum/module/ultrapossum.am.in	2004/10/09 06:40:13	1.5
+++ ultrapossum/module/ultrapossum.am.in	2004/10/19 08:32:52	1.6
@@ -17,11 +17,14 @@
 modulesysconfdir = @sysconfdir@/@PACKAGE@/module.d/
 testdir = $(libdir)/@PACKAGE@/test/test.d/
 
-variable_DATA = variable-$(modulename) pysical-$(modulename) logical-$(modulename)
+mkvariable=$(shell if test -x "@top_srcdir@/mkvariable"; then echo "@top_srcdir@/mkvariable"; else echo "@datadir@/@PACKAGE@/mkvariable"; fi )
+
+variable_DATA = variable-$(modulename) pysical-$(modulename) logical-$(modulename) secret-$(modulename)
 $(variable_DATA): $(module_DATA)
-	egrep "[A-Z_][A-Z_]*=" $(srcdir)/$(module_DATA) | cut -d= -f1 | grep -v IFS | tr -d '# ' | sort | uniq > variable-$(modulename)
-	egrep "[A-Z_][A-Z_]*=" $(srcdir)/$(module_DATA) | grep ultrapossum_getconf | cut -d= -f1 | grep -v IFS | tr -d '# ' | sort | uniq > pysical-$(modulename)
-	diff variable-$(modulename) pysical-$(modulename) | egrep "^< " | cut -d' ' -f2 > logical-$(modulename)
+	$(mkvariable) variable $(srcdir)/$(module_DATA) > variable-$(modulename)
+	$(mkvariable) pysical $(srcdir)/$(module_DATA) > pysical-$(modulename)
+	$(mkvariable) logical $(srcdir)/$(module_DATA) > logical-$(modulename)
+	$(mkvariable) secret $(srcdir)/$(module_DATA) > secret-$(modulename)
 
 CLEANFILES = $(variable_DATA)
 



Ultrapossum-cvs メーリングリストの案内
Back to archive index