File: Mksrc

package info (click to toggle)
lsof 4.99.4%2Bdfsg-2
  • links: PTS
  • area: main
  • in suites: forky, sid, trixie
  • size: 4,924 kB
  • sloc: ansic: 50,680; sh: 8,351; makefile: 1,194; perl: 940; awk: 214
file content (37 lines) | stat: -rwxr-xr-x 711 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#!/bin/bash
#
# Mksrc - make Linux source files for /proc-based lsof
#
# WARNING: This script assumes it is running from the main directory
#	   of the lsof, version 4 distribution.
#
# One environment variable applies:
#
# LSOF_MKC	is the method for creating the source files.
#		It defaults to "ln -s".  A common alternative is "cp".
#
# $Id: Mksrc,v 1.2 2000/12/04 14:31:02 abe Exp $

mksrc() {
  for i in $L
  do
    rm -f $i
    $LSOF_MKC $D/$i $i
    echo "$LSOF_MKC $D/$i $i"
  done
}

D=lib/dialects/linux
L="dfile.c dlsof.h dmnt.c dnode.c dproc.c dproto.h dsock.c dstore.c machine.h"

mksrc

D=src
L="arg.c main.c print.c ptti.c store.c usage.c util.c"

mksrc

D=src/dialects/linux
L="dprint.c"

mksrc