File: post-install

package info (click to toggle)
pmw 1:4.30-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 6,128 kB
  • sloc: ansic: 26,369; makefile: 337; sh: 255
file content (50 lines) | stat: -rwxr-xr-x 1,628 bytes parent folder | download | duplicates (4)
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/sh

BINDIR=$1
DATADIR=$2
MANDIR=$3

cat <<End

------------------------------------------------------------------------------
The pmw command has been installed in $BINDIR. The PostScript header 
file, the PostScript music fonts, and the fontmetrics files have been 
installed in $DATADIR. The man page has been installed in 
$MANDIR.

Checking to see if you have GhostScript installed...
End

gs=`which gs`
if [ "$?" !=  0 ]; then
  gs=""
fi

if [ "gs" = "" ]; then
  echo "You do not seem to have GhostScript installed."
else
  echo "GhostScript appears to be installed as $gs."
  echo ""
  echo "If you use the -includefont option with the pmw command, the output file"
  echo "includes the PMW-Music font (and the PMW-Alpha font, if it was referenced),"
  echo "and you should be able to view the output using Ghostscript without any"
  echo "special configuration."  
  echo ""
  echo "If you want to be able to use GhostScript to view music without having"
  echo "to include the music fonts in every output file, you have to make the"
  echo "fonts available to Ghostscript. To do this, run the command"
  echo ""
  echo "  $gs -h"
  echo ""
  echo "and find a suitable font directory in the 'Search path' data. Then"
  echo ""
  echo "  ln -s $DATADIR/psfonts/PMW-alpha /that/dir/PMW-Alpha"  
  echo "  ln -s $DATADIR/psfonts/PMW-Music.pfa /that/dir/PMW-Music.pfa"  
  echo ""
  echo "If that does not work, you may have an older version of Ghostscript."
  echo "Refer to the PMW manual for further information."  
fi

echo "------------------------------------------------------------------------------"

# End