File: test_gpm

package info (click to toggle)
gpm 1.20.7-12
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 3,960 kB
  • sloc: ansic: 8,702; yacc: 1,054; sh: 1,034; makefile: 387; cpp: 241; lisp: 222; awk: 82; sed: 6
file content (35 lines) | stat: -rwxr-xr-x 766 bytes parent folder | download | duplicates (10)
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
#!/bin/sh
#
# Date: 18th of September 2001
# Description: Test gpm with this script :)
# Author: Nico Schottelius (nicos@pcsystems.de), 3rd of October 2001
# Copying: GPL 2.0
# Version: 0.2
#

PREFIX=test-
POSTFIX=

if [ $# -ne 1 ]; then
   echo `basename $0`': dir'
   echo 'Hey, hey guy, what to test ?'
   exit 1
fi

if [ ! -d $1 ]; then
   echo `basename $0`': dir'
   echo 'HEY! I need a DIRECTORY! Not something else!'
   exit 1
fi

echo rm -rf $PREFIX`basename $1`$POSTFIX -r
rm -rf $PREFIX`basename $1`$POSTFIX -r
echo cp $1 $PREFIX`basename $1`$POSTFIX -r
cp $1 $PREFIX`basename $1`$POSTFIX -r

echo rm -rf mkdir objdir
rm -rf objdir/ && mkdir -p objdir && cd objdir
echo configure
../$PREFIX`basename $1`$POSTFIX/configure --prefix=/usr/sys
echo make
make