Commit dbf5fd07 authored by David Bruce's avatar David Bruce

fix of permissions problem in make install for custom word lists, and addition...

fix of permissions problem in make install for custom word lists, and addition of some debugging statements



git-svn-id: svn://svn.debian.org/svn/tux4kids/tuxtype/trunk@1632 47d30e19-490b-0410-9d18-e851f4e465b3
parent 4142596d
......@@ -44,8 +44,8 @@ uninstall-local:
# Sould we skip uninstall of these directories to avoid clobbering user-created files
# on upgrade?:
install-data-hook:
$(MKDIR_P) -m 755 $(DESTDIR)$(pkglocalstatedir)
$(MKDIR_P) -m 755 $(DESTDIR)$(pkgsysconfdir)
$(MKDIR_P) -m 777 $(DESTDIR)$(pkglocalstatedir)
$(MKDIR_P) -m 777 $(DESTDIR)$(pkgsysconfdir)
uninstall-hook:
rm -rf $(DESTDIR)$(pkglocalstatedir)
......
......@@ -840,7 +840,7 @@ void EditWordList(char* words_file)
word list*/
/* Write changes to file, if possible: */
LOG("In ChooseWord(), about to write changes\n");
LOG("In EditWordList(), about to write changes\n");
fp = fopen(fn,"w");
if (fp)
......@@ -861,12 +861,12 @@ void EditWordList(char* words_file)
fclose(fp);
fp = NULL;
LOG("In ChooseWord(), changes written successfully\n");
LOG("In EditWordList(), changes written successfully\n");
}
else
{
DEBUGCODE
{ fprintf(stderr, "In ChooseWord(), unable to open %s for writing\n", fn); }
{ fprintf(stderr, "In EditWordList(), unable to open %s for writing\n", fn); }
}
/* --- clear graphics before quitting --- */
......
......@@ -1250,6 +1250,8 @@ static int chooseWordlist(void)
if (!wordsFile)
break; /* Loop continues until break occurs */
DEBUGCODE { fprintf(stderr, "wordsFile name is: %s\n", wordsFile->d_name); }
/* must have at least .txt at the end */
if (strlen(wordsFile->d_name) < 5)
continue;
......@@ -1307,6 +1309,8 @@ static int chooseWordlist(void)
if (!wordsFile)
break; /* Loop continues until break occurs */
DEBUGCODE { fprintf(stderr, "wordsFile name is: %s\n", wordsFile->d_name); }
/* must have at least .txt at the end */
if (strlen(wordsFile->d_name) < 5)
continue;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment