File: synce-install-cab.in

package info (click to toggle)
librapi2 0.9.0-6
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 2,204 kB
  • ctags: 1,258
  • sloc: sh: 9,013; ansic: 5,743; cpp: 522; makefile: 171
file content (31 lines) | stat: -rwxr-xr-x 679 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#!/bin/bash
#
# $Id: synce-install-cab.in,v 1.1 2002/11/27 09:15:23 twogood Exp $
#
# Script to install a .cab file
#
prefix=@prefix@
exec_prefix=@exec_prefix@

if [ ! -f "$1" ]; then
	echo "Enter .cab file as parameter"
	exit 1
fi

#
# First, make sure that these directories exist
#
set +e
@bindir@/synce-pmkdir /Windows/AppMgr 2>/dev/null
@bindir@/synce-pmkdir /Windows/AppMgr/Install 2>/dev/null

set -e

# copy the file to a special directory
echo "Copying file '$1' to device..."
@bindir@/synce-pcp "$1" ":/Windows/AppMgr/Install/synce-install.cab"

# run program that installs cab file in /Windows/AppMgr/Install
echo "Installing '$1'..."
@bindir@/synce-prun wceload.exe