~ubuntu-branches/ubuntu/lucid/pcb/lucid

« back to all changes in this revision

Viewing changes to src/pcbtest.sh.in

  • Committer: Bazaar Package Importer
  • Author(s): Hamish Moffatt
  • Date: 2005-02-20 13:14:00 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20050220131400-pfz66g5vhx0azl8f
Tags: 1.99j+20050127-2
* Improved package description: (closes: #295405)
* Fixed dependency: tk84 -> tk8.4 (closes: #295404)
* Updated README.debian (closes: #269578)
* Applied patch to src/djopt.c to allow compilation with gcc-4.0
  (closes: #294319), thanks to Andreas Jochens for the patch.
* Prevent example files from being compressed

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#! /bin/sh
 
2
#
 
3
#                             COPYRIGHT
 
4
 
5
#   PCB, interactive printed circuit board design
 
6
#   Copyright (C) 1994,1995,1996 Thomas Nau
 
7
 
8
#   This program is free software; you can redistribute it and/or modify
 
9
#   it under the terms of the GNU General Public License as published by
 
10
#   the Free Software Foundation; either version 2 of the License, or
 
11
#   (at your option) any later version.
 
12
 
13
#   This program is distributed in the hope that it will be useful,
 
14
#   but WITHOUT ANY WARRANTY; without even the implied warranty of
 
15
#   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
16
#   GNU General Public License for more details.
 
17
 
18
#   You should have received a copy of the GNU General Public License
 
19
#   along with this program; if not, write to the Free Software
 
20
#   Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
 
21
 
22
#   Contact addresses for paper mail and Email:
 
23
#   Thomas Nau, Schlehenweg 15, 88471 Baustetten, Germany
 
24
#   Thomas.Nau@rz.uni-ulm.de
 
25
 
26
#   RCS: $Id: pcbtest.sh.in,v 1.5 2004/10/27 14:28:42 djdelorie Exp $
 
27
#
 
28
#
 
29
#
 
30
# starts a test installation of pcb
 
31
 
 
32
# execute pcb
 
33
 
 
34
# If the first argument is "-gdb" then run PCB inside the gdb
 
35
# debugger.  
 
36
 
 
37
XAPPLRESDIR=`pwd`/.test/
 
38
export XAPPLRESDIR
 
39
unset XUSERFILESEARCHPATH
 
40
 
 
41
if [ "X$1" = "X-gdb" ]; then
 
42
        shift
 
43
        tmpf=/tmp/pcbtest.gdb.$$
 
44
        echo set args "$@"  > $tmpf
 
45
        echo "set env XAPPLRESDIR = $XAPPLRESDIR" >> $tmpf
 
46
        echo "unset env XUSERFILESEARCHPATH" >> $tmpf
 
47
        exec gdb -x $tmpf ./pcb-bin
 
48
        rm -f $tmpf
 
49
else
 
50
        exec ./pcb-bin "$@"
 
51
fi
 
52