summaryrefslogtreecommitdiff
path: root/fml/utils
diff options
context:
space:
mode:
authorfukachan <fukachan>2001-11-18 02:44:12 +0000
committerfukachan <fukachan>2001-11-18 02:44:12 +0000
commit432cb9f419ef9ed5ac0bc0dfc0272e2982884dca (patch)
tree93cd5882e8da905401271c47479d39471b2de02a /fml/utils
parent5613c6a8cdce17596e3bfe7337e3bea672bc9786 (diff)
downloadfml8-432cb9f419ef9ed5ac0bc0dfc0272e2982884dca.tar.gz
fml8-432cb9f419ef9ed5ac0bc0dfc0272e2982884dca.tar.bz2
fml8-432cb9f419ef9ed5ac0bc0dfc0272e2982884dca.zip
make fml/etc/paths.cf.in from configure.in
Diffstat (limited to 'fml/utils')
-rwxr-xr-xfml/utils/bin/gen_paths.cf.pl19
1 files changed, 19 insertions, 0 deletions
diff --git a/fml/utils/bin/gen_paths.cf.pl b/fml/utils/bin/gen_paths.cf.pl
new file mode 100755
index 00000000..deead618
--- /dev/null
+++ b/fml/utils/bin/gen_paths.cf.pl
@@ -0,0 +1,19 @@
+#!/usr/bin/env perl
+#
+# $FML$
+#
+
+print "#\n";
+print "# \$FML\$\n";
+print "#\n";
+print "\n";
+
+while (<>) {
+ if (/dnl path_check/ .. /dnl path_check_end/) {
+ if (/AC_PATH_PROG\(([\w\d]+),\s*([\w\d]+)\)/) {
+ printf "path_%-20s = \@%s\@\n\n", $2, $1;
+ }
+ }
+}
+
+exit 0;