summaryrefslogtreecommitdiffstats
path: root/editors
diff options
context:
space:
mode:
authormarcus <marcus@df743ca5-7f9a-e211-a948-0013205c9059>2003-04-12 15:19:05 +0800
committermarcus <marcus@df743ca5-7f9a-e211-a948-0013205c9059>2003-04-12 15:19:05 +0800
commit319a9d8e3d9c0674e82f917a4b6130b6c46952e7 (patch)
tree8ea97f6bcd8add174cdd12edff2cc5575d26d217 /editors
parent64f46874662bd9bdd164f48e094d4bb09a96fea7 (diff)
downloadmarcuscom-ports-319a9d8e3d9c0674e82f917a4b6130b6c46952e7.tar
marcuscom-ports-319a9d8e3d9c0674e82f917a4b6130b6c46952e7.tar.gz
marcuscom-ports-319a9d8e3d9c0674e82f917a4b6130b6c46952e7.tar.bz2
marcuscom-ports-319a9d8e3d9c0674e82f917a4b6130b6c46952e7.tar.lz
marcuscom-ports-319a9d8e3d9c0674e82f917a4b6130b6c46952e7.tar.xz
marcuscom-ports-319a9d8e3d9c0674e82f917a4b6130b6c46952e7.tar.zst
marcuscom-ports-319a9d8e3d9c0674e82f917a4b6130b6c46952e7.zip
Add gedit2-2.3.x.
git-svn-id: svn://creme-brulee.marcuscom.com/ports/trunk@597 df743ca5-7f9a-e211-a948-0013205c9059
Diffstat (limited to 'editors')
-rw-r--r--editors/gedit2/Makefile38
-rw-r--r--editors/gedit2/distinfo1
-rw-r--r--editors/gedit2/files/patch-configure31
-rw-r--r--editors/gedit2/pkg-descr21
-rw-r--r--editors/gedit2/pkg-plist213
5 files changed, 304 insertions, 0 deletions
diff --git a/editors/gedit2/Makefile b/editors/gedit2/Makefile
new file mode 100644
index 000000000..9328a3196
--- /dev/null
+++ b/editors/gedit2/Makefile
@@ -0,0 +1,38 @@
+# New ports collection makefile for: gedit2
+# Date created: 14 May 2002
+# Whom: Joe Marcus Clarke <marcus@FreeBSD.org>
+#
+# $FreeBSD: ports/editors/gedit2/Makefile,v 1.56 2003/04/04 07:32:45 marcus Exp $
+#
+
+PORTNAME= gedit2
+PORTVERSION= 2.3.0
+CATEGORIES= editors gnome
+MASTER_SITES= ${MASTER_SITE_GNOME}
+MASTER_SITE_SUBDIR= sources/${PORTNAME:S/2$//}/2.3
+DISTNAME= gedit-${PORTVERSION}
+DIST_SUBDIR= gnome2
+
+MAINTAINER= gnome@FreeBSD.org
+COMMENT= A small but powerful text editor for Gnome 2.0 Desktop Environment
+
+LIB_DEPENDS= pspell.15:${PORTSDIR}/textproc/aspell
+
+USE_BZIP2= yes
+USE_X_PREFIX= yes
+USE_REINPLACE= yes
+USE_GMAKE= yes
+USE_LIBTOOL= yes
+USE_GNOME= gnomeprefix gnomehack gnomehier libgnomeprintui libgnomeui \
+ eel2
+CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
+ LIBS="-L${LOCALBASE}/lib"
+PLIST_SUB= VERSION="2.4"
+
+MAN1= gedit.1
+
+post-patch:
+ @${REINPLACE_CMD} -e 's|-lpthread|${PTHREAD_LIBS}|g ; \
+ s|DATADIRNAME=lib|DATADIRNAME=share|g' ${WRKSRC}/configure
+
+.include <bsd.port.mk>
diff --git a/editors/gedit2/distinfo b/editors/gedit2/distinfo
new file mode 100644
index 000000000..e9dad53b1
--- /dev/null
+++ b/editors/gedit2/distinfo
@@ -0,0 +1 @@
+MD5 (gnome2/gedit-2.3.0.tar.bz2) = c994c8c72a28ca2238c037d1059b7687
diff --git a/editors/gedit2/files/patch-configure b/editors/gedit2/files/patch-configure
new file mode 100644
index 000000000..843cf5e98
--- /dev/null
+++ b/editors/gedit2/files/patch-configure
@@ -0,0 +1,31 @@
+--- configure.orig Tue Dec 17 05:27:57 2002
++++ configure Sun Dec 22 17:31:25 2002
+@@ -7270,6 +7270,7 @@
+
+ # This can be used to rebuild libtool when needed
+ LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
++$ac_aux_dir/ltconfig $LIBTOOL_DEPS
+
+ # Always use our own libtool.
+ LIBTOOL='$(SHELL) $(top_builddir)/libtool'
+@@ -10758,17 +10759,17 @@
+ if test "x${prefix}" = "xNONE"; then
+
+ cat >>confdefs.h <<_ACEOF
+-#define PIXMAPS_DIR "${ac_default_prefix}/${DATADIRNAME}/${PACKAGE}/pixmaps"
++
+ _ACEOF
+
+ pixmapsdir="${ac_default_prefix}/${DATADIRNAME}/${PACKAGE}/pixmaps"
+ else
+
+ cat >>confdefs.h <<_ACEOF
+-#define PIXMAPS_DIR "${prefix}/${DATADIRNAME}/${PACKAGE}/pixmaps"
++#define PIXMAPS_DIR "${datadir}/pixmaps"
+ _ACEOF
+
+- pixmapsdir="${prefix}/${DATADIRNAME}/${PACKAGE}/pixmaps"
++ pixmapsdir="${datadir}/pixmaps"
+ fi
+
+
diff --git a/editors/gedit2/pkg-descr b/editors/gedit2/pkg-descr
new file mode 100644
index 000000000..6016fb0db
--- /dev/null
+++ b/editors/gedit2/pkg-descr
@@ -0,0 +1,21 @@
+gEdit is a text editor for X using the GTK+ and GNOME libraries.
+It is being developed by Alex Roberts, Evan Lawrence and Chris Lahey
+(among others).
+
+This version is quite a neat text editor, it contains the following
+features:
+ * Opening/Saving/Creating of files;
+ * File Revert;
+ * Cut/Copy/Paste and Select All text;
+ * Complete integration with the GNOME Environment, including GnomeMDI;
+ * Search and Replace;
+ * Global search;
+ * A complete preferences interface;
+ * Dynamically loading fonts;
+ * Splitscreen Mode;
+ * Printing support;
+ * Configurable Plugins system;
+ * Configurable window sizing;
+ * Unlimited Undo/Redo.
+
+WWW: http://gedit.sourceforge.net/
diff --git a/editors/gedit2/pkg-plist b/editors/gedit2/pkg-plist
new file mode 100644
index 000000000..deeefc4e1
--- /dev/null
+++ b/editors/gedit2/pkg-plist
@@ -0,0 +1,213 @@
+bin/gedit
+bin/gnome-text-editor
+etc/gconf/gconf.xml.defaults/apps/gedit-2/%gconf.xml
+etc/gconf/gconf.xml.defaults/apps/gedit-2/preferences/%gconf.xml
+etc/gconf/gconf.xml.defaults/apps/gedit-2/preferences/editor/%gconf.xml
+etc/gconf/gconf.xml.defaults/apps/gedit-2/preferences/editor/auto_indent/%gconf.xml
+etc/gconf/gconf.xml.defaults/apps/gedit-2/preferences/editor/colors/%gconf.xml
+etc/gconf/gconf.xml.defaults/apps/gedit-2/preferences/editor/font/%gconf.xml
+etc/gconf/gconf.xml.defaults/apps/gedit-2/preferences/editor/line_numbers/%gconf.xml
+etc/gconf/gconf.xml.defaults/apps/gedit-2/preferences/editor/load/%gconf.xml
+etc/gconf/gconf.xml.defaults/apps/gedit-2/preferences/editor/save/%gconf.xml
+etc/gconf/gconf.xml.defaults/apps/gedit-2/preferences/editor/tabs/%gconf.xml
+etc/gconf/gconf.xml.defaults/apps/gedit-2/preferences/editor/undo/%gconf.xml
+etc/gconf/gconf.xml.defaults/apps/gedit-2/preferences/editor/wrap_mode/%gconf.xml
+etc/gconf/gconf.xml.defaults/apps/gedit-2/preferences/print/%gconf.xml
+etc/gconf/gconf.xml.defaults/apps/gedit-2/preferences/print/fonts/%gconf.xml
+etc/gconf/gconf.xml.defaults/apps/gedit-2/preferences/print/page/%gconf.xml
+etc/gconf/gconf.xml.defaults/apps/gedit-2/preferences/ui/%gconf.xml
+etc/gconf/gconf.xml.defaults/apps/gedit-2/preferences/ui/recents/%gconf.xml
+etc/gconf/gconf.xml.defaults/apps/gedit-2/preferences/ui/statusbar/%gconf.xml
+etc/gconf/gconf.xml.defaults/apps/gedit-2/preferences/ui/toolbar/%gconf.xml
+etc/gconf/gconf.xml.defaults/schemas/apps/gedit-2/%gconf.xml
+etc/gconf/gconf.xml.defaults/schemas/apps/gedit-2/preferences/%gconf.xml
+etc/gconf/gconf.xml.defaults/schemas/apps/gedit-2/preferences/editor/%gconf.xml
+etc/gconf/gconf.xml.defaults/schemas/apps/gedit-2/preferences/editor/auto_indent/%gconf.xml
+etc/gconf/gconf.xml.defaults/schemas/apps/gedit-2/preferences/editor/colors/%gconf.xml
+etc/gconf/gconf.xml.defaults/schemas/apps/gedit-2/preferences/editor/font/%gconf.xml
+etc/gconf/gconf.xml.defaults/schemas/apps/gedit-2/preferences/editor/line_numbers/%gconf.xml
+etc/gconf/gconf.xml.defaults/schemas/apps/gedit-2/preferences/editor/load/%gconf.xml
+etc/gconf/gconf.xml.defaults/schemas/apps/gedit-2/preferences/editor/save/%gconf.xml
+etc/gconf/gconf.xml.defaults/schemas/apps/gedit-2/preferences/editor/tabs/%gconf.xml
+etc/gconf/gconf.xml.defaults/schemas/apps/gedit-2/preferences/editor/undo/%gconf.xml
+etc/gconf/gconf.xml.defaults/schemas/apps/gedit-2/preferences/editor/wrap_mode/%gconf.xml
+etc/gconf/gconf.xml.defaults/schemas/apps/gedit-2/preferences/print/%gconf.xml
+etc/gconf/gconf.xml.defaults/schemas/apps/gedit-2/preferences/print/fonts/%gconf.xml
+etc/gconf/gconf.xml.defaults/schemas/apps/gedit-2/preferences/print/page/%gconf.xml
+etc/gconf/gconf.xml.defaults/schemas/apps/gedit-2/preferences/ui/%gconf.xml
+etc/gconf/gconf.xml.defaults/schemas/apps/gedit-2/preferences/ui/recents/%gconf.xml
+etc/gconf/gconf.xml.defaults/schemas/apps/gedit-2/preferences/ui/statusbar/%gconf.xml
+etc/gconf/gconf.xml.defaults/schemas/apps/gedit-2/preferences/ui/toolbar/%gconf.xml
+etc/gconf/schemas/gedit.schemas
+include/gedit-%%VERSION%%/gedit/bonobo-mdi-child.h
+include/gedit-%%VERSION%%/gedit/bonobo-mdi-session.h
+include/gedit-%%VERSION%%/gedit/bonobo-mdi.h
+include/gedit-%%VERSION%%/gedit/gedit-application-server.h
+include/gedit-%%VERSION%%/gedit/gedit-commands.h
+include/gedit-%%VERSION%%/gedit/gedit-debug.h
+include/gedit-%%VERSION%%/gedit/gedit-document.h
+include/gedit-%%VERSION%%/gedit/gedit-encodings.h
+include/gedit-%%VERSION%%/gedit/gedit-file-selector-util.h
+include/gedit-%%VERSION%%/gedit/gedit-file.h
+include/gedit-%%VERSION%%/gedit/gedit-mdi-child.h
+include/gedit-%%VERSION%%/gedit/gedit-mdi.h
+include/gedit-%%VERSION%%/gedit/gedit-menus.h
+include/gedit-%%VERSION%%/gedit/gedit-output-window.h
+include/gedit-%%VERSION%%/gedit/gedit-plugin.h
+include/gedit-%%VERSION%%/gedit/gedit-plugins-engine.h
+include/gedit-%%VERSION%%/gedit/gedit-prefs-manager.h
+include/gedit-%%VERSION%%/gedit/gedit-print.h
+include/gedit-%%VERSION%%/gedit/gedit-recent.h
+include/gedit-%%VERSION%%/gedit/gedit-session.h
+include/gedit-%%VERSION%%/gedit/gedit-undo-manager.h
+include/gedit-%%VERSION%%/gedit/gedit-utils.h
+include/gedit-%%VERSION%%/gedit/gedit-view.h
+include/gedit-%%VERSION%%/gedit/gedit2.h
+include/gedit-%%VERSION%%/gedit/recent-files/egg-recent-item.h
+include/gedit-%%VERSION%%/gedit/recent-files/egg-recent-model.h
+include/gedit-%%VERSION%%/gedit/recent-files/egg-recent-util.h
+include/gedit-%%VERSION%%/gedit/recent-files/egg-recent-view-bonobo.h
+include/gedit-%%VERSION%%/gedit/recent-files/egg-recent-view-gtk.h
+include/gedit-%%VERSION%%/gedit/recent-files/egg-recent-view.h
+lib/gedit-2/plugins/docinfo.gedit-plugin
+lib/gedit-2/plugins/libdocinfo.so
+lib/gedit-2/plugins/libsample.so
+lib/gedit-2/plugins/libspell.so
+lib/gedit-2/plugins/libtime.so
+lib/gedit-2/plugins/sample.gedit-plugin
+lib/gedit-2/plugins/spell.gedit-plugin
+lib/gedit-2/plugins/time.gedit-plugin
+libdata/bonobo/servers/GNOME_Gedit.server
+libdata/pkgconfig/gedit-%%VERSION%%.pc
+share/gnome/application-registry/gedit.applications
+share/gnome/applications/gedit.desktop
+share/gnome/gedit-2/glade/docinfo.glade2
+share/gnome/gedit-2/glade/gedit-encodings-dialog.glade2
+share/gnome/gedit-2/glade/gedit-preferences.glade2
+share/gnome/gedit-2/glade/goto-line.glade2
+share/gnome/gedit-2/glade/languages-dialog.glade2
+share/gnome/gedit-2/glade/plugin-manager.glade2
+share/gnome/gedit-2/glade/program-location-dialog.glade2
+share/gnome/gedit-2/glade/replace.glade2
+share/gnome/gedit-2/glade/spell-checker.glade2
+share/gnome/gedit-2/glade/time.glade2
+share/gnome/gedit-2/glade/uri.glade2
+share/gnome/gedit-2/ui/gedit-ui.xml
+share/gnome/help/gedit/C/figures/gedit_recent_files_menu_icon.png
+share/gnome/help/gedit/C/figures/gedit_window.png
+share/gnome/help/gedit/C/gedit.xml
+share/gnome/help/gedit/C/legal.xml
+share/gnome/help/gedit/ro/figures/gedit_window.png
+share/gnome/help/gedit/ro/gedit.xml
+share/gnome/help/gedit/ro/legal.xml
+share/gnome/idl/GNOME_Gedit.idl
+share/gnome/mime-info/gedit.keys
+share/gnome/omf/gedit/gedit-C.omf
+@exec scrollkeeper-install -q %D/share/gnome/omf/gedit/gedit-C.omf 2>/dev/null || /usr/bin/true
+share/gnome/omf/gedit/gedit-ro.omf
+@exec scrollkeeper-install -q %D/share/gnome/omf/gedit/gedit-ro.omf 2>/dev/null || /usr/bin/true
+share/gnome/pixmaps/gedit-icon.png
+share/gnome/pixmaps/gedit-logo.png
+share/gnome/pixmaps/gedit-plugin-manager.png
+share/locale/am/LC_MESSAGES/gedit-2.0.mo
+share/locale/ar/LC_MESSAGES/gedit-2.0.mo
+share/locale/az/LC_MESSAGES/gedit-2.0.mo
+share/locale/be/LC_MESSAGES/gedit-2.0.mo
+share/locale/bg/LC_MESSAGES/gedit-2.0.mo
+share/locale/ca/LC_MESSAGES/gedit-2.0.mo
+share/locale/cs/LC_MESSAGES/gedit-2.0.mo
+share/locale/da/LC_MESSAGES/gedit-2.0.mo
+share/locale/de/LC_MESSAGES/gedit-2.0.mo
+share/locale/el/LC_MESSAGES/gedit-2.0.mo
+share/locale/es/LC_MESSAGES/gedit-2.0.mo
+share/locale/et/LC_MESSAGES/gedit-2.0.mo
+share/locale/eu/LC_MESSAGES/gedit-2.0.mo
+share/locale/fa/LC_MESSAGES/gedit-2.0.mo
+share/locale/fi/LC_MESSAGES/gedit-2.0.mo
+share/locale/fr/LC_MESSAGES/gedit-2.0.mo
+share/locale/ga/LC_MESSAGES/gedit-2.0.mo
+share/locale/gl/LC_MESSAGES/gedit-2.0.mo
+share/locale/he/LC_MESSAGES/gedit-2.0.mo
+share/locale/hi/LC_MESSAGES/gedit-2.0.mo
+share/locale/hu/LC_MESSAGES/gedit-2.0.mo
+share/locale/it/LC_MESSAGES/gedit-2.0.mo
+share/locale/ja/LC_MESSAGES/gedit-2.0.mo
+share/locale/kn/LC_MESSAGES/gedit-2.0.mo
+share/locale/ko/LC_MESSAGES/gedit-2.0.mo
+share/locale/lt/LC_MESSAGES/gedit-2.0.mo
+share/locale/lv/LC_MESSAGES/gedit-2.0.mo
+share/locale/mk/LC_MESSAGES/gedit-2.0.mo
+share/locale/ml/LC_MESSAGES/gedit-2.0.mo
+share/locale/mn/LC_MESSAGES/gedit-2.0.mo
+share/locale/ms/LC_MESSAGES/gedit-2.0.mo
+share/locale/nl/LC_MESSAGES/gedit-2.0.mo
+share/locale/nn/LC_MESSAGES/gedit-2.0.mo
+share/locale/no/LC_MESSAGES/gedit-2.0.mo
+share/locale/pl/LC_MESSAGES/gedit-2.0.mo
+share/locale/pt/LC_MESSAGES/gedit-2.0.mo
+share/locale/pt_BR/LC_MESSAGES/gedit-2.0.mo
+share/locale/ro/LC_MESSAGES/gedit-2.0.mo
+share/locale/ru/LC_MESSAGES/gedit-2.0.mo
+share/locale/sk/LC_MESSAGES/gedit-2.0.mo
+share/locale/sl/LC_MESSAGES/gedit-2.0.mo
+share/locale/sv/LC_MESSAGES/gedit-2.0.mo
+share/locale/ta/LC_MESSAGES/gedit-2.0.mo
+share/locale/th/LC_MESSAGES/gedit-2.0.mo
+share/locale/tr/LC_MESSAGES/gedit-2.0.mo
+share/locale/uk/LC_MESSAGES/gedit-2.0.mo
+share/locale/vi/LC_MESSAGES/gedit-2.0.mo
+share/locale/wa/LC_MESSAGES/gedit-2.0.mo
+share/locale/zh_CN/LC_MESSAGES/gedit-2.0.mo
+share/locale/zh_TW/LC_MESSAGES/gedit-2.0.mo
+@dirrm share/gnome/omf/gedit
+@dirrm share/gnome/help/gedit/ro/figures
+@dirrm share/gnome/help/gedit/ro
+@dirrm share/gnome/help/gedit/C/figures
+@dirrm share/gnome/gedit-2/ui
+@dirrm share/gnome/gedit-2/glade
+@dirrm share/gnome/gedit-2
+@dirrm lib/gedit-2/plugins
+@dirrm lib/gedit-2
+@dirrm include/gedit-%%VERSION%%/gedit/recent-files
+@dirrm include/gedit-%%VERSION%%/gedit
+@dirrm include/gedit-%%VERSION%%
+@dirrm etc/gconf/gconf.xml.defaults/schemas/apps/gedit-2/preferences/ui/toolbar
+@dirrm etc/gconf/gconf.xml.defaults/schemas/apps/gedit-2/preferences/ui/statusbar
+@dirrm etc/gconf/gconf.xml.defaults/schemas/apps/gedit-2/preferences/ui/recents
+@dirrm etc/gconf/gconf.xml.defaults/schemas/apps/gedit-2/preferences/ui
+@dirrm etc/gconf/gconf.xml.defaults/schemas/apps/gedit-2/preferences/print/page
+@dirrm etc/gconf/gconf.xml.defaults/schemas/apps/gedit-2/preferences/print/fonts
+@dirrm etc/gconf/gconf.xml.defaults/schemas/apps/gedit-2/preferences/print
+@dirrm etc/gconf/gconf.xml.defaults/schemas/apps/gedit-2/preferences/editor/wrap_mode
+@dirrm etc/gconf/gconf.xml.defaults/schemas/apps/gedit-2/preferences/editor/undo
+@dirrm etc/gconf/gconf.xml.defaults/schemas/apps/gedit-2/preferences/editor/tabs
+@dirrm etc/gconf/gconf.xml.defaults/schemas/apps/gedit-2/preferences/editor/save
+@dirrm etc/gconf/gconf.xml.defaults/schemas/apps/gedit-2/preferences/editor/load
+@dirrm etc/gconf/gconf.xml.defaults/schemas/apps/gedit-2/preferences/editor/line_numbers
+@dirrm etc/gconf/gconf.xml.defaults/schemas/apps/gedit-2/preferences/editor/font
+@dirrm etc/gconf/gconf.xml.defaults/schemas/apps/gedit-2/preferences/editor/colors
+@dirrm etc/gconf/gconf.xml.defaults/schemas/apps/gedit-2/preferences/editor/auto_indent
+@dirrm etc/gconf/gconf.xml.defaults/schemas/apps/gedit-2/preferences/editor
+@dirrm etc/gconf/gconf.xml.defaults/schemas/apps/gedit-2/preferences
+@dirrm etc/gconf/gconf.xml.defaults/schemas/apps/gedit-2
+@dirrm etc/gconf/gconf.xml.defaults/apps/gedit-2/preferences/ui/toolbar
+@dirrm etc/gconf/gconf.xml.defaults/apps/gedit-2/preferences/ui/statusbar
+@dirrm etc/gconf/gconf.xml.defaults/apps/gedit-2/preferences/ui/recents
+@dirrm etc/gconf/gconf.xml.defaults/apps/gedit-2/preferences/ui
+@dirrm etc/gconf/gconf.xml.defaults/apps/gedit-2/preferences/print/page
+@dirrm etc/gconf/gconf.xml.defaults/apps/gedit-2/preferences/print/fonts
+@dirrm etc/gconf/gconf.xml.defaults/apps/gedit-2/preferences/print
+@dirrm etc/gconf/gconf.xml.defaults/apps/gedit-2/preferences/editor/wrap_mode
+@dirrm etc/gconf/gconf.xml.defaults/apps/gedit-2/preferences/editor/undo
+@dirrm etc/gconf/gconf.xml.defaults/apps/gedit-2/preferences/editor/tabs
+@dirrm etc/gconf/gconf.xml.defaults/apps/gedit-2/preferences/editor/save
+@dirrm etc/gconf/gconf.xml.defaults/apps/gedit-2/preferences/editor/load
+@dirrm etc/gconf/gconf.xml.defaults/apps/gedit-2/preferences/editor/line_numbers
+@dirrm etc/gconf/gconf.xml.defaults/apps/gedit-2/preferences/editor/font
+@dirrm etc/gconf/gconf.xml.defaults/apps/gedit-2/preferences/editor/colors
+@dirrm etc/gconf/gconf.xml.defaults/apps/gedit-2/preferences/editor/auto_indent
+@dirrm etc/gconf/gconf.xml.defaults/apps/gedit-2/preferences/editor
+@dirrm etc/gconf/gconf.xml.defaults/apps/gedit-2/preferences
+@dirrm etc/gconf/gconf.xml.defaults/apps/gedit-2
+@unexec scrollkeeper-uninstall -q %D/share/gnome/omf/gedit/gedit-C.omf 2>/dev/null || /usr/bin/true
+@unexec scrollkeeper-uninstall -q %D/share/gnome/omf/gedit/gedit-ro.omf 2>/dev/null || /usr/bin/true