--- data.inst.orig Tue Nov 7 02:39:24 2000 +++ data.inst Tue Nov 7 02:44:11 2000 @@ -1,4 +1,4 @@ -#!/bin/bash +#!/bin/sh # # Sapphire 0.15.4 and above # @@ -16,6 +16,8 @@ CONFIGURATION_PATH=/usr/local/share/sapphire ############################################################### +DATADIR=%%PREFIX%%/share/sapphire + if [ -d $CONFIGURATION_PATH ] then echo "$CONFIGURATION_PATH directory already exists"; @@ -28,12 +30,12 @@ if [ -d $CONFIGURATION_PATH/themes ] then echo "$CONFIGURATION_PATH directory already exists, copying over current themes"; - cp data/themes/* $CONFIGURATION_PATH/themes + cp -pPR DATADIR/themes/* $CONFIGURATION_PATH/themes else mkdir $CONFIGURATION_PATH/themes echo "created directory $CONFIGURATION_PATH/themes"; - cp data/themes/* $CONFIGURATION_PATH/themes + cp -pPR DATADIR/themes/* $CONFIGURATION_PATH/themes echo "themes were copied to $CONFIGURATION_PATH/themes"; fi @@ -41,12 +43,12 @@ if [ -d $CONFIGURATION_PATH/menu ] then echo "$CONFIGURATION_PATH/menu directory already exists, copying over current menu files"; - cp data/menu/* $CONFIGURATION_PATH/menu + cp -pPR DATADIR/menu/* $CONFIGURATION_PATH/menu else mkdir $CONFIGURATION_PATH/menu echo "created directory $CONFIGURATION_PATH/menu"; - cp data/menu/* $CONFIGURATION_PATH/menu + cp -pPR DATADIR/menu/* $CONFIGURATION_PATH/menu echo "menu files were copied to $CONFIGURATION_PATH/menu"; fi