Skip to content
Snippets Groups Projects
Commit 04dad4dd authored by Fredrik Hübinette (Hubbe)'s avatar Fredrik Hübinette (Hubbe)
Browse files

modele exclusion fixed

Rev: bin/export.pike:1.4
parent ff7d82a0
Branches
Tags
No related merge requests found
...@@ -3,6 +3,7 @@ ...@@ -3,6 +3,7 @@
#include <simulate.h> #include <simulate.h>
multiset except_modules =(<>); multiset except_modules =(<>);
string vpath;
string *get_files(string path) string *get_files(string path)
{ {
...@@ -16,7 +17,7 @@ string *get_files(string path) ...@@ -16,7 +17,7 @@ string *get_files(string path)
if(tmp[0]=='#' && tmp[-1]=='#') continue; if(tmp[0]=='#' && tmp[-1]=='#') continue;
if(tmp[0]=='.' && tmp[1]=='#') continue; if(tmp[0]=='.' && tmp[1]=='#') continue;
if(path=="pike/src/modules" && except_modules[tmp]) if(path==vpath+"/src/modules" && except_modules[tmp])
continue; continue;
tmp=path+"/"+tmp; tmp=path+"/"+tmp;
...@@ -52,7 +53,7 @@ int main(int argc, string *argv) ...@@ -52,7 +53,7 @@ int main(int argc, string *argv)
mixed tmp; mixed tmp;
int e; int e;
string *files; string *files;
string s=replace(version()," ","-"); vpath=replace(version()," ","-");
tmp=reverse(argv[0]/"/"); tmp=reverse(argv[0]/"/");
except_modules=mklist(argv[1..]); except_modules=mklist(argv[1..]);
...@@ -73,17 +74,17 @@ int main(int argc, string *argv) ...@@ -73,17 +74,17 @@ int main(int argc, string *argv)
if(file_size("pike/src/modules/"+tmp) == -2) if(file_size("pike/src/modules/"+tmp) == -2)
fix_configure("modules/"+tmp); fix_configure("modules/"+tmp);
system("ln -s pike "+s); system("ln -s pike "+vpath);
files=sum(({ s+"/README" }), files=sum(({ vpath+"/README" }),
get_files(s+"/src"), get_files(vpath+"/src"),
get_files(s+"/doc"), get_files(vpath+"/doc"),
get_files(s+"/lib"), get_files(vpath+"/lib"),
get_files(s+"/bin")); get_files(vpath+"/bin"));
perror("Creating "+s+".tar.gz:\n"); perror("Creating "+vpath+".tar.gz:\n");
system("tar cvzf pike/"+s+".tar.gz "+files*" "); system("tar cvzf pike/"+vpath+".tar.gz "+files*" ");
rm(s); rm(vpath);
perror("Done.\n"); perror("Done.\n");
return 0; return 0;
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment