⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 install.pl

📁 with vxworks we can develope a group of control software for industry.
💻 PL
字号:
##   BladeMaster 2, a text, rougelike(kinda), arena combat simulation game.##   Copyright (C) 2002 Blademaster 2 Team, see CREDITS####   Clone of BladeMaster by Logicom, Inc. Copyright(C) 1990/1993####   In no means affliated with the original Blademaster or the original##   Blademaster creators/programmers.####   This program is free software; you can redistribute it and/or modify##   it under the terms of the GNU General Public License as published by##   the Free Software Foundation; either version 2 of the License, or##   (at your option) any later version.####   This program is distributed in the hope that it will be useful,##   but WITHOUT ANY WARRANTY; without even the implied warranty of##   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the##   GNU General Public License for more details.##   ##   You should have received a copy of the GNU General Public License##   along with this program; if not, write to the Free Software##   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA####   Useful contact information:##       Website: blademaster2.sourceforge.net##       Project page: www.sf.net/projects/blademaster2/####   Project Lead (see CREDITS for other members of the developement team)##       E-Mail: ilswyn@users.sourceforge.net##       AIM: ilswyn#!/usr/bin/perl######### Blademaster2 Installer! :-)#### By: Cmdr Dran (Patrick Seafield)#######print "Welcome to the Blademaster2 Installer!\n\n";print "Do you have root privlages? [y/n] : ";$yorno = <STDIN>; chomp $yorno;if ($yorno !~ m/y/) {	print "\n\nWell go get them!\n";	exit();}open(POP, "| pwd");$curdir = <POP>; chomp $curdir;print "Looking for necessecary packages...\n";$result = checking();unless ($result == "ok") {	print "You are missing " . $res . ".\nYou need to get it.\n";	exit(); }print "Going to install Blademaster2 now...\n";makeit();print "\nDone installing! You may now run 'b2' from your shell.\n\n" . 	"NOTE: If you use a terminal emulator in XFree86, make sure your console size is 80x25.\n" .	"(Xterm default is 80x24. Unless you resize, you will see 'Segmentation Fault')\n\n";exit();##########sub checking {	print "\nChecking for the required files...\n\n";	print "G++ is ";	if (-f "/usr/bin/g++") {		print "installed.\n";	} else {		print "NOT INSTALLED\n";		return "g++";	}	print "Make is ";	if (-f "/usr/bin/make") {		print "installed.\n";	} else {		print "NOT INSTALLED\n";		return "make";	}	print "The NCurses Library is ";	if (-f "/usr/lib/libncurses.so") {		print "installed.\n";	} else {		print "NOT INSTALLED\n";		return "libncurses";	}	return "ok";}#########sub makeit {	if (-d "/usr/games") {		system("mkdir /usr/games/blademaster2");	} else {		system("mkdir /usr/games/");		system("mkdir /usr/games/blademaster2");	}	system("make");	system("cp b2 /usr/games/blademaster2/");	system("ln -s /usr/games/blademaster2/b2 /usr/bin");}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -