aboutsummaryrefslogblamecommitdiff
path: root/chinese/MT/pkg-install
blob: cc1233295f2b3eaf86e49df1e8d3523ca266dd74 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11










                                                           
#!/bin/sh
DIFF=${PKG_PREFIX}/www/data/mt/mt.diff
CGIDIR=${PKG_PREFIX}/www/cgi-bin/mt

if [ "$2" = "POST-INSTALL" ]; then
  cat ${DIFF} | patch -d ${CGIDIR} --forward --quiet -E -p1
  find ${CGIDIR} -name "*.orig" -delete
elif [ "$2" = "DEINSTALL" ]; then
  cat ${DIFF} | patch -d ${CGIDIR} --reverse --quiet -E -p1
  find ${CGIDIR} -name "*.orig" -delete
fi