More space in paths awareness.

git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6343 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Philippe Houdoin
2004-01-27 08:17:04 +00:00
parent eb0b2846e8
commit 8042d2a0f8
+23 -23
View File
@@ -2113,8 +2113,8 @@ rule PackageZip
} }
actions together PackageZip1 { actions together PackageZip1 {
cd $(OBOS_PACKAGE_DIR) ; cd "$(OBOS_PACKAGE_DIR)" ;
zip -rq $(1:BS) $(2:BS) ; zip -rq "$(1:BS)" "$(2:BS)" ;
} }
rule PackageInstallScript rule PackageInstallScript
@@ -2128,27 +2128,27 @@ actions together PackageInstallScript1
{ {
echo '#!/bin/sh echo '#!/bin/sh
base=`dirname "$0"` base=`dirname "$0"`
cd $base cd "$base"
if [ -n "$TTY" ] if [ -n "$TTY" ]
then then
unzip -d / install.zip unzip -d / install.zip
else else
response=`alert "Would you like to automatically overwrite existing files, or receive a prompt?" "Overwrite" "Prompt"` response=`alert "Would you like to automatically overwrite existing files, or receive a prompt?" "Overwrite" "Prompt"`
if [ $response == "Overwrite" ] if [ $response == "Overwrite" ]
then then
unzip -od / install.zip unzip -od / install.zip
alert "Finished installing" "Thanks" alert "Finished installing" "Thanks"
else else
if [ -e /boot/beos/apps/Terminal ] if [ -e /boot/beos/apps/Terminal ]
then then
terminal=/boot/beos/apps/Terminal terminal=/boot/beos/apps/Terminal
else else
terminal=`query Terminal | head -1` terminal=`query Terminal | head -1`
fi fi
$terminal -t "installer" /bin/sh $0 $terminal -t "installer" /bin/sh "$0"
fi fi
fi' > $(1) ; fi' > "$(1)" ;
chmod 755 $(1) ; chmod 755 "$(1)" ;
} }
rule PackageInstallZip rule PackageInstallZip
@@ -2159,8 +2159,8 @@ rule PackageInstallZip
actions together PackageInstallZip actions together PackageInstallZip
{ {
cd $(1:P) ; cd "$(1:P)" ;
zip -rqy $(1:BS) boot ; zip -rqy "$(1:BS)" boot ;
} }
rule LinkInstallZip rule LinkInstallZip
@@ -2171,5 +2171,5 @@ rule LinkInstallZip
actions together LinkInstallZip actions together LinkInstallZip
{ {
ln -sf `pwd`/"$(2)" "$(1)" ; ln -sf "`pwd`/$(2)" "$(1)" ;
} }