WARNING: THIS IS LINUX ONLY
and there will ne NO windows version at all
Overview
CCompiler - AMX Mod X only -
Colorful .sma compiler output with extended error file details to logs
with option to recompile bad plugins
version 0.2 (changelog at the end of file)
by _KaszpiR_
Newest version is always at
ccompile (uncompressed bash script, so during install you can skip the 'tar zxf' part)
Description
Bash script based on the 'compile' but displays coloured information to console and produces separate warning/error (if any) for each compiled plugin separately.
Logs are stored in different directories depending on if the plugin was compiled properly, contained warnings, contained errors
- logs_fail - contain logs about plugins that failed to compile
logs_warn - contain logs about plugins that were compiled but had warnings (like loose identation ;) )
logs_ok - contain logs about plugins that were compiled properly, just for you information about how much data it use, so you coudl optimize it
Option to compile only plugins that were having warnings and errors from the prevous script execution.
Requirements
Requires:
- bash
- coreutils
Usually most linux / BSD distros allready have it, so propbaby you do not ahve to install anthing extra, unless you are using very customized distro
Tested on Fedora Core 3
Insatllation
Download the attachment on the forum at the bottom of this post.
After downloading the file to the addons/amxmodx/scripting/ go to the that directory and unpack file with command
Code:
tar zxf ccompile.tar.gz
Change permissions to enable execute on file (via shell)
Usage
Now run:
ccompile
and enjoy.
If you want to run compilation of all plugins (especially if you downloaded new .sma files) run:
ccompile all
Noitce, sometimes you run command with
./ccompile (depends on host configuration)
Extra
Configuration - for advanced users:
Edit the
ccompile with favourice editor, the description of vars is inside
Any Feedback Appreciated
ChangeLog && ToDo
Code:
###################################################################
# Todo
# - compiling new plugins without nneding to run all
# - saving cache partially (if someon breaks execution of script)
# but it will require checking for logs files
# - display output logs with warnings/errors after compilation
###################################################################
# Changelog
# 0.2
# - AMX Mod X 1.70 compatible (any other unsupported) (ugh amxxpc is not so nice as i expectd)
# - Dropped support for AMX Mod (cause i moved to AMX Mod X, when AMX Mod
# become rather dead after djeyl.net host hack)
# - added cache file for option to compile only plugins with errors or warnings
# i wanted to implement a bunch of code to check if the logs in directories exist but i decided
# that cache file will be easier :)