1
0
mirror of https://github.com/hashcat/hashcat.git synced 2024-11-22 16:18:09 +00:00

Generate folders for cached kernels for the binary distribution in runtime, too

This commit is contained in:
jsteube 2016-01-03 13:49:07 +01:00
parent 79b1f96efe
commit 11bf28745a
6 changed files with 8 additions and 16 deletions

2
.gitignore vendored
View File

@ -9,5 +9,3 @@ deps/*
deps/** deps/**
lib/*.a lib/*.a
obj/*.o obj/*.o
kernels/4098/*.llvmir
kernels/4318/*.cubin

View File

View File

View File

View File

@ -12352,8 +12352,6 @@ int main (int argc, char **argv)
* cached kernel path depends on vendor_id which we don't know, so create it here * cached kernel path depends on vendor_id which we don't know, so create it here
*/ */
if (profile_dir != install_dir) // not a bug
{
int vendor_id_folder_size = strlen (profile_dir) + 1 + 7 + 1 + 10 + 1; int vendor_id_folder_size = strlen (profile_dir) + 1 + 7 + 1 + 10 + 1;
char *vendor_id_folder = (char *) mymalloc (vendor_id_folder_size); char *vendor_id_folder = (char *) mymalloc (vendor_id_folder_size);
@ -12367,7 +12365,6 @@ int main (int argc, char **argv)
mkdir (vendor_id_folder, 0700); mkdir (vendor_id_folder, 0700);
myfree (vendor_id_folder); myfree (vendor_id_folder);
}
/** /**
* devices * devices

View File

@ -11,7 +11,7 @@ export OUT=$HOME/xy/oclHashcat-2.01
rm -rf $OUT rm -rf $OUT
rm -rf $OUT.7z rm -rf $OUT.7z
mkdir -p $OUT $OUT/kernels $OUT/kernels/4098 $OUT/kernels/4318 mkdir -p $OUT
cp $IN/oclHashcat??.exe $OUT/ cp $IN/oclHashcat??.exe $OUT/
cp $IN/oclHashcat??.bin $OUT/ cp $IN/oclHashcat??.bin $OUT/
@ -42,9 +42,6 @@ unix2dos $OUT/docs/*
unix2dos $OUT/example*.cmd unix2dos $OUT/example*.cmd
chmod 700 $OUT chmod 700 $OUT
chmod 700 $OUT/kernels
chmod 700 $OUT/kernels/4098
chmod 700 $OUT/kernels/4318
chmod 700 $OUT/rules chmod 700 $OUT/rules
chmod 600 $OUT/rules/* chmod 600 $OUT/rules/*
chmod 700 $OUT/docs chmod 700 $OUT/docs