Browse Source

changing SNAP_GZIP_CMD to GZIP + GZIPEXT etc.

OPENBSD_2_1
graichen 28 years ago
parent
commit
46a89ee056
3 changed files with 25 additions and 45 deletions
  1. +21
    -20
      src/etc/Makefile
  2. +2
    -2
      src/etc/etc.alpha/Makefile.inc
  3. +2
    -23
      src/etc/etc.pmax/Makefile.inc

+ 21
- 20
src/etc/Makefile View File

@ -1,4 +1,4 @@
# $OpenBSD: Makefile,v 1.35 1997/01/19 22:26:19 graichen Exp $
# $OpenBSD: Makefile,v 1.36 1997/01/21 12:02:41 graichen Exp $
TZDIR= /usr/share/zoneinfo TZDIR= /usr/share/zoneinfo
LOCALTIME= US/Pacific LOCALTIME= US/Pacific
@ -167,46 +167,47 @@ snap_pre:
/bin/rm -rf ${DESTDIR}/snapshot /bin/rm -rf ${DESTDIR}/snapshot
install -d -o root -g wheel -m 755 ${DESTDIR}/snapshot install -d -o root -g wheel -m 755 ${DESTDIR}/snapshot
# check if SNAP_GZIP_CMD is set - else set it to "gzip -9"
# check if GZIP is set - else set it to "gzip"
# you may set it to "cat" alternatively for architectures # you may set it to "cat" alternatively for architectures
# where the gzip'ing would take too much time (pmax or slower :-) # where the gzip'ing would take too much time (pmax or slower :-)
# this way you get only tar'ed snap files and you can gzip # this way you get only tar'ed snap files and you can gzip
# them on a faster machine # them on a faster machine
.ifndef SNAP_GZIP_CMD
SNAP_GZIP_CMD= gzip -9
SNAP_GZIP_EXT= .gz
.ifndef GZIP
GZIP= gzip
GZIPFLAGS= -9
GZIPEXT= .gz
.endif .endif
snap_tar: snap_tar:
cd ${DESTDIR} && tar cf - bin \ cd ${DESTDIR} && tar cf - bin \
| ${SNAP_GZIP_CMD} > snapshot/bin.tar${SNAP_GZIP_EXT}
| ${GZIP} ${GZIPFLAGS} > snapshot/bin.tar${GZIPEXT}
cd ${DESTDIR} && tar cf - dev \ cd ${DESTDIR} && tar cf - dev \
| ${SNAP_GZIP_CMD} > snapshot/dev.tar${SNAP_GZIP_EXT}
| ${GZIP} ${GZIPFLAGS} > snapshot/dev.tar${GZIPEXT}
cd ${DESTDIR} && tar cf - .profile .cshrc altroot etc home mnt \ cd ${DESTDIR} && tar cf - .profile .cshrc altroot etc home mnt \
root stand sys tmp | ${SNAP_GZIP_CMD} \
> snapshot/etc.tar${SNAP_GZIP_EXT}
root stand sys tmp | ${GZIP} ${GZIPFLAGS} \
> snapshot/etc.tar${GZIPEXT}
cd ${DESTDIR} && tar cf - sbin \ cd ${DESTDIR} && tar cf - sbin \
| ${SNAP_GZIP_CMD} > snapshot/sbin.tar${SNAP_GZIP_EXT}
| ${GZIP} ${GZIPFLAGS} > snapshot/sbin.tar${GZIPEXT}
cd ${DESTDIR} && tar cf - usr/bin \ cd ${DESTDIR} && tar cf - usr/bin \
| ${SNAP_GZIP_CMD} > snapshot/usr.bin.tar${SNAP_GZIP_EXT}
| ${GZIP} ${GZIPFLAGS} > snapshot/usr.bin.tar${GZIPEXT}
cd ${DESTDIR} && tar cf - usr/games \ cd ${DESTDIR} && tar cf - usr/games \
| ${SNAP_GZIP_CMD} > snapshot/usr.games.tar${SNAP_GZIP_EXT}
| ${GZIP} ${GZIPFLAGS} > snapshot/usr.games.tar${GZIPEXT}
cd ${DESTDIR} && tar cf - usr/include \ cd ${DESTDIR} && tar cf - usr/include \
| ${SNAP_GZIP_CMD} > snapshot/usr.include.tar${SNAP_GZIP_EXT}
| ${GZIP} ${GZIPFLAGS} > snapshot/usr.include.tar${GZIPEXT}
cd ${DESTDIR} && tar cf - usr/lib \ cd ${DESTDIR} && tar cf - usr/lib \
| ${SNAP_GZIP_CMD} > snapshot/usr.lib.tar${SNAP_GZIP_EXT}
| ${GZIP} ${GZIPFLAGS} > snapshot/usr.lib.tar${GZIPEXT}
cd ${DESTDIR} && tar cf - usr/libexec \ cd ${DESTDIR} && tar cf - usr/libexec \
| ${SNAP_GZIP_CMD} > snapshot/usr.libexec.tar${SNAP_GZIP_EXT}
| ${GZIP} ${GZIPFLAGS} > snapshot/usr.libexec.tar${GZIPEXT}
cd ${DESTDIR} && tar cf - usr/mdec usr/libdata usr/local usr/src \ cd ${DESTDIR} && tar cf - usr/mdec usr/libdata usr/local usr/src \
usr/obj | ${SNAP_GZIP_CMD} \
> snapshot/usr.misc.tar${SNAP_GZIP_EXT}
usr/obj | ${GZIP} ${GZIPFLAGS} \
> snapshot/usr.misc.tar${GZIPEXT}
cd ${DESTDIR} && tar cf - usr/sbin \ cd ${DESTDIR} && tar cf - usr/sbin \
| ${SNAP_GZIP_CMD} > snapshot/usr.sbin.tar${SNAP_GZIP_EXT}
| ${GZIP} ${GZIPFLAGS} > snapshot/usr.sbin.tar${GZIPEXT}
cd ${DESTDIR} && tar cf - usr/share \ cd ${DESTDIR} && tar cf - usr/share \
| ${SNAP_GZIP_CMD} > snapshot/usr.share.tar${SNAP_GZIP_EXT}
| ${GZIP} ${GZIPFLAGS} > snapshot/usr.share.tar${GZIPEXT}
cd ${DESTDIR} && tar cf - var \ cd ${DESTDIR} && tar cf - var \
| ${SNAP_GZIP_CMD} > snapshot/var.tar${SNAP_GZIP_EXT}
| ${GZIP} ${GZIPFLAGS} > snapshot/var.tar${GZIPEXT}
snap_md: snap_md:
# nothing here -- look in the machine-dependent Makefile.inc # nothing here -- look in the machine-dependent Makefile.inc


