This is the mail archive of the cygwin-apps mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [g-b-s Patch] Write and save logfiles forconfigure/make/check/install


>>>>> Igor Pechtchanski writes:

    > Also, please make sure your ChangeLog is formatted properly, and please
    > attach the patch instead of including it inline.

Ok, here it is.

 2005-09-10  Dr. Volker Zell  <dr.volker.zell@oracle.com>

 	* templates/generic-build-script (log_pkg_name): New.
 	(configurelogfile): New.
 	(makelogfile): New.
 	(checklogfile): Name change.
 	(installlogfile): New.
 	(conf): Add logging.
 	(build): Add logging.
 	(check): Add logging.
 	(install): Add logging.
 	(spkg): Compress logfiles.

--- generic-build-script.orig	2005-10-06 23:53:01.969838400 +0200
+++ generic-build-script	2005-10-09 10:26:45.288636800 +0200
@@ -71,6 +71,7 @@
 export src_pkg_name=${FULLPKG}-src.tar.bz2
 export src_patch_name=${FULLPKG}.patch
 export bin_pkg_name=${FULLPKG}.tar.bz2
+export log_pkg_name=${FULLPKG}-BUILDLOGS.tar.bz2
 
 export src_pkg=${topdir}/${src_pkg_name}
 export src_patch=${topdir}/${src_patch_name}
@@ -79,7 +80,10 @@
 export objdir=${srcdir}/.build
 export instdir=${srcdir}/.inst
 export srcinstdir=${srcdir}/.sinst
-export checkfile=${topdir}/${FULLPKG}.check
+export configurelogfile=${srcinstdir}/${FULLPKG}-CONFIGURE.LOG
+export makelogfile=${srcinstdir}/${FULLPKG}-MAKE.LOG
+export checklogfile=${srcinstdir}/${FULLPKG}-CHECK.LOG
+export installlogfile=${srcinstdir}/${FULLPKG}-INSTALL.LOG
 
 prefix=/usr
 sysconfdir=/etc
@@ -197,7 +201,7 @@
   --libdir='${prefix}/lib' --includedir='${prefix}/include' \
   --mandir='${prefix}/share/man' --infodir='${prefix}/share/info' \
   --libexecdir='${sbindir}' --localstatedir="${localstatedir}" \
-  --datadir='${prefix}/share' )
+  --datadir='${prefix}/share' 2>&1 | tee ${configurelogfile} )
 }
 reconf() {
   (cd ${topdir} && \
@@ -207,11 +211,11 @@
 }
 build() {
   (cd ${objdir} && \
-  make CFLAGS="${MY_CFLAGS}" )
+  make CFLAGS="${MY_CFLAGS}" 2>&1 | tee ${makelogfile} )
 }
 check() {
   (cd ${objdir} && \
-  make ${test_rule} | tee ${checkfile} 2>&1 )
+  make ${test_rule} 2>&1 | tee ${checklogfile} )
 }
 clean() {
   (cd ${objdir} && \
@@ -220,7 +224,7 @@
 install() {
   (cd ${objdir} && \
   rm -fr ${instdir}/* && \
-  make install DESTDIR=${instdir} && \
+  make install DESTDIR=${instdir} 2>&1 | tee ${installlogfile} && \
   for f in ${prefix}/share/info/dir ${prefix}/info/dir ; do \
     if [ -f ${instdir}${f} ] ; then \
       rm -f ${instdir}${f} ; \
@@ -340,6 +344,7 @@
     cp $0.sig ${srcinstdir}/ ; \
   fi && \
   cd ${srcinstdir} && \
+  tar cvjf ${log_pkg_name} *.LOG && rm *.LOG && \
   tar cvjf ${src_pkg} * )
 }
 finish() {
Ciao
  Volker

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]