Clean up MacPorts configuration

This commit is contained in:
tlimoncelli@stackexchange.com
2015-02-03 12:34:15 -05:00
parent a772aea1d7
commit 511d59e7bb
3 changed files with 12 additions and 13 deletions

View File

@@ -1,4 +1,4 @@
#! /usr/bin/env bash
#!/usr/bin/env bash
# Install files into MacPorts DESTDIR
@@ -14,11 +14,9 @@
set -e
# Parameters for this RPM:
# Fail if DESTDIR is not set.
DESTDIR="${DESTDIR?"Envvar DESTDIR must be set to destination dir."}"
# -- Now the real work can be done.
# Copy the files into place:
cat """$@""" | while read -a arr ; do
PERM="${arr[0]}"
@@ -30,9 +28,5 @@ cat """$@""" | while read -a arr ; do
esac
DST="$DESTDIR/${arr[1]}"
SRC="${arr[2]}"
if [[ $SRC == "cmd/"* || $SRC == *"/cmd/"* ]]; then
( cd $(dirname "$SRC" ) && go build -a -v )
fi
echo install -m "$PERM" "$SRC" "$DST"
install -m "$PERM" "$SRC" "$DST"
done

View File

@@ -1,4 +1,3 @@
read etc/profile.d/usrblackbox.sh profile.d-usrblackbox.sh
exec bin/_blackbox_common.sh ../bin/_blackbox_common.sh
exec bin/_stack_lib.sh ../bin/_stack_lib.sh
exec bin/blackbox_addadmin ../bin/blackbox_addadmin