emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCHES] 21.3.50 for Cygwin: patch 4


From: Joe Buehler
Subject: [PATCHES] 21.3.50 for Cygwin: patch 4
Date: Fri, 06 Dec 2002 13:34:38 -0500
User-agent: Mozilla/5.0 (Windows; U; WinNT4.0; en-US; rv:1.2) Gecko/20021126

This patch uses USERNAME if LOGNAME is not set -- Cygwin does not set
LOGNAME.

Joe Buehler

Index: ChangeLog
===================================================================
RCS file: /cvsroot/emacs/emacs/ChangeLog,v
retrieving revision 1.289
diff -u -r1.289 ChangeLog
--- ChangeLog   27 Nov 2002 22:54:07 -0000      1.289
+++ ChangeLog   6 Dec 2002 17:38:35 -0000
@@ -1,3 +1,7 @@
+2002-12-06  Joe Buehler  <address@hidden>
+
+       * Makefile.in: use USERNAME if LOGNAME is not set (for Cygwin)
+
 2002-11-27  Dave Love  <address@hidden>

        * configure.in: Use AC_CHECK_DECLS, not AC_DECL_SYS_SIGLIST.
Index: Makefile.in
===================================================================
RCS file: /cvsroot/emacs/emacs/Makefile.in,v
retrieving revision 1.271
diff -u -r1.271 Makefile.in
--- Makefile.in 11 Nov 2002 09:03:08 -0000      1.271
+++ Makefile.in 6 Dec 2002 16:34:32 -0000
@@ -397,7 +397,7 @@
              (cd $${dir}; tar -chf - . ) \
                | (cd $${dest}; umask 022; \
                    tar -xvf - && cat > /dev/null) || exit 1; \
-             find $${dest} -exec chown $$LOGNAME {} ';' ;\
+             find $${dest} -exec chown $${LOGNAME:-$$USERNAME} {} ';' ;\
              for subdir in `find $${dest} -type d ! -name RCS ! -name CVS 
-print` ; do \
                chmod a+rx $${subdir} ; \
                rm -rf $${subdir}/RCS ; \
@@ -436,7 +436,7 @@
           echo "Copying etc/DOC-* to ${docdir} ..." ; \
           (cd ./etc; tar -chf - DOC*) \
             |(cd ${docdir}; umask 022; tar -xvf - && cat > /dev/null) || exit 
1; \
-          (cd $(docdir); chown $${LOGNAME} DOC*; chmod a+r DOC*; \
+          (cd $(docdir); chown $${LOGNAME:-$$USERNAME} DOC*; chmod a+r DOC*; \
            if test "`echo DOC-*`" != "DOC-*"; then rm DOC; fi); \
        else true; fi
        -unset CDPATH; \
@@ -447,7 +447,7 @@
           echo "Copying lisp/*.el and lisp/*.elc to ${lispdir} ..." ; \
           (cd ${srcdir}/lisp; tar -chf - *.el *.elc) \
             |(cd ${lispdir}; umask 022; tar -xvf - && cat > /dev/null) || exit 
1; \
-          (cd ${lispdir}; find . -exec chown $${LOGNAME} {} ';') ; \
+          (cd ${lispdir}; find . -exec chown $${LOGNAME:-$$USERNAME} {} ';') ; 
\
        else true; fi
        -unset CDPATH; \
        thisdir=`/bin/pwd`; \







reply via email to

[Prev in Thread] Current Thread [Next in Thread]