ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/svn/vendor/ircservices-5.1.24/install-script
Revision: 1171
Committed: Fri Aug 12 20:00:46 2011 UTC (12 years, 7 months ago) by michael
File size: 862 byte(s)
Log Message:
- Import ircservices-5.1.24. Don't ever think about modifying anything in this
  folder!
  Since Andrew Church has discontinued his services project in April 2011, the
  ircd-hybrid team has been given permissions to officially continue and
  maintain the already mentioned project.
  The name of this project will be changed for the reason being that the current
  name "IRC Services" is way too generic these days.

  Remember: Don't ever modify anything in here. This folder is kept for reference.

File Contents

# Content
1 #!/bin/sh
2
3 SRC=""; DEST=""; MODE=""; USER=""; GROUP=""; ISDIR=""
4 export SRC DEST MODE USER GROUP ISDIR
5 while [ $# -gt 0 ]; do
6 case $1 in
7 -m) MODE=$2; shift; shift;;
8 -u) USER=$2; shift; shift;;
9 -g) GROUP=$2; shift; shift;;
10 -d) ISDIR=1; shift;;
11 -c) shift;;
12 *) SRC="$DEST"; DEST="$1"; shift;;
13 esac
14 done
15 if [ ! "$DEST" ]; then
16 echo >&2 "Usage: $0 [-c] [-m mode] [-u user] [-g group] source dest"
17 exit 1
18 fi
19 if [ "$ISDIR" ]; then
20 mkdir -p "$DEST"
21 else
22 if [ -d "$DEST" ]; then
23 DEST="$DEST/$SRC"
24 fi
25 /bin/cp -p "$SRC" "$DEST"
26 fi
27 if [ "$USER" ]; then
28 /bin/chown "$USER" "$DEST"
29 fi
30 if [ "$GROUP" ]; then
31 /bin/chgrp "$GROUP" "$DEST"
32 fi
33 if [ "$MODE" ]; then
34 /bin/chmod "$MODE" "$DEST"
35 fi
36
37 # Local variables:
38 # indent-tabs-mode: nil
39 # End:
40 #
41 # vim: expandtab shiftwidth=4:

Properties

Name Value
svn:executable