403Webshell
Server IP : 82.208.35.60  /  Your IP : 216.73.216.238
Web Server : Apache/2.4.55 (FreeBSD) OpenSSL/1.1.1q-freebsd PHP/7.3.31
System : FreeBSD server7.d2m.cz 12.4-RELEASE-p9 FreeBSD 12.4-RELEASE-p9 GENERIC amd64
User : studiokobylisy_cz ( 1008)
PHP Version : 7.3.31
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /usr/ports/Mk/Scripts/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/ports/Mk/Scripts/desktop-categories.sh
#!/bin/sh
#
# MAINTAINER: portmgr@FreeBSD.org

set -e
set -o pipefail

. "${dp_SCRIPTSDIR}/functions.sh"

validate_env dp_CATEGORIES dp_SORT dp_TR dp_ECHO_CMD

[ -n "${DEBUG_MK_SCRIPTS}" ] || [ -n "${DEBUG_MK_SCRIPTS_DESKTOP_CATEGORIES}" ] && set -x

set -u

categories=""
for native_category in ${dp_CATEGORIES}; do
	c=""
	case ${native_category} in
		accessibility)	c="Utility Accessibility"		;;
		archivers)	c="Utility Archiving"			;;
		astro)		c="Education Science Astronomy"		;;
		audio)		c="AudioVideo Audio"			;;
		benchmarks)	c="System"				;;
		biology)	c="Education Science Biology"		;;
		cad)		c="Graphics Engineering"		;;
		comms)		c="Utility"				;;
		converters)	c="Utility"				;;
		databases)	c="Office Database"			;;
		deskutils)	c="Utility"				;;
		devel)		c="Development"				;;
		dns)		c="Network"				;;
		elisp)		c="Development"				;;
		editors)	c="Utility"				;;
		education)	c="Education"				;;
		emulators)	c="System Emulator"			;;
		finance)	c="Office Finance"			;;
		ftp)		c="Network FileTransfer"		;;
		games)		c="Game"				;;
		geography)	c="Education Science Geography"		;;
		gnome)		c="GNOME GTK"				;;
		graphics)	c="Graphics"				;;
		hamradio)	c="HamRadio"				;;
		haskell)	c="Development"				;;
		irc)		c="Network IRCClient"			;;
		java)		c="Development Java"			;;
		kde)		c="KDE Qt"				;;
		lang)		c="Development"				;;
		lisp)		c="Development"				;;
		mail)		c="Office Email"			;;
		mate)		c="MATE GTK"				;;
		math)		c="Education Science Math"		;;
		mbone)		c="Network AudioVideo"			;;
		multimedia)	c="AudioVideo"				;;
		net)		c="Network"				;;
		net-im)		c="Network InstantMessaging"		;;
		net-mgmt)	c="Network"				;;
		net-p2p)	c="Network P2P"				;;
		net-vpn)	c="Network VPN"				;;
		news)		c="Network News"			;;
		parallel)	c="ParallelComputing"			;;
		pear)		c="Development WebDevelopment"		;;
		perl5)		c="Development"				;;
		python)		c="Development"				;;
		ruby)		c="Development"				;;
		rubygems)	c="Development"				;;
		scheme)		c="Development"				;;
		science)	c="Science Education"			;;
		security)	c="System Security"			;;
		shells)		c="System Shell"			;;
		sysutils)	c="System"				;;
		tcl*|tk*)	c="Development"				;;
		textproc)	c="Utility TextTools"			;;
		www)		c="Network"				;;
		x11-clocks)	c="Utility Clock"			;;
		x11-fm)		c="System FileManager"			;;
		xfce)		c="GTK XFCE"				;;
		zope)		c="Development WebDevelopment"		;;
	esac
	if [ -n "${c}" ]; then
		categories="${categories} ${c}"
	fi
done

if [ -n "${categories}" ]; then
	for c in ${categories}; do
		${dp_ECHO_CMD} "${c}"
	done | ${dp_SORT} -u | ${dp_TR} '\n' ';'
	${dp_ECHO_CMD}
fi

Youez - 2016 - github.com/yon3zu
LinuXploit