OPTS_OPTION_U16(OPTION_MEMDUMPCOLS) = (uint16_t)strtol(memdumpcols, NULL, 10);
continue;
}
+ if (options_long_gcc("progsrc", &argc, &argv, &argarg)) {
+ OPTS_OPTION_STR(OPTION_PROGSRC) = argarg;
+ continue;
+ }
/* show defaults (like pathscale) */
if (!strcmp(argv[0]+1, "show-defaults")) {
progs_src = true;
- src = fs_file_open("progs.src", "rb");
+ src = fs_file_open(OPTS_OPTION_STR(OPTION_PROGSRC), "rb");
if (!src) {
- con_err("failed to open `progs.src` for reading\n");
+ con_err("failed to open `%s` for reading\n", OPTS_OPTION_STR(OPTION_PROGSRC));
retval = 1;
goto cleanup;
}
check_opt WARNS W
check_opt OPTIMIZATIONS O
-for i in doc/*.1; do mandoc -Tlint -Wall "$i"; done
+# TODO: linux version
+if [ "$(uname -s)" != "Linux" ]; then
+ for i in doc/*.1;
+ do
+ mandoc -Tlint -Wall "$i";
+ done
+fi
fi
echo -n "removing redundant files ... "
-# remove redundant stuff
rm -f autocvarize.pl
rm -f autocvarize-update.sh
rm -f collect-precache.sh
echo "complete"
echo -n "creating zip archive ... "
-zip -r ../xonotic.zip * > /dev/null
+zip -r -9 ../xonotic.zip * > /dev/null
echo "complete"
popd > /dev/null
static void opts_setdefault(void) {
memset(&opts, 0, sizeof(opts_cmd_t));
OPTS_OPTION_BOOL(OPTION_CORRECTION) = true;
+ OPTS_OPTION_STR(OPTION_PROGSRC) = "progs.src";
/* warnings */
opts_set(opts.warn, WARN_UNUSED_VARIABLE, true);
GMQCC_DEFINE_FLAG(ADD_INFO)
GMQCC_DEFINE_FLAG(CORRECTION)
GMQCC_DEFINE_FLAG(STATISTICS)
+ GMQCC_DEFINE_FLAG(PROGSRC)
#endif
/* some cleanup so we don't have to */