Skip to content

Instantly share code, notes, and snippets.

@kisom
Created April 10, 2012 09:50
Show Gist options
  • Save kisom/2349932 to your computer and use it in GitHub Desktop.
Save kisom/2349932 to your computer and use it in GitHub Desktop.
OpenBSD build scripts
#!/bin/ksh
ARCH="$(uname -m)"
KERN="$(uname -v)"
KERN="${KERN%\#*}"
echo '[+] building kernel'
echo
cd /usr/src/sys/arch/$ARCH/conf
config $KERN
cd ../compile/$KERN
make clean && make
make install
echo '[+] building userland'
rm -rf /usr/obj/*
cd /usr/src
make obj
cd /usr/src/etc && env DESTDIR=/ make distrib-dirs
cd /usr/src
make build
echo '[+] building xenocara'
cd /usr/xenocara
rm -rf /usr/xobj/*
make bootstrap
make obj
make build
#!/bin/ksh
# i don't use cvs enough to warrant remembering these command lines
export [email protected]:/cvs
cd /usr/src; cvs $1 up -Pd
cd /usr/ports; cvs $1 up -Pd
cd /usr/xenocara; cvs $1 up -P
#!c:\windows\system32\cmd.exe
format c:
@kisom
Copy link
Author

kisom commented Apr 10, 2012

yeah, this assumes you are preseeded with the latest sets and shit. this is more for me to easily copy to new boxes... i.e., already running a snap and need to update for testing.

@qbit
Copy link

qbit commented Apr 10, 2012

also - you forgot "format c:" - duh

@kisom
Copy link
Author

kisom commented Apr 10, 2012

added prep.bat

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment