Disable internalized scripts

This commit is contained in:
ridiculousfish 2012-06-01 14:00:04 -07:00
parent 377d93d1cf
commit 9255f625fa
2 changed files with 8 additions and 1 deletions

View file

@ -168,8 +168,14 @@ GENERATED_INTERN_SCRIPT_FILES := builtin_scripts.h builtin_scripts.cpp
# Use a pattern rule so that Make knows to only issue one invocation
# per http://www.gnu.org/software/make/manual/make.html#Pattern-Intro
# Internalized scripts are currently disabled.
# For now, we just generate empty arrays.
# To generate them again, you would run this:
# ./internalize_scripts.py share/functions/*.fish share/completions/*.fish
builtin%scripts.h builtin%scripts.cpp: internalize_scripts.py
./internalize_scripts.py share/functions/*.fish share/completions/*.fish
./internalize_scripts.py
#

View file

@ -18,6 +18,7 @@ The classes responsible for autoloading functions and completions.
static const int kAutoloadStalenessInterval = 15;
file_access_attempt_t access_file(const wcstring &path, int mode) {
//printf("Touch %ls\n", path.c_str());
file_access_attempt_t result = {0};
struct stat statbuf;
if (wstat(path, &statbuf)) {