1
0
mirror of https://github.com/samba-team/samba.git synced 2025-06-16 11:17:07 +03:00
Andrew Tridgell 9672a3d1cc s4-devel: a useful script to setup bin/ and st/ as tmpfs filesystems
this makes building and testing s4 as a developer much faster, if you
have enough memory!
2010-01-08 13:03:03 +11:00

14 lines
356 B
Bash
Executable File

#!/bin/bash
# This sets up bin/ and st/ as tmpfs filesystems, which saves a lot of
# time waiting on the disk!
rm -rf bin st
mkdir -p bin st || exit 1
sudo mount -t tmpfs /dev/null bin || exit 1
sudo chown $USER bin || exit 1
echo "tmpfs setup for bin/"
sudo mount -t tmpfs /dev/null st || exit 1
sudo chown $USER st || exit 1
echo "tmpfs setup for st/"