clean up directory creation
authorKeith Bostic <bostic@ucbvax.Berkeley.EDU>
Sun, 4 Oct 1987 06:46:08 +0000 (22:46 -0800)
committerKeith Bostic <bostic@ucbvax.Berkeley.EDU>
Sun, 4 Oct 1987 06:46:08 +0000 (22:46 -0800)
SCCS-vsn: share/me/Makefile 6.3

usr/src/share/me/Makefile

index 7f40a21..7469708 100644 (file)
@@ -3,7 +3,7 @@
 # All rights reserved.  The Berkeley software License Agreement
 # specifies the terms and conditions for redistribution.
 #
 # All rights reserved.  The Berkeley software License Agreement
 # specifies the terms and conditions for redistribution.
 #
-#      @(#)Makefile    6.2     (Berkeley)      %G%
+#      @(#)Makefile    6.3     (Berkeley)      %G%
 #
 CFLAGS=        -O
 LIBC=  /lib/libc.a
 #
 CFLAGS=        -O
 LIBC=  /lib/libc.a
@@ -14,10 +14,9 @@ SRCS=        tmac.e acm.me chars.me deltext.me eqn.me float.me footnote.me \
 all:
 
 install: FRC
 all:
 
 install: FRC
-       -if [ ! -d ${DESTDIR}${LIB} ]; then \
-               rm -f ${DESTDIR}${LIB}; \
-               mkdir ${DESTDIR}${LIB}; \
-       fi
+       -[ -d ${DESTDIR}${LIB} ] || mkdir ${DESTDIR}${LIB}
+       chown bin.bin ${DESTDIR}${LIB}
+       chmod 755 ${DESTDIR}${LIB}
        -for i in ${SRCS}; do \
                sed -e '/%beginstrip%/{' \
                    -e 'h' \
        -for i in ${SRCS}; do \
                sed -e '/%beginstrip%/{' \
                    -e 'h' \
@@ -27,7 +26,7 @@ install: FRC
                    -e '/%beginstrip%/,$$s/[.   ][      ]*\\".*//' \
                    -e '/^$$/d' \
                    -e '/\\n@/d' $$i > _mac_tmp_; \
                    -e '/%beginstrip%/,$$s/[.   ][      ]*\\".*//' \
                    -e '/^$$/d' \
                    -e '/\\n@/d' $$i > _mac_tmp_; \
-               install -o bin -g bin -m 644 _mac_tmp_ ${DESTDIR}${LIB}/$$i; \
+               install -o bin -g bin -m 444 _mac_tmp_ ${DESTDIR}${LIB}/$$i; \
        done
        mv ${DESTDIR}${LIB}/tmac.e ${DESTDIR}/usr/lib/tmac/tmac.e
        install -c -o bin -g bin -m 444 revisions ${DESTDIR}${LIB}/revisions
        done
        mv ${DESTDIR}${LIB}/tmac.e ${DESTDIR}/usr/lib/tmac/tmac.e
        install -c -o bin -g bin -m 444 revisions ${DESTDIR}${LIB}/revisions