Clean up MacPorts configuration
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user