Changeset View
Changeset View
Standalone View
Standalone View
setup.sh
Show First 20 Lines • Show All 50 Lines • ▼ Show 20 Lines | |||||
mkdir ${STATEDIR}/keys | mkdir ${STATEDIR}/keys | ||||
# Instruct the user about creating keys | # Instruct the user about creating keys | ||||
echo | echo | ||||
xargs -s 80 <<- EOF | xargs -s 80 <<- EOF | ||||
Before you can perform Portsnap builds, you need to run keygen.sh | Before you can perform Portsnap builds, you need to run keygen.sh | ||||
to create a signing key. | to create a signing key. | ||||
EOF | EOF | ||||
echo | |||||
# Create a staging area for files waiting to be uploaded | # Create a staging area for files waiting to be uploaded | ||||
mkdir ${STATEDIR}/stage | mkdir ${STATEDIR}/stage | ||||
mkdir ${STATEDIR}/stage/f | mkdir ${STATEDIR}/stage/f | ||||
mkdir ${STATEDIR}/stage/bp | mkdir ${STATEDIR}/stage/bp | ||||
mkdir ${STATEDIR}/stage/t | mkdir ${STATEDIR}/stage/t | ||||
mkdir ${STATEDIR}/stage/s | mkdir ${STATEDIR}/stage/s | ||||
# Clone initial repo in ${STATEDIR}/gitrepo | |||||
# In the svn era portsnap performed metadata operations (i.e., finding the | |||||
# latest revision number) against the svn server. With git we need a local | |||||
# copy of the repository for all operations. Perform an initial clone here, | |||||
# which we will update (git fetch) in build.sh and then create worktrees from | |||||
# it as needed. | |||||
git clone --bare ${REPO} ${STATEDIR}/gitrepo |