~ubuntu-branches/ubuntu/wily/semi/wily

« back to all changes in this revision

Viewing changes to debian/emacsen-install.in

  • Committer: Bazaar Package Importer
  • Author(s): Tatsuya Kinoshita
  • Date: 2006-12-02 22:17:07 UTC
  • mfrom: (1.2.1 upstream) (3.1.3 edgy)
  • Revision ID: james.westby@ubuntu.com-20061202221707-zc72qytibw6mmc0v
Tags: 1.14.6+0.20061202-1
* New upstream release. (CVS semi-1_14 branch on 2006-12-02)
* debian/copyright: Reformat copyright years.
* debian/copyright: Mention Debian packaging conditions.

Show diffs side-by-side

added added

removed removed

Lines of Context:
32
32
EMACSEN_NOMULE=""
33
33
 
34
34
FLAVOR_SUFFIX=`echo ${FLAVOR} | cut -s -d - -f 2`
35
 
FLAVORTEST=`echo ${FLAVOR} | cut -c-6`
 
35
FLAVORTEST=`echo ${FLAVOR} | sed -e s/^s// | cut -c-6`
36
36
if [ "X${FLAVORTEST}" = "Xxemacs" ]; then
37
37
  FLAVOR_BODY=`echo ${FLAVOR} | cut -d - -f 1`
38
38
  if [ "X${FLAVOR_SUFFIX}" = "Xmule" ]; then
156
156
done
157
157
 
158
158
if [ "X${COMPILED}" = Xyes ]; then
159
 
  # recompile wl and wl-beta
 
159
  RECOMPILE_WL=no
 
160
  RECOMPILE_TGNUS=no
 
161
  RECOMPILE_W3MEL=no
160
162
  if [ -d /usr/share/${FLAVOR}/site-lisp/wl ]; then
 
163
    RECOMPILE_WL=yes
 
164
  fi
 
165
  if [ -d /usr/share/${FLAVOR}/site-lisp/t-gnus ]; then
 
166
    RECOMPILE_TGNUS=yes
 
167
  fi
 
168
  if [ -d /usr/share/${FLAVOR}/site-lisp/w3m ]; then
 
169
    RECOMPILE_W3MEL=yes
 
170
  fi
 
171
  if [ "X${RECOMPILE_WL}" = Xyes ]; then
 
172
    # remove wl/wl-beta before removing w3m-el to prevent redundant byte-compiling
161
173
    for pkg in wl wl-beta; do
162
 
      if [ -f /usr/lib/emacsen-common/packages/install/${pkg} ]; then
163
 
        /usr/lib/emacsen-common/packages/remove/${pkg} ${FLAVOR}
164
 
        /usr/lib/emacsen-common/packages/install/${pkg} ${FLAVOR}
 
174
      f=/usr/lib/emacsen-common/packages/remove/${pkg}
 
175
      if [ -f ${f} ]; then
 
176
        ${f} ${FLAVOR}
165
177
      fi
166
178
    done
167
179
  fi
168
 
  # recompile t-gnus
169
 
  pkg=t-gnus
170
 
  if [ -d /usr/share/${FLAVOR}/site-lisp/${pkg} ]; then
171
 
    if [ -f /usr/lib/emacsen-common/packages/install/${pkg} ]; then
172
 
      /usr/lib/emacsen-common/packages/remove/${pkg} ${FLAVOR}
173
 
      /usr/lib/emacsen-common/packages/install/${pkg} ${FLAVOR}
 
180
  if [ "X${RECOMPILE_TGNUS}" = Xyes ]; then
 
181
    pkg=t-gnus
 
182
    f=/usr/lib/emacsen-common/packages/remove/${pkg}
 
183
    if [ -f ${f} ]; then
 
184
      ${f} ${FLAVOR}
 
185
    fi
 
186
  fi
 
187
  if [ "X${RECOMPILE_W3MEL}" = Xyes ]; then
 
188
    pkg=w3m-el
 
189
    f=/usr/lib/emacsen-common/packages/remove/${pkg}
 
190
    if [ -f ${f} ]; then
 
191
      ${f} ${FLAVOR}
 
192
    fi
 
193
    # install w3m-el before installing wl/wl-beta to prevent redundant byte-compiling
 
194
    pkg=w3m-el
 
195
    f=/usr/lib/emacsen-common/packages/install/${pkg}
 
196
    if [ -f ${f} ]; then
 
197
      ${f} ${FLAVOR}
 
198
    fi
 
199
  fi
 
200
  if [ "X${RECOMPILE_TGNUS}" = Xyes ]; then
 
201
    pkg=t-gnus
 
202
    if [ ! -d /usr/share/${FLAVOR}/site-lisp/${pkg} ]; then
 
203
      f=/usr/lib/emacsen-common/packages/install/${pkg}
 
204
      if [ -f ${f} ]; then
 
205
        ${f} ${FLAVOR}
 
206
      fi
 
207
    fi
 
208
  fi
 
209
  if [ "X${RECOMPILE_WL}" = Xyes ]; then
 
210
    if [ ! -d /usr/share/${FLAVOR}/site-lisp/wl ]; then
 
211
      for pkg in wl wl-beta; do
 
212
        f=/usr/lib/emacsen-common/packages/install/${pkg}
 
213
        if [ -f ${f} ]; then
 
214
          ${f} ${FLAVOR}
 
215
        fi
 
216
      done
174
217
    fi
175
218
  fi
176
219
fi