source: trunk/patch_gui_cmds.sh

Last change on this file was 45, checked in by bas, 14 years ago

reverting back to old installation with one single package

File size: 721 bytes
Line 
1#!/bin/sh
2#
3# Author: Bas van der Vlies
4# Desc. : The tcl gui commands uses the wrong settings for
5#         libdir, appdefdir and the interperter
6#
7# SVN Info:
8#       $Id: patch_gui_cmds.sh 365 2004-03-18 10:57:22Z bas $
9#
10
11for file in xpbs xpbsmon
12do
13        sed -e "s,set libdir.*,set libdir $1/$file," \
14         -e "s,set appdefdir.*,set appdefdir $1/$file," \
15         `pwd`/debian/tmp/usr/bin/$file > ./tmp$$
16
17        mv ./tmp$$ `pwd`/debian/tmp/usr/bin/$file
18        chmod 755 `pwd`/debian/tmp/usr/bin/$file
19done
20
21# xpbsmon has also wrong interperter
22#
23sed -e "s,.*/usr/bin/pbs_wish.*,#!/usr/bin/pbs_wish -f," \
24 `pwd`/debian/tmp/usr/bin/xpbsmon > ./tmp$$
25
26mv ./tmp$$ `pwd`/debian/tmp/usr/bin/xpbsmon
27chmod 755 `pwd`/debian/tmp/usr/bin/xpbsmon
Note: See TracBrowser for help on using the repository browser.