File: installosf

package info (click to toggle)
netpbm-nonfree 2%3A9.20-1
  • links: PTS
  • area: non-free
  • in suites: woody
  • size: 904 kB
  • ctags: 751
  • sloc: ansic: 5,122; perl: 418; sh: 222; makefile: 206; csh: 157
file content (31 lines) | stat: -rwxr-xr-x 784 bytes parent folder | download | duplicates (2)
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
#!/bin/sh

# This program takes parameters as a Netpbm make file might pass to
# its $(INSTALL) program and invokes OSF1 Install with the proper
# parameters to effect what the make file wants.  If your system has
# OSF1 Install on it, you can just set the INSTALL variable in
# Makefile.config to "installosf" and 'make install' will work for
# you.

# Of course, you could also just install Ginstall and forget about this
# program.

PERMISSIONS=444
while [ $# -gt 0 ]; do
    if [ "$1" = "-c" ]; then x=x;
    elif [ "$1" = "-s" ]; then x=x;
    elif [ "$1" = "-m" ]; then 
        shift
        PERMISSIONS=$1
    elif [ ${SOURCE_FILE}x == x ]; then
        SOURCE_FILE=$1
    else
        TARGET_DIR=$1
    fi
    shift;
done

echo -f $TARGET_DIR -m $PERMISSIONS $SOURCE_FILE