Package: librapi2-tools
Version: 0.9.0-5
Severity: important
Tags: patch

The binaries provided by librapi2-tools have changed from /usr/bin/p<foo>
to /usr/bin/synce-p<foo> but scripts using these binaries have not been 
updated. At least following scrips are currently broken:

from librapi2-tools (0.9.0-5):
  synce-install-cab
  synce-remove-program

from synce-dccm (0.9.0-1):
  synce-sound

The fix is trivial (sed s:bin/p:bin/synce-p:g) and I have attached a 
patch fixing the previously mentioned three scripts.

-kimju
--- synce-install-cab~  2005-01-17 02:16:09.000000000 +0200
+++ synce-install-cab   2005-01-17 02:16:09.000000000 +0200
@@ -16,16 +16,16 @@
 # First, make sure that these directories exist
 #
 set +e
-${exec_prefix}/bin/pmkdir /Windows/AppMgr 2>/dev/null
-${exec_prefix}/bin/pmkdir /Windows/AppMgr/Install 2>/dev/null
+${exec_prefix}/bin/synce-pmkdir /Windows/AppMgr 2>/dev/null
+${exec_prefix}/bin/synce-pmkdir /Windows/AppMgr/Install 2>/dev/null
 
 set -e
 
 # copy the file to a special directory
 echo "Copying file '$1' to device..."
-${exec_prefix}/bin/pcp "$1" ":/Windows/AppMgr/Install/synce-install.cab"
+${exec_prefix}/bin/synce-pcp "$1" ":/Windows/AppMgr/Install/synce-install.cab"
 
 # run program that installs cab file in /Windows/AppMgr/Install
 echo "Installing '$1'..."
-${exec_prefix}/bin/prun wceload.exe
+${exec_prefix}/bin/synce-prun wceload.exe
 
--- synce-remove-program~       2005-01-17 02:22:28.000000000 +0200
+++ synce-remove-program        2005-01-17 02:22:28.000000000 +0200
@@ -17,4 +17,4 @@
        exit 1
 fi
 
-${exec_prefix}/bin/prun unload.exe "$1"
+${exec_prefix}/bin/synce-prun unload.exe "$1"
--- synce-sound~        2005-01-17 02:24:44.000000000 +0200
+++ synce-sound 2005-01-17 02:24:44.000000000 +0200
@@ -19,8 +19,8 @@
        connect)
                mkdir -p $SOUND_DIR
                if [ ! -f $CONNECT ]; then
-                       /usr/bin/pcp ":/Windows/Infbeg.wav" 
$SOUND_DIR/connect.wav
-                       /usr/bin/pcp ":/Windows/Infend.wav" 
$SOUND_DIR/disconnect.wav
+                       /usr/bin/synce-pcp ":/Windows/Infbeg.wav" 
$SOUND_DIR/connect.wav
+                       /usr/bin/synce-pcp ":/Windows/Infend.wav" 
$SOUND_DIR/disconnect.wav
                fi
                $PLAY $CONNECT
                ;;

Reply via email to