+ 2
- 2
src/etc/etc.alpha/Makefile.inc View File

@ -1,7 +1,7 @@
# #
# etc.alpha/Makefile.inc -- alpha-specific etc Makefile targets # etc.alpha/Makefile.inc -- alpha-specific etc Makefile targets
# #
# $Id: Makefile.inc,v 1.1 1997/01/19 22:29:23 graichen Exp $
# $Id: Makefile.inc,v 1.2 1997/01/21 12:02:52 graichen Exp $
.ifdef DESTDIR .ifdef DESTDIR
# XXX - bsd will come then we have a GENERIC kernel # XXX - bsd will come then we have a GENERIC kernel
@ -9,7 +9,7 @@ snap_md: binutils
binutils: binutils:
cd ${DESTDIR} && tar cf - usr/*openbsd* \ cd ${DESTDIR} && tar cf - usr/*openbsd* \
| ${SNAP_GZIP_CMD} > snapshot/usr.binutils.tar${SNAP_GZIP_EXT}
| ${GZIP} ${GZIPFLAGS} > snapshot/usr.binutils.tar${GZIPEXT}
bsd: bsd:
cd ${.CURDIR}/../sys/arch/alpha/conf && config GENERIC cd ${.CURDIR}/../sys/arch/alpha/conf && config GENERIC


+ 2
- 23
src/etc/etc.pmax/Makefile.inc View File

@ -1,7 +1,7 @@
# #
# etc.pmax/Makefile.inc -- pmax-specific etc Makefile targets # etc.pmax/Makefile.inc -- pmax-specific etc Makefile targets
# #
# $Id: Makefile.inc,v 1.1 1997/01/19 22:29:15 graichen Exp $
# $Id: Makefile.inc,v 1.2 1997/01/21 12:02:57 graichen Exp $
.ifdef DESTDIR .ifdef DESTDIR
@ -9,7 +9,7 @@ snap_md: binutils bsd
binutils: binutils:
cd ${DESTDIR} && tar cf - usr/*openbsd* \ cd ${DESTDIR} && tar cf - usr/*openbsd* \
| ${SNAP_GZIP_CMD} > snapshot/usr.binutils.tar${SNAP_GZIP_EXT}
| ${GZIP} ${GZIPFLAGS} > snapshot/usr.binutils.tar${GZIPEXT}
bsd: bsd:
cd ${.CURDIR}/../sys/arch/pmax/conf && config GENERIC cd ${.CURDIR}/../sys/arch/pmax/conf && config GENERIC
@ -19,24 +19,3 @@ bsd:
${DESTDIR}/snapshot/bsd ${DESTDIR}/snapshot/bsd
.endif # DESTDIR check .endif # DESTDIR check
#
# etc.alpha/Makefile.inc -- alpha-specific etc Makefile targets
#
# $Id: Makefile.inc,v 1.1 1997/01/19 22:29:15 graichen Exp $
.ifdef DESTDIR
# XXX - bsd will come then we have a GENERIC kernel
snap_md: binutils
binutils:
cd ${DESTDIR} && tar cf - usr/*openbsd* \
| ${SNAP_GZIP_CMD} > snapshot/usr.binutils.tar${SNAP_GZIP_EXT}
bsd:
cd ${.CURDIR}/../sys/arch/alpha/conf && config GENERIC
cd ${.CURDIR}/../sys/arch/alpha/compile/GENERIC && \
make clean && make depend && make
cp ${.CURDIR}/../sys/arch/alpha/compile/GENERIC/bsd \
${DESTDIR}/snapshot/bsd
.endif # DESTDIR check

Loading…
Cancel
Save