updated skyscraper.sh
This commit is contained in:
+10
-5
@@ -45,7 +45,7 @@ readonly HOMEBREW=/home/sergio/roms/homebrew
|
||||
readonly TRANSLATIONS=/home/sergio/roms/translations
|
||||
readonly HACKS=/home/sergio/roms/hacks
|
||||
|
||||
readonly CONSOLE="atari800 atari2600 atari5200 atari7800 coleco fds intellivision mastersystem megadrive n64 nes pcengine sega32x sg-1000 snes"
|
||||
readonly CONSOLE="atari800 atari2600 atari5200 atari7800 coleco fds intellivision mastersystem megadrive n64 nes neogeo pcengine sega32x sg-1000 snes"
|
||||
readonly HANDHELD="atarilynx gamegear gb gba gbc gc ngp ngpc virtualboy wonderswan wonderswancolor"
|
||||
readonly COMPUTER="amiga amstradcpc apple2 atarist c16 c64 c128 msx x68000 zxspectrum"
|
||||
readonly CD_SYSTEM="3do atarijaguar dreamcast megacd ngc pcfx pcenginecd ps2 psp psx saturn segacd wii"
|
||||
@@ -77,11 +77,16 @@ arcade)
|
||||
;;
|
||||
esac
|
||||
|
||||
readonly TEXT1="añadiendo enlaces para "
|
||||
readonly TEXT2=" ..."
|
||||
readonly C_BLUE=$(tput setaf 4)
|
||||
readonly C_NORMAL=$(tput sgr0)
|
||||
|
||||
## console systems
|
||||
for SYSTEM in $SCAN_SYSTEM; do
|
||||
## check source
|
||||
if test -d "${SOURCE}"/"${SYSTEM}"; then
|
||||
printf "%s\n" "${SYSTEM}"
|
||||
printf "%s\n" "${TEXT1}${C_BLUE}${SYSTEM}${C_NORMAL}${TEXT2}"
|
||||
mkdir -p "${TARGET}"/"${SYSTEM}"
|
||||
for FILE in "${SOURCE}"/"${SYSTEM}"/*; do
|
||||
ln -s "${FILE}" "${TARGET}"/"${SYSTEM}"/"$(basename "${FILE}")"
|
||||
@@ -90,7 +95,7 @@ for SYSTEM in $SCAN_SYSTEM; do
|
||||
|
||||
## check homebrew
|
||||
if test -d "${HOMEBREW}"/"${SYSTEM}"; then
|
||||
printf "%s\n" "${SYSTEM}/_homebrew"
|
||||
printf "%s\n" "${TEXT1}${C_BLUE}${SYSTEM}/_homebrew${C_NORMAL}${TEXT2}"
|
||||
mkdir -p "${TARGET}"/"${SYSTEM}"/_homebrew
|
||||
for FILE in "${HOMEBREW}"/"${SYSTEM}"/*; do
|
||||
ln -s "${FILE}" "${TARGET}"/"${SYSTEM}"/_homebrew/"$(basename "${FILE}")"
|
||||
@@ -99,7 +104,7 @@ for SYSTEM in $SCAN_SYSTEM; do
|
||||
|
||||
## check translations
|
||||
if test -d "${TRANSLATIONS}"/"${SYSTEM}"; then
|
||||
printf "%s\n" "${SYSTEM}/_translations"
|
||||
printf "%s\n" "${TEXT1}${C_BLUE}${SYSTEM}/_translations${C_NORMAL}${TEXT2}"
|
||||
mkdir -p "${TARGET}"/"${SYSTEM}"/_translations
|
||||
for FILE in "${TRANSLATIONS}"/"${SYSTEM}"/*; do
|
||||
ln -s "${FILE}" "${TARGET}"/"${SYSTEM}"/_translations/"$(basename "${FILE}")"
|
||||
@@ -108,7 +113,7 @@ for SYSTEM in $SCAN_SYSTEM; do
|
||||
|
||||
## check hacks
|
||||
if test -d "${HACKS}"/"${SYSTEM}"; then
|
||||
printf "%s\n" "${SYSTEM}/_hacks"
|
||||
printf "%s\n" "${TEXT1}${C_BLUE}${SYSTEM}/_hacks${C_NORMAL}${TEXT2}"
|
||||
mkdir -p "${TARGET}"/"${SYSTEM}"/_hacks
|
||||
for FILE in "${HACKS}"/"${SYSTEM}"/*; do
|
||||
ln -s "${FILE}" "${TARGET}"/"${SYSTEM}"/_hacks/"$(basename "${FILE}")"
|
||||
|
||||
Reference in New Issue
Block a user