-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstall
More file actions
executable file
·62 lines (55 loc) · 2.26 KB
/
Copy pathinstall
File metadata and controls
executable file
·62 lines (55 loc) · 2.26 KB
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
#!/bin/bash
#
# For unknown reasons `$filter=...; find . $filter` doesn't work, so this function
# encapsulates the filters necessary to strip CVS files and EMACS temporary files
function install__find_non_volatile() {
find "$@" -not -type d -and -not -path '*CVS*' -and -not -name '.#*' -and -not -name '*~' -and -not -path '*.svn*' -and -not -path '*.arch-id*'
}
if [[ $1 ]] ; then
INSTALL_ROOT=$1
else
INSTALL_ROOT=""
fi
# First clean out all libraries.
echo "Cleaning out all old enthrall libraries..."
ENTHRALL_LIBS=${INSTALL_ROOT}/var/lib/enthrall
rm -rf $ENTHRALL_LIBS
echo "Installing scripts and libraries"
# Install the executables
install__find_non_volatile etc usr/bin var/lib | (
while read SCRIPT; do
/usr/bin/install --owner=root --group=root --mode=755 -pD "${SCRIPT}" "${INSTALL_ROOT}/${SCRIPT}"
done
)
# Install the man pages
echo "Installing man pages"
install__find_non_volatile usr/share/man | (
while read DOC; do
/usr/bin/install --owner=root --group=root --mode=644 -pD "${DOC}" "${INSTALL_ROOT}/${DOC}"
gzip --best -f "${INSTALL_ROOT}/${DOC}"
done
)
# Install the GNU General Public License
/usr/bin/install --owner=root --group=root --mode=644 -pD "COPYING" "${INSTALL_ROOT}/usr/share/doc/enthrall/COPYING"
# Install the ChangeLog
/usr/bin/install --owner=root --group=root --mode=644 -pD "ChangeLog" "${INSTALL_ROOT}/usr/share/doc/enthrall/ChangeLog"
#---------------------------------------------------------------------
##=back
##
##=head1 LICENSE
##
## This software is free software; you can redistribute it and/or modify
## it under the terms of the GNU General Public License as published by
## the Free Software Foundation; either version 2 of the License, or
## (at your option) any later version.
##
## This software is distributed in the hope that it will be useful,
## but WITHOUT ANY WARRANTY; without even the implied warranty of
## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
## GNU General Public License for more details.
##
## You should have received a copy of the GNU General Public License
## along with this software; if not, write to the Free Software
## Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
##
#---------------------------------------------------------------------