~ubuntu-branches/ubuntu/quantal/open-vm-tools/quantal-201210021442

« back to all changes in this revision

Viewing changes to scripts/build/instvmsg.sh

  • Committer: Bazaar Package Importer
  • Author(s): Serge Hallyn
  • Date: 2011-03-31 14:20:05 UTC
  • mfrom: (1.4.3 upstream)
  • Revision ID: james.westby@ubuntu.com-20110331142005-3n9red91p7ogkweo
Tags: 2011.03.28-387002-0ubuntu1
* Merge latest upstream git tag.  This has the unlocked_ioctl change
  needed to fix dkms build failures (LP: #727342)
* Changes in debian/rules:
  - work around a bug in toolbox/Makefile, where install-exec-hook is
    not happening.  This needs to get fixed the right way.
  - don't install 'vmware-user' which seems to no longer exist
  - move /etc/xdg into open-vm-toolbox (which should be done using .install)
* debian/open-vm-tools.init: add 'modprobe [-r] vmblock'. (LP: #332323)
* debian/rules and debian/open-vm-toolbox.lintian-overrides:
  - Make vmware-user-suid-wrapper suid-root (LP: #332323)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/sh
 
2
################################################################################
 
3
### Copyright 2011 VMware, Inc.  All rights reserved.
 
4
###
 
5
### This program is free software; you can redistribute it and/or modify
 
6
### it under the terms of version 2 of the GNU General Public License as
 
7
### published by the Free Software Foundation.
 
8
###
 
9
### This program is distributed in the hope that it will be useful,
 
10
### but WITHOUT ANY WARRANTY; without even the implied warranty of
 
11
### MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
12
### GNU General Public License for more details.
 
13
###
 
14
### You should have received a copy of the GNU General Public License
 
15
### along with this program; if not, write to the Free Software
 
16
### Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
 
17
################################################################################
 
18
 
 
19
#
 
20
# instvmsg.sh - VMSG catalog install script.
 
21
#
 
22
# This script installs a set of VMSG catalogs into their correct location. It
 
23
# avoids having to copy and paste this logic into several makefiles, especially
 
24
# since non-GNU make does not support $(call ...).
 
25
#
 
26
# Arguments:
 
27
# prog   ($1): program name (name of target catalog file)
 
28
# src    ($2): directory where catalogs are stored in the source tree.
 
29
# dest   ($3): $(datadir)
 
30
# $@         : language codes
 
31
#
 
32
 
 
33
prog=$1
 
34
src=$2
 
35
dest=$3
 
36
 
 
37
if test -z $dest; then
 
38
   echo "Missing parameters." 1>&2
 
39
   exit 1
 
40
fi
 
41
 
 
42
for i in $src/*.vmsg; do
 
43
   ldest=`basename $i`
 
44
   ldest=${dest}/open-vm-tools/messages/`echo $ldest | cut -d . -f 1 -`
 
45
   if ! test -d $ldest; then
 
46
      mkdir -p $ldest
 
47
   fi
 
48
   cp -f $i ${ldest}/${prog}.vmsg || exit 1
 
49
done
 
50