actualizado skyscraper.sh
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
function help_message() {
|
function help_message() {
|
||||||
printf "%s\n\n" "$USAGE"
|
printf "%s\n\n" "$USAGE"
|
||||||
printf "%s" "Where [SYSTEMS] are: "
|
printf "%s" "Where [SYSTEMS] are:\n"
|
||||||
for WORD in $SYSTEMS; do
|
for WORD in $SYSTEMS; do
|
||||||
printf "%s" "$WORD "
|
printf "%s" "$WORD "
|
||||||
done
|
done
|
||||||
@@ -46,10 +46,10 @@ case $SYSTEM in
|
|||||||
readonly PLAYLIST_NAME=""
|
readonly PLAYLIST_NAME=""
|
||||||
;;
|
;;
|
||||||
amiga)
|
amiga)
|
||||||
readonly PLAYLIST_NAME=""
|
readonly PLAYLIST_NAME="Commodore - Amiga"
|
||||||
;;
|
;;
|
||||||
amstradcpc)
|
amstradcpc)
|
||||||
readonly PLAYLIST_NAME=""
|
readonly PLAYLIST_NAME="Amstrad - CPC"
|
||||||
;;
|
;;
|
||||||
apple2)
|
apple2)
|
||||||
readonly PLAYLIST_NAME=""
|
readonly PLAYLIST_NAME=""
|
||||||
@@ -82,13 +82,13 @@ atarilynx)
|
|||||||
readonly PLAYLIST_NAME="Atari - Lynx"
|
readonly PLAYLIST_NAME="Atari - Lynx"
|
||||||
;;
|
;;
|
||||||
atarist)
|
atarist)
|
||||||
readonly PLAYLIST_NAME=""
|
readonly PLAYLIST_NAME="Atari - ST"
|
||||||
;;
|
;;
|
||||||
c16)
|
c16)
|
||||||
readonly PLAYLIST_NAME=""
|
readonly PLAYLIST_NAME=""
|
||||||
;;
|
;;
|
||||||
c64)
|
c64)
|
||||||
readonly PLAYLIST_NAME=""
|
readonly PLAYLIST_NAME="Commodore - 64"
|
||||||
;;
|
;;
|
||||||
c128)
|
c128)
|
||||||
readonly PLAYLIST_NAME=""
|
readonly PLAYLIST_NAME=""
|
||||||
@@ -106,7 +106,7 @@ dragon32)
|
|||||||
readonly PLAYLIST_NAME=""
|
readonly PLAYLIST_NAME=""
|
||||||
;;
|
;;
|
||||||
dreamcast)
|
dreamcast)
|
||||||
readonly PLAYLIST_NAME=""
|
readonly PLAYLIST_NAME="Sega - Dreamcast"
|
||||||
;;
|
;;
|
||||||
fba)
|
fba)
|
||||||
readonly PLAYLIST_NAME=""
|
readonly PLAYLIST_NAME=""
|
||||||
@@ -217,7 +217,7 @@ psx)
|
|||||||
readonly PLAYLIST_NAME="Sony - PlayStation"
|
readonly PLAYLIST_NAME="Sony - PlayStation"
|
||||||
;;
|
;;
|
||||||
saturn)
|
saturn)
|
||||||
readonly PLAYLIST_NAME=""
|
readonly PLAYLIST_NAME="Sega - Saturn"
|
||||||
;;
|
;;
|
||||||
scummvm)
|
scummvm)
|
||||||
readonly PLAYLIST_NAME=""
|
readonly PLAYLIST_NAME=""
|
||||||
@@ -253,7 +253,7 @@ videopac)
|
|||||||
readonly PLAYLIST_NAME=""
|
readonly PLAYLIST_NAME=""
|
||||||
;;
|
;;
|
||||||
virtualboy)
|
virtualboy)
|
||||||
readonly PLAYLIST_NAME=""
|
readonly PLAYLIST_NAME="Nintendo - Virtualboy"
|
||||||
;;
|
;;
|
||||||
wii)
|
wii)
|
||||||
readonly PLAYLIST_NAME=""
|
readonly PLAYLIST_NAME=""
|
||||||
@@ -277,7 +277,7 @@ zx81)
|
|||||||
readonly PLAYLIST_NAME=""
|
readonly PLAYLIST_NAME=""
|
||||||
;;
|
;;
|
||||||
zxspectrum)
|
zxspectrum)
|
||||||
readonly PLAYLIST_NAME=""
|
readonly PLAYLIST_NAME="Sinclair - ZX Spectrum"
|
||||||
;;
|
;;
|
||||||
|
|
||||||
esac
|
esac
|
||||||
|
|||||||
+5
-3
@@ -4,6 +4,10 @@
|
|||||||
USAGE="
|
USAGE="
|
||||||
USAGE:
|
USAGE:
|
||||||
$(basename "$0") [BUILD | SCRAP | BOTH] [FRONTEND] [PATH]"
|
$(basename "$0") [BUILD | SCRAP | BOTH] [FRONTEND] [PATH]"
|
||||||
|
readonly USAGE
|
||||||
|
|
||||||
|
FRONTENDS="emulationstation pegasus"
|
||||||
|
readonly FRONTENDS
|
||||||
|
|
||||||
function help_message() {
|
function help_message() {
|
||||||
echo "$USAGE"
|
echo "$USAGE"
|
||||||
@@ -13,7 +17,6 @@ function help_message() {
|
|||||||
echo -e "\t$WORD"
|
echo -e "\t$WORD"
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
readonly USAGE
|
|
||||||
|
|
||||||
## check if there are all the parameters
|
## check if there are all the parameters
|
||||||
if [ "$#" -ne 3 ]; then
|
if [ "$#" -ne 3 ]; then
|
||||||
@@ -22,7 +25,6 @@ if [ "$#" -ne 3 ]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
## check if the frontend parameter is valid
|
## check if the frontend parameter is valid
|
||||||
FRONTENDS="emulationstation pegasus"
|
|
||||||
if ! echo "$FRONTENDS" | grep -w "$2" >/dev/null; then
|
if ! echo "$FRONTENDS" | grep -w "$2" >/dev/null; then
|
||||||
printf "%s\n" "You must enter a valid FRONTEND name."
|
printf "%s\n" "You must enter a valid FRONTEND name."
|
||||||
help_message
|
help_message
|
||||||
@@ -93,7 +95,7 @@ for SYSTEM in $CONSOLE; do
|
|||||||
done
|
done
|
||||||
|
|
||||||
## arcade systems
|
## arcade systems
|
||||||
ARCADE="fba neogeo mame-advmame mame-mame4all"
|
ARCADE="fba neogeo mame-advmame mame-mame4all mame-libretro"
|
||||||
for SYSTEM in $ARCADE; do
|
for SYSTEM in $ARCADE; do
|
||||||
if test -d "${ROM_DIR}"/"${SYSTEM}"; then
|
if test -d "${ROM_DIR}"/"${SYSTEM}"; then
|
||||||
if [ "$SCRAP" = true ]; then
|
if [ "$SCRAP" = true ]; then
|
||||||
|
|||||||
Reference in New Issue
Block a user