Update of /cvsroot/pclasses/pclasses2
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv20394
Modified Files:
configure.pclasses2
Log Message:
mass commit: commit and toc files i missed...
Index: configure.pclasses2
===================================================================
RCS file: /cvsroot/pclasses/pclasses2/configure.pclasses2,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- configure.pclasses2 22 Dec 2004 22:11:13 -0000 1.1
+++ configure.pclasses2 23 Dec 2004 00:08:42 -0000 1.2
@@ -80,7 +80,6 @@
# toc_test_require create_pkg-config_data
-
###### stuff:
toc_add_config BUILD_USER="$USER"
toc_add_config BUILD_HOST=`hostname`
@@ -89,8 +88,40 @@
toc_add_config PACKAGE_LICENSE="GNU LGPL"
-##### close the config-filtered files:
toc_test_require atfilter_file include/pclasses/pclasses_config.h.at include/pclasses/pclasses_config.h
-toc_test_require toc_project_makefile
+toc_boldecho "======================= Creating Makefiles..."
+
+make_out=${PWD}/.toc.Makefile
+{
+ cat <<EOF
+#!/usr/bin/make -f
+# Automatically generated by configure.
+# Do not edit this file: put your code in Makefile.toc.
+include Makefile.toc
+DIST_FILES += Makefile.toc
+DIST_FILES := \$(filter-out Makefile,\$(DIST_FILES))
+# ^^^^ toc automatically adds Makefile to DIST_FILES.
+DISTCLEAN_FILES += Makefile
+# ^^^^ todo
+EOF
+} > $make_out
+
+for m in $(find . -type f -name Makefile.toc | sort); do
+ nm=${m%%.toc}
+ echo -en "\t\t$nm ... "
+ cmp $make_out $nm &>/dev/null && {
+ echo -e "\r${TOC_EMOTICON_OKAY} up to date"
+smile=""
+ continue
+ }
+ cp $make_out $nm || toc_die 1 "Could not write $nm!"
+ echo -e "\r${TOC_EMOTICON_OKAY} created"
+done
+rm $make_out
+toc_boldecho "======================= ${TOC_EMOTICON_OKAY} Created Makefiles."
return 0
+
+##### close the config-filtered files:
+toc_test_require toc_project_makefile
+# ^^^^ this must come last.
|