1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
#!/bin/bash die() { echo "#####" echo $1 echo "#####" exit 1 } if [[ $1 == "install" ]]; then sed -e "s|/full/path/to/xrms/|${VHOST_ROOT}/${PN}-${PVR}/|" -i "${MY_INSTALLDIR}/include-locations.inc" sed -e "s|/full/path/to/xrms|${MY_INSTALLDIR}| s|xrms/|${VHOST_APPDIR}|" -i "${VHOST_ROOT}/${PN}-${PVR}/include/vars.php" || die "sed failed" elif [[ $1 == "clean" ]]; then echo $1 fi