eff4bacea9
Similarly with some documentation and example code. Resolves: rhbz#1149617
27 lines
626 B
Bash
Executable File
27 lines
626 B
Bash
Executable File
#!/bin/sh
|
|
|
|
VERSION="$1"
|
|
|
|
rm -rf ghostscript-"$VERSION"
|
|
tar jxvf ghostscript-"$VERSION".tar.bz2
|
|
|
|
GS=ghostscript-"$VERSION"
|
|
|
|
# License unclear (bug #1000387).
|
|
rm -r "$GS"/jpegxr
|
|
|
|
# License unknown (bug #1149617).
|
|
## Documentation
|
|
rm -f "$GS"/contrib/japanese/doc/djgpp.txt
|
|
rm -f "$GS"/contrib/japanese/doc/gdevmag.txt
|
|
rm -f "$GS"/contrib/japanese/doc/gs261j.*
|
|
## Example code
|
|
rm -f "$GS"/examples/chess.ps
|
|
## %ram% IODevice
|
|
rm -f "$GS"/base/gsioram.c
|
|
rm -f "$GS"/base/ramfs.c
|
|
rm -f "$GS"/base/ramfs.h
|
|
sed -i -e 's, $(GLD)ramfs.dev,,' "$GS"/Makefile.in "$GS"/psi/msvc.mak
|
|
|
|
tar jcvf ghostscript-"$VERSION"-cleaned-1.tar.bz2 "$GS"
|