Skip to content

Instantly share code, notes, and snippets.

@dillera
Last active September 29, 2019 17:24
Show Gist options
  • Select an option

  • Save dillera/99ff52cd878ea50bdb392491c36759ac to your computer and use it in GitHub Desktop.

Select an option

Save dillera/99ff52cd878ea50bdb392491c36759ac to your computer and use it in GitHub Desktop.
Build the world of irixports
#!/usr/bin/env bash
# read in irixports src & local packages.db then build the rest
BASE=~/irixports/ports
DB=~/.local/packages.db
portsSrcArray=($(ls -1 $BASE))
localInstalledArray=($(cat $DB | awk '{ print $2 }'))
toBuildArray=(`echo ${localInstalledArray[@]} ${portsSrcArray[@]} | tr ' ' '\n' | sort | uniq -u `)
for i in "${toBuildArray[@]}"
do
:
echo "______Starting to build $i in `pwd` _______"
cd $BASE/$i; echo 'I am in ' `pwd`
source ~/.build_didbs
./package.sh clean
./package.sh
echo "Finished the build of $i "
echo " "
echo ----------------------------------------------------------------
echo " "
echo " "
echo " "
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment