~ubuntu-branches/debian/sid/ncurses/sid-200908151543

« back to all changes in this revision

Viewing changes to progs/MKtermsort.sh

  • Committer: Bazaar Package Importer
  • Author(s): Daniel Baumann
  • Date: 2008-12-14 21:06:00 UTC
  • mfrom: (1.1.3 upstream)
  • Revision ID: james.westby@ubuntu.com-20081214210600-2rdjwvpplgvh3zeb
Tags: 5.7+20081213-1
MergingĀ upstreamĀ versionĀ 5.7+20081213.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#!/bin/sh
2
 
# $Id: MKtermsort.sh,v 1.9 2003/01/11 22:23:50 tom Exp $
 
2
# $Id: MKtermsort.sh,v 1.10 2008/07/12 20:22:54 tom Exp $
3
3
#
4
4
# MKtermsort.sh -- generate indirection vectors for the various sort methods
5
5
#
6
6
##############################################################################
7
 
# Copyright (c) 1998-2002,2003 Free Software Foundation, Inc.                #
 
7
# Copyright (c) 1998-2003,2008 Free Software Foundation, Inc.                #
8
8
#                                                                            #
9
9
# Permission is hereby granted, free of charge, to any person obtaining a    #
10
10
# copy of this software and associated documentation files (the "Software"), #
56
56
echo " * Note: this file is generated using MKtermsort.sh, do not edit by hand.";
57
57
echo " */";
58
58
 
59
 
echo "static const int bool_terminfo_sort[] = {";
 
59
echo "static const PredIdx bool_terminfo_sort[] = {";
60
60
$AWK <$DATA '
61
61
BEGIN           {i = 0;}
62
62
/^#/            {next;}
65
65
echo "};";
66
66
echo "";
67
67
 
68
 
echo "static const int num_terminfo_sort[] = {";
 
68
echo "static const PredIdx num_terminfo_sort[] = {";
69
69
$AWK <$DATA '
70
70
BEGIN           {i = 0;}
71
71
/^#/            {next;}
74
74
echo "};";
75
75
echo "";
76
76
 
77
 
echo "static const int str_terminfo_sort[] = {";
 
77
echo "static const PredIdx str_terminfo_sort[] = {";
78
78
$AWK <$DATA '
79
79
BEGIN           {i = 0;}
80
80
/^#/            {next;}
83
83
echo "};";
84
84
echo "";
85
85
 
86
 
echo "static const int bool_variable_sort[] = {";
 
86
echo "static const PredIdx bool_variable_sort[] = {";
87
87
$AWK <$DATA '
88
88
BEGIN           {i = 0;}
89
89
/^#/            {next;}
92
92
echo "};";
93
93
echo "";
94
94
 
95
 
echo "static const int num_variable_sort[] = {";
 
95
echo "static const PredIdx num_variable_sort[] = {";
96
96
$AWK <$DATA '
97
97
BEGIN           {i = 0;}
98
98
/^#/            {next;}
101
101
echo "};";
102
102
echo "";
103
103
 
104
 
echo "static const int str_variable_sort[] = {";
 
104
echo "static const PredIdx str_variable_sort[] = {";
105
105
$AWK <$DATA '
106
106
BEGIN           {i = 0;}
107
107
/^#/            {next;}
110
110
echo "};";
111
111
echo "";
112
112
 
113
 
echo "static const int bool_termcap_sort[] = {";
 
113
echo "static const PredIdx bool_termcap_sort[] = {";
114
114
$AWK <$DATA '
115
115
BEGIN           {i = 0;}
116
116
/^#/            {next;}
119
119
echo "};";
120
120
echo "";
121
121
 
122
 
echo "static const int num_termcap_sort[] = {";
 
122
echo "static const PredIdx num_termcap_sort[] = {";
123
123
$AWK <$DATA '
124
124
BEGIN           {i = 0;}
125
125
/^#/            {next;}
128
128
echo "};";
129
129
echo "";
130
130
 
131
 
echo "static const int str_termcap_sort[] = {";
 
131
echo "static const PredIdx str_termcap_sort[] = {";
132
132
$AWK <$DATA '
133
133
BEGIN           {i = 0;}
134
134
/^#/            {next;}