diff options
author | midipix <writeonce@midipix.org> | 2018-05-08 01:46:53 -0400 |
---|---|---|
committer | midipix <writeonce@midipix.org> | 2018-05-16 04:45:10 -0400 |
commit | 4721cebf34d7862b0783673f65fbb8b52750be46 (patch) | |
tree | 8293883f06a5b7301b1b8abc6d7ea9e954fdc00c /once/custom.sh | |
download | mpackage-4721cebf34d7862b0783673f65fbb8b52750be46.tar.bz2 mpackage-4721cebf34d7862b0783673f65fbb8b52750be46.tar.xz |
initial commit.
Diffstat (limited to 'once/custom.sh')
-rwxr-xr-x | once/custom.sh | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/once/custom.sh b/once/custom.sh new file mode 100755 index 0000000..c3d611a --- /dev/null +++ b/once/custom.sh @@ -0,0 +1,18 @@ +#!/bin/sh + +if [ -z "$SYSROOT" ]; then + echo '$SYSROOT is not set!' + exit 2 +fi + +if ! [ -d "$SYSROOT" ]; then + echo '$SYSROOT does not exist!' + exit 2 +fi + +mkdir -p "$SYSROOT"/tmp || exit 2 +chmod 0775 "$SYSROOT"/tmp || exit 2 + +if [ -f /vendor.sh ]; then + /vendor.sh +fi |