Sha256: 90c43b6a4a41389951fece6c3b402858c1ff7c8787de2ec86aa4cf7e1382455c

Contents?: true

Size: 1.13 KB

Versions: 35

Compression:

Stored size: 1.13 KB

Contents

#!/bin/sh
# WARNING: REQUIRES /bin/sh
#
# - must run on /bin/sh on solaris 9
# - must run on /bin/sh on AIX 6.x
# - if you think you are a bash wizard, you probably do not understand
#   this programming language.  do not touch.
# - if you are under 40, get peer review from your elders.
#

#########################################################################
# HELPERS
#########################################################################
error_exit()
{
  echo "${PROGNAME}: ${1:-"Unknown Error"}" 1>&2
  exit 1
}

PROGNAME=`basename $0`
EXTRACT_DIR=`dirname $0`
INSTALL_DIR=<%= install_dir %>

#########################################################################
# MOVE SELF-EXTRACTING ARCHIVE FILES INTO PLACE
#########################################################################
rm -rf $INSTALL_DIR/* || error_exit "Cannot remove contents of $INSTALL_DIR"
mkdir -p $INSTALL_DIR || error_exit "Cannot create $INSTALL_DIR"
cp -R $EXTRACT_DIR $INSTALL_DIR || error_exit "Cannot install to $INSTALL_DIR"
rm -f $INSTALL_DIR/$PROGNAME

# Execute the optional postinst script
if test -f "$INSTALL_DIR/postinst"; then
  $INSTALL_DIR/postinst
fi

Version data entries

35 entries across 35 versions & 1 rubygems

Version Path
omnibus-9.0.24 resources/makeself/makeselfinst.erb
omnibus-9.0.23 resources/makeself/makeselfinst.erb
omnibus-9.0.22 resources/makeself/makeselfinst.erb
omnibus-9.0.17 resources/makeself/makeselfinst.erb
omnibus-9.0.12 resources/makeself/makeselfinst.erb
omnibus-9.0.11 resources/makeself/makeselfinst.erb
omnibus-9.0.8 resources/makeself/makeselfinst.erb
omnibus-8.3.2 resources/makeself/makeselfinst.erb
omnibus-8.2.2 resources/makeself/makeselfinst.erb
omnibus-8.1.15 resources/makeself/makeselfinst.erb
omnibus-8.0.15 resources/makeself/makeselfinst.erb
omnibus-8.0.9 resources/makeself/makeselfinst.erb
omnibus-7.0.34 resources/makeself/makeselfinst.erb
omnibus-7.0.13 resources/makeself/makeselfinst.erb
omnibus-7.0.12 resources/makeself/makeselfinst.erb
omnibus-6.1.9 resources/makeself/makeselfinst.erb
omnibus-6.1.7 resources/makeself/makeselfinst.erb
omnibus-6.1.4 resources/makeself/makeselfinst.erb
omnibus-6.0.30 resources/makeself/makeselfinst.erb
omnibus-6.0.25 resources/makeself/makeselfinst.erb