concatdb.sh (17849) | concatdb.sh (19297) |
---|---|
1#!/bin/sh 2# 3# Copyright (c) September 1995 Wolfram Schneider <wosch@FreeBSD.org>. Berlin. 4# All rights reserved. 5# 6# Redistribution and use in source and binary forms, with or without 7# modification, are permitted provided that the following conditions 8# are met: --- 16 unchanged lines hidden (view full) --- 25# SUCH DAMAGE. 26# 27# concatdb - concatenate locate databases 28# 29# usage: concatdb database1 ... databaseN > newdb 30# 31# Sequence of databases is important. 32# | 1#!/bin/sh 2# 3# Copyright (c) September 1995 Wolfram Schneider <wosch@FreeBSD.org>. Berlin. 4# All rights reserved. 5# 6# Redistribution and use in source and binary forms, with or without 7# modification, are permitted provided that the following conditions 8# are met: --- 16 unchanged lines hidden (view full) --- 25# SUCH DAMAGE. 26# 27# concatdb - concatenate locate databases 28# 29# usage: concatdb database1 ... databaseN > newdb 30# 31# Sequence of databases is important. 32# |
33# $Id: concatdb.sh,v 1.1 1996/08/14 00:22:29 wosch Exp $ | 33# $Id: concatdb.sh,v 1.2 1996/08/27 20:04:24 wosch Exp $ |
34 35# The directory containing locate subprograms 36: ${LIBEXECDIR=/usr/libexec}; export LIBEXECDIR 37 38PATH=$LIBEXECDIR:/bin:/usr/bin:$PATH; export PATH 39 40umask 077 # protect temp files 41 42: ${TMPDIR=/tmp}; export TMPDIR; 43if test X"$TMPDIR" = X -o ! -d "$TMPDIR"; then 44 TMPDIR=/tmp; export TMPDIR 45fi 46 47# utilities to built locate database 48: ${bigram=locate.bigram} 49: ${code=locate.code} 50: ${sort=sort} | 34 35# The directory containing locate subprograms 36: ${LIBEXECDIR=/usr/libexec}; export LIBEXECDIR 37 38PATH=$LIBEXECDIR:/bin:/usr/bin:$PATH; export PATH 39 40umask 077 # protect temp files 41 42: ${TMPDIR=/tmp}; export TMPDIR; 43if test X"$TMPDIR" = X -o ! -d "$TMPDIR"; then 44 TMPDIR=/tmp; export TMPDIR 45fi 46 47# utilities to built locate database 48: ${bigram=locate.bigram} 49: ${code=locate.code} 50: ${sort=sort} |
51: ${locate=locate} |
|
51 52 53case $# in 54 [01]) echo 'usage: concatdb databases1 ... databaseN > newdb' 55 exit 1 56 ;; 57esac 58 --- 13 unchanged lines hidden --- | 52 53 54case $# in 55 [01]) echo 'usage: concatdb databases1 ... databaseN > newdb' 56 exit 1 57 ;; 58esac 59 --- 13 unchanged lines hidden --- |