Skip to content

Commit

Permalink
Je respece le home directory des gens
Browse files Browse the repository at this point in the history
  • Loading branch information
Arkaeriit committed Aug 13, 2019
1 parent 92a8261 commit ff5df09
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 6 deletions.
4 changes: 2 additions & 2 deletions evenmore.lua
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ function readDataFile(file) --permet de lire les informations sur les couleurs q
else
ret.fond = 0
ret.texte = 15
os.execute("mkdir -p ~/.ASC/evenmorelua")
os.execute("mkdir -p ~/.config/ASC/evenmorelua")
end
return ret
end
Expand Down Expand Up @@ -194,7 +194,7 @@ function getDataFile()
local f=io.popen("echo $HOME","r") --récupération du nom du sossier maison
local home=f:read()
f:close()
return home.."/.ASC/evenmorelua/dataFile"
return home.."/.config/ASC/evenmorelua/dataFile"
end

function informations()
Expand Down
Binary file added evenmore.luac
Binary file not shown.
2 changes: 1 addition & 1 deletion main.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ int main(int argc,char** argv){
cl_include(L);

//On charge le fichier
luaL_dofile(L,"/usr/local/share/evenmorelua/evenmore.lua");
luaL_dofile(L,"/usr/local/share/evenmorelua/evenmore.luac");

if(argc>1){
//On appelle la fonction
Expand Down
10 changes: 7 additions & 3 deletions makefile
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@

all : evenmorelua

evenmorelua : main.o cursedLua.o evenmore.lua
evenmorelua : main.o cursedLua.o evenmore.lua evenmore.luac
gcc main.o cursedlua.o -llua -lm -ldl -lncursesw -o evenmorelua

evenmore.luac : evenmore.lua
luac -o evenmore.luac evenmore.lua

main.o : main.c cursedLua.h
gcc -c main.c -o main.o

Expand All @@ -12,15 +15,16 @@ cursedLua.o : cursedLua.c cursedLua.h

clean :
rm -f *.o
rm -f *.luac
rm -f evenmorelua

test : clean evenmorelua
./evenmorelua main.c

install : evenmorelua evenmore.lua
install : evenmorelua evenmore.luac
mkdir /usr/local/share/evenmorelua
cp evenmorelua /usr/local/bin
cp evenmore.lua /usr/local/share/evenmorelua
cp evenmore.luac /usr/local/share/evenmorelua

uninstall : clean
rm -fR /usr/local/share/evenmorelua
Expand Down

0 comments on commit ff5df09

Please sign in to comment.