~ubuntu-branches/ubuntu/precise/enigmail/precise-security

« back to all changes in this revision

Viewing changes to util/install

  • Committer: Package Import Robot
  • Author(s): Chris Coulson
  • Date: 2014-01-30 11:42:56 UTC
  • mfrom: (0.12.17)
  • Revision ID: package-import@ubuntu.com-20140130114256-6yvx7ylu1cwrhwp2
Tags: 2:1.7-0ubuntu0.12.04.1
* New upstream release v1.7 to support Thunderbird 31

* No longer requires a Mozilla build system, so we use the upstream
  tarball directly now
  - update debian/rules
  - drop libgtk2.0-dev, libidl-dev, libdbus-glib-1-dev, libnotify-dev,
    libasound2-dev, libxt-dev, autoconf2.13 and mesa-common-dev
    build-depends, as these were only there because we were using a hacked
    Mozilla build system
* Update to source format 3.0
* Drop thunderbird-dev build-depend - the only binary code in enigmail now
  uses ctypes, so we don't need the SDK
* Drop debian/patches/no_libxpcom.patch - it doesn't build a binary component
  now
* Drop debian/patches/use_sdk.patch - there's no dependency on the
  Thunderbird SDK now

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/sh
 
2
 
 
3
# This Source Code Form is subject to the terms of the Mozilla Public
 
4
# License, v. 2.0. If a copy of the MPL was not distributed with this
 
5
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
 
6
 
 
7
# install files at a target place
 
8
#
 
9
# usage:
 
10
# install [ -m xxx] [-u] target_dir source_files ...
 
11
#
 
12
# -m exec mode of files
 
13
# -u uninstall
 
14
 
 
15
# files
 
16
 
 
17
TARGETMODE=""
 
18
INSTALLMODE="i"
 
19
 
 
20
if [ "$1" = "-m" ]; then
 
21
  TARGETMODE=$2
 
22
  shift 2
 
23
fi
 
24
 
 
25
if [ "$1" = "-u" ]; then
 
26
  INSTALLMODE="u"
 
27
  shift
 
28
fi
 
29
 
 
30
TARGETDIR=$1
 
31
mkdir -p ${TARGETDIR}
 
32
 
 
33
shift
 
34
 
 
35
while [ $# -gt 0 ]; do
 
36
 
 
37
  SRCFILE=$1
 
38
  BASEFILE=`basename $1`
 
39
 
 
40
  if [ $INSTALLMODE = "i" ]; then
 
41
    # install files
 
42
    cp ${SRCFILE} ${TARGETDIR}/${BASEFILE} || exit 1
 
43
 
 
44
    if [ "$TARGETMODE" != "" ]; then
 
45
      chmod $TARGETMODE ${TARGETDIR}/${BASEFILE} || exit 1
 
46
    fi
 
47
 
 
48
  else
 
49
    # uninstall files
 
50
    rm -f ${TARGETDIR}/${BASEFILE}
 
51
  fi
 
52
 
 
53
  shift
 
54
done