#!/bin/bash # run post-install scripts for a given port and its dependencies # # Johannes Winkelmann, jw at tks6 dot net run=0 ports="" for a in $@; do case "$a" in "--run") run=1 ;; *) ports="$ports $a" ;; esac done if [ -z "$1" ]; then echo "Usage: $0 [options] [ ...]" echo "" echo " Options:" echo " --run actually run the scripts" exit -1 fi for p in `prt-get quickdep $ports`; do f=`prt-get path $p`/post-install if [ -f $f ]; then if [ $run -eq 1 ]; then echo "Executing $f" sh $f else echo $f fi fi; done