[Pkg-jed-commit] r35 - trunk/packages/jed/debian

Jörg Sommer jo-guest@costa.debian.org
Thu, 28 Apr 2005 19:44:50 +0000


Author: jo-guest
Date: 2005-04-28 19:44:49 +0000 (Thu, 28 Apr 2005)
New Revision: 35

Modified:
   trunk/packages/jed/debian/compile
Log:
* compile for jed-common extended to support xjed too.


Modified: trunk/packages/jed/debian/compile
===================================================================
--- trunk/packages/jed/debian/compile	2005-04-24 19:49:01 UTC (rev 34)
+++ trunk/packages/jed/debian/compile	2005-04-28 19:44:49 UTC (rev 35)
@@ -1,6 +1,17 @@
 #!/bin/sh -e
 
-JED=/usr/bin/jed
+for i in /usr/bin/jed /usr/bin/xjed $(which jed); do
+    if [ -x $i ]; then
+        JED=$i
+	break
+    fi
+done
+
+if [ -z "$JED" ]; then
+    echo "no installed jed version found"
+    exit 0  # this is not an error, if jed is not installed
+fi
+
 LIBDIR=/usr/share/jed/lib/
 PREPARSE=preparse.sl
 
@@ -13,6 +24,6 @@
 	;;
   *)
 	echo "unknown argument --> \"$1"\" >&2
-	exit 0
+	exit 1
 	;;
 esac