openbsd-ports/textproc/catfish/patches/patch-catfish_in
landry 15a66911a3 Import catfish 0.3.2:
Catfish is a handy file searching tool for linux and unix. Basically it
is a frontend for different search engines (daemons) which provides a
unified interface. The interface is intentionally lightweight and
simple, using only GTK+2. You can configure it to your needs by using
several command line options.

ok ajacoutot@
2009-06-04 02:03:39 +00:00

22 lines
552 B
Plaintext

$OpenBSD: patch-catfish_in,v 1.1.1.1 2009/06/04 02:03:39 landry Exp $
--- catfish.in.orig Sun Apr 26 14:35:15 2009
+++ catfish.in Sun Apr 26 14:37:11 2009
@@ -1,14 +1,4 @@
-#!/usr/bin/env bash
-
+#!/bin/sh
APPNAME=catfish
-
-if [ -e $APPNAME.pyc ]
- then python $APPNAME.pyc "$@"
- else
- if [ -e $APPNAME.py ]
- then python $APPNAME.py "$@"
- else
- cd %prefix%/share/$APPNAME
- python $APPNAME.pyc "$@"
- fi
- fi
+cd ${PREFIX}/share/$APPNAME
+${MODPY_BIN} $APPNAME.pyc "$@"