Skip to content
This repository has been archived by the owner on Dec 4, 2020. It is now read-only.

Commit

Permalink
Add a mkport.sh to the freebsd-ports repo.
Browse files Browse the repository at this point in the history
This is used for automating the generation of the ports-mgmt/trueos-ports-src port.
  • Loading branch information
beanpole135 committed Feb 26, 2018
1 parent f1c2808 commit 992d83a
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions mkport.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
#!/bin/sh
# Helper script which will create the port / distfiles
# from a checked out git repo

if [ -z "$1" ] ; then
echo "Usage: ./mkports.sh <portstree> <distfiles>"
exit 1
fi

if [ ! -d "${1}/Mk" ] ; then
echo "Invalid directory: $1"
exit 1
fi

portsdir="${1}"
if [ -z "$portsdir" -o "${portsdir}" = "/" ] ; then
portsdir="/usr/ports"
fi

if [ -z "$2" ] ; then
distdir="${portsdir}/distfiles"
else
distdir="${2}"
fi

#Run the script to setup the port for the ports-tree
${portsdir}/Tools/scripts/setup_trueos-ports-src.sh ${portsdir}

#Set a couple variables for the TrueOS build cluster to know which is the "overall" port
port="ports-mgmt/trueos-ports-src" #reset this variable in case something else needs it
export bPort="ports-mgmt/trueos-ports-src"

0 comments on commit 992d83a

Please sign in to comment.