source: branches/Release12/bin/install.sh@ 758

Last change on this file since 758 was 756, checked in by mar637, 19 years ago

install script for the binary

  • Property svn:eol-style set to native
  • Property svn:executable set to *
  • Property svn:keywords set to Author Date Id Revision
File size: 661 bytes
Line 
1#!/bin/sh
2
3pypath=/usr/local/lib/python2.3
4
5if [ ! -d ${pypath} ]; then
6 echo "python2.3 not installed"
7 exit 1
8else
9 if [ -d "${pypath}/site-packages/asap" ]; then
10 echo "removing old asap module"
11 rm -f ${pypath}/site-packages/asap/*
12 else
13 mkdir "${pypath}/site-packages/asap"
14 fi
15 echo "installing asap python module"
16 cp build/* ${pypath}/site-packages/asap
17 echo "installing asap startup script"
18 cp bin/asap /usr/local/bin
19fi
20if [ -d /usr/local/share/asap/data ]; then
21 echo "removing old data directory"
22 rm -rf /usr/local/share/asap/data
23fi
24
25echo "installing asap data directory"
26cp -rf data /usr/local/share/asap
Note: See TracBrowser for help on using the repository browser.