File: install

package info (click to toggle)
fossology 1.1.0-2
  • links: PTS
  • area: main
  • in suites: squeeze
  • size: 10,984 kB
  • ctags: 7,160
  • sloc: ansic: 32,477; php: 22,920; sh: 1,572; perl: 1,352; makefile: 1,110; xml: 201; sql: 21
file content (50 lines) | stat: -rwxr-xr-x 1,751 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
38
39
40
41
42
43
44
45
46
47
48
49
50
#!/bin/bash
#***********************************************************
# cp2foss.php
# Copyright (C) 2007 Hewlett-Packard Development Company, L.P.
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# version 2 as published by the Free Software Foundation.
#
# This program 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 program; if not, write to the Free Software Foundation, Inc.,
#51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
#***********************************************************/
#
# install script for cp2foss tests MUST BE RUN AS ROOT
# needs access to the svn repository at SourceForge, make sure subversion
# servers file is correct.
#
# version "$Id: install 626 2008-05-24 03:04:12Z rrando $"

if [[ -x "/usr/local/bin/test.cp2foss" ]]
then
# could put a test in here to see if it is the correct owner... maybe I
# should write this in perl or python....hmmmmm
  :
else
  //cp ../cp2foss.php /usr/local/bin/test.cp2foss
  echo "Please install test.cp2foss into /usr/local/bin"
  exit 1
fi

# ensure owner and permissions are correct
chown fossy:fossy /usr/local/bin/test.cp2foss
chmod ug-w+rx /usr/local/bin/test.cp2foss
chmod o-wx+r /usr/local/bin/test.cp2foss

chmod a+x all_tests.php

# copy archives to tmp

cp archives/* /tmp

# create a dir tree for use (use fossology itself)
cd /tmp
svn co https://fossology.svn.sourceforge.net/svnroot/fossology/trunk/fossology/