From 9cd3ccffd5372dfde3af478e3f832f18db4be3f1 Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Sat, 6 Apr 2013 13:14:41 +0200 Subject: tagging tags --- ychat-0.7.8/src/mods/configure | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100755 ychat-0.7.8/src/mods/configure (limited to 'ychat-0.7.8/src/mods/configure') diff --git a/ychat-0.7.8/src/mods/configure b/ychat-0.7.8/src/mods/configure new file mode 100755 index 0000000..839380b --- /dev/null +++ b/ychat-0.7.8/src/mods/configure @@ -0,0 +1,26 @@ +#! /bin/sh + +if ! test -f ../../g++.version +then + echo You need to run ./configure of the top level source dir first + exit 1 +fi + +echo Creating module Makefiles... +for dir in commands html +do + if test -d $dir + then + cd $dir && + srcs="SRCS=`ls *.cpp`" && + echo $srcs > Makefile + compiler=`tail -n 1 ../../../g++.version` + sed s/COMPILER/$compiler/ Makefile.in >> Makefile && + for i in *.cpp + do + echo "../../../mods/$dir/`echo $i | sed s/.cpp/.so/`: $i" >> Makefile + done + cd .. + fi +done + -- cgit v1.2.3