~ubuntu-branches/ubuntu/lucid/mew-beta/lucid

« back to all changes in this revision

Viewing changes to debian/emacsen-install.in

  • Committer: Bazaar Package Importer
  • Author(s): Tatsuya Kinoshita
  • Date: 2006-10-31 22:07:48 UTC
  • mfrom: (1.1.6 upstream) (2.1.2 etch)
  • Revision ID: james.westby@ubuntu.com-20061031220748-iq1bg528g9nt2l57
Tags: 5.1.52~0.20061031-1
New upstream release. (CVS trunk on 2006-10-31)

Show diffs side-by-side

added added

removed removed

Lines of Context:
88
88
      if [ "X${EMACSEN}" != "X${EMACSEN_MULE}" ]; then
89
89
        rm -f mew-lang-jp.el mew-mule3.el
90
90
      fi
91
 
      # files except mew-nmz*.el
92
 
      FILES=`echo *.el | awk '{gsub("mew-nmz[-a-z]*[.]el", ""); print}'`
 
91
      rm -f auxiliary.el
 
92
      FILES=`ls -1 *.el | grep -v '^mew-nmz'`
93
93
      cat << EOF > path.el
94
 
(setq load-path (cons "." load-path) byte-compile-warnings nil)
 
94
(setq load-path (cons "." load-path))
 
95
(setq byte-compile-warnings nil)
 
96
(setq mew-compiling t)
95
97
EOF
96
98
      ${EMACSEN} ${FLAGS} ${FILES} >CompilationLog 2>&1 || abort_install
97
99
      if [ "X${EMACSEN}" != "X${EMACSEN_MULE}" ]; then
99
101
      else
100
102
        # compile mew-nmz*.el if possible
101
103
        if [ -e /usr/share/${FLAVOR}/site-lisp/w3m/w3m-namazu.elc ]; then
102
 
          cat << EOF > path.el
103
 
(setq load-path (cons "." (cons "/usr/share/${FLAVOR}/site-lisp/w3m" load-path)) byte-compile-warnings nil)
 
104
          cat << EOF >> path.el
 
105
(setq load-path (cons "/usr/share/${FLAVOR}/site-lisp/w3m" load-path))
104
106
EOF
105
107
          ${EMACSEN} ${FLAGS} mew-nmz*.el >>CompilationLog 2>&1 || abort_install
106
108
          rm -f mew-nmz*.el
111
113
          rm -f 'mew-nmz*.el'
112
114
        fi
113
115
      fi
 
116
      rm -f etc
 
117
      ln -sf ${ELDIR}/etc .
114
118
      rm -f ${FILES} path.el
115
119
      ( for d in "${ELDIR}" "${ELDIR}/contrib"; do
116
120
          if [ -d ${d} ]; then
123
127
          fi
124
128
        done
125
129
      )
126
 
      gzip -9 ${ELCDIR}/CompilationLog
127
 
      chmod 644 ${ELCDIR}/CompilationLog.gz
128
 
      if [ -f ${ELCDIR}/mew.elc ]; then
129
 
        chmod 644 ${ELCDIR}/*.elc
 
130
      gzip -9 CompilationLog
 
131
      chmod 644 CompilationLog.gz
 
132
      if [ -f mew.elc ]; then
 
133
        chmod 644 *.elc
130
134
        echo "${VERSION}" > ${STAMP}
131
135
        chmod 644 ${STAMP}
132
136
        COMPILED=yes