git.asbjorn.biz
/
swftools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
bugfix in text clipping and in soft mask alpha premultiply
[swftools.git]
/
lib
/
pdf
/
inject-xpdf.pl
diff --git
a/lib/pdf/inject-xpdf.pl
b/lib/pdf/inject-xpdf.pl
index
7a0ea13
..
8693f81
100755
(executable)
--- a/
lib/pdf/inject-xpdf.pl
+++ b/
lib/pdf/inject-xpdf.pl
@@
-25,11
+25,18
@@
open(fi, ">switch");
print fi <<EOF
#!/bin/sh
print fi <<EOF
#!/bin/sh
-if test "x\$1" = "xstable";then
+VERSION=\$1
+PS3="choose> "
+
+if test "x\$VERSION" = "x";then
+ select V in stable latest;do VERSION="$V";break;done
+fi
+
+if test "x\$VERSION" = "xstable";then
echo "Switching to stable version"
rm -f xpdf
echo "Switching to stable version"
rm -f xpdf
- ln -s xpdf-3.01 xpdf
-elif test "x\$1" = "xlatest";then
+ ln -s xpdf-3.02 xpdf
+elif test "x\$VERSION" = "xlatest";then
echo "Switching to latest version"
rm -f xpdf
ln -s $directory xpdf
echo "Switching to latest version"
rm -f xpdf
ln -s $directory xpdf