Skip to content

Instantly share code, notes, and snippets.

@xDShot
Created January 20, 2018 06:47
Show Gist options
  • Save xDShot/971d9bdb46eef727e209ca3299d4dc81 to your computer and use it in GitHub Desktop.
Save xDShot/971d9bdb46eef727e209ca3299d4dc81 to your computer and use it in GitHub Desktop.
Batch compile all .qc in subfolders to Source Engine models
#!/usr/bin/bash
for D in ./*; do
if [ -d "$D" ]; then
echo "I go into $D folder"
cd "$D"
for qc in *.qc; do
echo "Batch processing the $qc"
studiomdl-hl2 $qc
done
cd ..
fi
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment