Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions Makefile.in
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ install: install_steam force
$(INSTALL) -m755 tools/export_users $(DESTDIR)/$(STEAMDIR)/tools
$(INSTALL) -m755 tools/debug.pike $(DESTDIR)/$(STEAMDIR)/tools
$(INSTALL) -m644 tools/applauncher.pike $(DESTDIR)/$(STEAMDIR)/tools
$(INSTALL) -m755 steam /usr/bin

$(INSTALL) -m755 sources/steam/steam $(DESTDIR)/$(STEAMDIR)/bin/$(STEAMBRAND)
$(INSTALL) -m755 start $(DESTDIR)/$(STEAMDIR)
Expand Down
31 changes: 31 additions & 0 deletions steam
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
#!/usr/local/pike/7.8.866/bin/pike

void resolveParam(int argc,array(string) argv)
{
if(argv[1]=="shell")
{
array command =({"/usr/local/lib/steam/tools/steam-shell.pike"});
object shell = Process.create_process(command,(["stdin":Stdio.stdin,"stdout":Stdio.stdout,"stderr":Stdio.stderr]));
shell->wait();
}
else if (argv[1]=="debug")
{
array command = ({"/usr/local/lib/steam/tools/debug.pike"});
object shell = Process.create_process(command,(["stdin":Stdio.stdin,"stdout":Stdio.stdout,"stderr":Stdio.stderr]));
shell->wait();
}
else if(argv[1]=="edit")
{
array command = ({"/usr/local/lib/steam/tools/edit.pike"})+argv[2..];
object shell = Process.create_process(command,(["stdin":Stdio.stdin,"stdout":Stdio.stdout,"stderr":Stdio.stderr]));
shell->wait();
}
}

int main(int argc,array(string) argv)
{
if(argc==1)write("No arguments provided\n");//print help
else resolveParam(argc,argv);
return 0;
}