Stuff
public shellscript v1 · immutable#!/bin/bashEXT=pk3GenPK3_Usage(){ echo "Usage: $0 mapname (without extension)" exit 1}if ! test -d "./maps"; then echo "$0 must be in the base dir" exit 1fiif test $# -lt 1; then GenPK3_Usageelse if test -f "maps/$1.bsp"; then if test -f "maps/$1.map"; then mapname=`basename "$1"` echo "Generating $mapname.pk3" else echo "map $1 does not exist." exit 1 fi else echo "bsp $1 does not exist." exit 1 fifi