root/pbibuild/modules/bmpx/overlay-dir/PBI.FirstRun.sh

Revision 936, 0.9 KB (checked in by kris, 12 months ago)

Added the bmpx module to the PBI build server

  • Property svn:executable set to *
Line 
1#!/bin/sh
2# Filename: PBI.FirstRun.sh
3# Place any custom installation code here.
4# This script will be run before your program is extracted into
5# /Programs/<ProgNameVer>/
6# Available variables:
7# $PROGDIR - Directory where the files will be extracted to.
8# $USERNAME - Username of who started the installation.
9# $INSTALLMODE - Set to 'TEXT' or 'GUI', depending on which installer is running.
10#
11# Return a '2' to halt the PBI installation
12# TIP: 'kdialog' should be used for user interaction.
13# To interact with the progress dialog echo these flags:
14# echo 'TOTALSTEPS: <num>' # Set the total steps of the progress bar
15# echo 'SETSTEPS: <num>' # Set the current progress of the progress bar
16# echo 'MSG: <text>' # Display this text above progress bar
17#########################################
18
19
20if [ -e "/usr/local/bin/bmp2" ]
21then
22  kdialog -error "BMPx is already installed! Please remove it before re-installing!"
23  exit 2
24fi
Note: See TracBrowser for help on using the browser.