Package: aegis / 4.24.3-3

debian_remove_manpath_and_use_sensiblepager_in_aedpager.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
Index: aegis.git/lib/cshrc.in
===================================================================
--- aegis.git.orig/lib/cshrc.in	2009-10-14 09:46:54.000000000 +0200
+++ aegis.git/lib/cshrc.in	2009-10-14 19:00:32.000000000 +0200
@@ -27,22 +27,6 @@
 endif
 
 #
-# Set the MANPATH environment variable to include the Aegis' library
-# directory.  This directory contains subdirectories for each of the
-# supported languages, structured in such a way that man(1) programs
-# which understand the $LANGUAGE environment variable will be able to find
-# manual pages in the user's preferred language.
-#
-# On old versions of man, you could use man -w to find the default value
-# for $MANPATH.  We'll have to submit a bug report, hmm?
-#
-if ( ! $?MANPATH ) then
-    setenv MANPATH "`@MANPATH_PROG@`"
-endif
-setenv MANPATH ${MANPATH}:@mandir@:@datadir@
-# setenv MANPATH ${MANPATH}:@mandir@:@datadir@:@datarootdir@
-
-#
 # Set the AEGIS_AUTOMOUNT_POINTS environment variable to the names
 # of the directories which the automounter uses to temporarily mount
 # file systems.  Use with extreme caution as this distorts Aegis' idea
@@ -92,6 +76,8 @@
     'less `find . -type f \( -name "*,D" -o -name ".*,D" \) -print | sort`'
 alias aedmore	\
     'more `find . -type f \( -name "*,D" -o -name ".*,D" \) -print | sort`'
+alias aedpager \
+    'sensible-pager `find . -type f \( -name "*,D" -o -name ".*,D" \) -print | sort`'
 alias	aedn	'aegis -dn \!* -v'
 alias	aefa	'aegis -fat \!* -v'
 alias	aeib	'aegis -ib \!* -v'
Index: aegis.git/lib/profile.in
===================================================================
--- aegis.git.orig/lib/profile.in	2009-10-14 09:46:54.000000000 +0200
+++ aegis.git/lib/profile.in	2009-10-14 19:00:32.000000000 +0200
@@ -32,20 +32,6 @@
 fi
 
 #
-# Set the MANPATH environment variable to include the Aegis' library
-# directory.  This directory contains subdirectories for each of the
-# supported languages, structured in such a way that man(1) programs
-# which understand the $LANGUAGE environment variable will be able to find
-# manual pages in the user's preferred language.
-#
-if [ "${MANPATH-no}" = "no" ]; then
-    MANPATH="`@MANPATH_PROG@`"
-fi
-MANPATH=${MANPATH}:@mandir@:@datadir@
-# MANPATH=${MANPATH}:@mandir@:@datadir@:@datarootdir@
-export MANPATH
-
-#
 # Set the AEGIS_AUTOMOUNT_POINTS environment variable to the names
 # of the directories which the automounter uses to temporarily mount
 # file systems.  Use with extreme caution as this distorts Aegis' idea
@@ -142,6 +128,10 @@
 {
 	more `find . -type f \( -name "*,D" -o -name ".*,D" \) -print | sort`
 }
+aedpager()
+{
+        find . -type f \( -name "*,D" -o -name ".*,D" \) -print | sort | xargs sensible-pager
+}
 aedn()
 {
 	aegis -dn "$@" -v