Candidate_v1.6.1
ChemicalSpaceEvaluator
Last change
on this file since d661b2 was 00f983, checked in by Frederik Heber <heber@…>, 8 years ago |
Added generated Makefile.am's.
|
-
Property mode
set to
100644
|
File size:
723 bytes
|
Line | |
---|
1 | #!/bin/bash
|
---|
2 |
|
---|
3 | DIR=`pwd`; for dir in `find . -mindepth 1 -type d`; do if test ! -e ${dir}/Makefile.am; then cd $dir; SOURCES=`ls -1 *.cc *.c 2>/dev/null`; HEADERS=`ls -1 *.h *.hh 2>/dev/null`; if test ! -z "$SOURCES"; then SOURCES=`echo $SOURCES | sed -e "s#\(.*\)#\t\1#"`; HEADERS=`echo $HEADERS | sed -e "s#\(.*\)#\t\1#"`;NAME=`echo $dir | awk -F"/" '{print "SC"$NF}'`; CAPITALNAME=`echo $NAME | tr [:lower:] [:upper:]`; PATHNAME=`echo $dir | awk -F"/" '{for (i=3;i<=NF;i++) { if (i>3) {printf("/");} printf("%s",$i) } }'`; sed -e "s#CAPITALNAME#$CAPITALNAME#g" -e "s#PATHNAME#$PATHNAME#g" -e "s#LIBSOURCES#${SOURCES}#" -e "s#LIBHEADERS#${HEADERS}#" -e "s#NAME#$NAME#g" $DIR/Makefile.am >Makefile.am; fi; cd $DIR; fi; done
|
---|
Note:
See
TracBrowser
for help on using the repository browser.