diff options
author | sl1pkn07 | 2015-08-12 16:48:10 +0200 |
---|---|---|
committer | sl1pkn07 | 2015-08-12 16:48:10 +0200 |
commit | a257ad9a9914f9012c01dd0eacc2e9cdc05660fe (patch) | |
tree | 45db46c88f489448041f4f11b1146f3443003248 /sdlmame-wout-toolkits.install | |
parent | e7971f782ea9b149da9afd0f8715b58b8a896d70 (diff) | |
download | aur-a257ad9a9914f9012c01dd0eacc2e9cdc05660fe.tar.gz |
Update to 0.164
Diffstat (limited to 'sdlmame-wout-toolkits.install')
-rw-r--r-- | sdlmame-wout-toolkits.install | 44 |
1 files changed, 17 insertions, 27 deletions
diff --git a/sdlmame-wout-toolkits.install b/sdlmame-wout-toolkits.install index 874ca78b072c..ceda91ade1a5 100644 --- a/sdlmame-wout-toolkits.install +++ b/sdlmame-wout-toolkits.install @@ -1,29 +1,19 @@ -# Message displayed for a fresh install. -post_install() -{ - echo "" - echo "***************************************************************" - echo " SDLMAME and the additional MAME utilities have been installed" - echo " in /usr/share/sdlmame However, SDLMAME can be run by" - echo " typing sdlmame and it's options. Try running SDLMAME with" - echo " these options:" - echo " sdlmame <rom> -nowindow -noswitchres" - echo "***************************************************************" - echo "" -} +all_off="$(tput sgr0)" +bold="${all_off}$(tput bold)" +yellow="${bold}$(tput setaf 3)" +blue="${bold}$(tput setaf 4)" +green="${bold}$(tput setaf 2)" -# Message for an update. -post_upgrade() -{ - echo "" - echo "***************************************************************" - echo " SDLMAME has been updated. If you are upgrading directly from" - echo " 0.117 or earlier, you must delete all .cfg files and" - echo " re-configure your controllers. You should also run" - echo " 'sdlmame --newini' to force the script to create a new ini" - echo " file with default settings at ~/.mame/mame.ini" - echo " since there may be new ini options." - echo "***************************************************************" - echo "" -} +post_upgrade() { + printf "${yellow}==>${all_off} ${bold}ATENTION:${all_off} +${green}==>${all_off} ${bold}SDLMAME has been updated.${all_off} + ${blue}->${all_off} If you are upgrading directly from ${bold}0.117${all_off} or ${bold}earlier${all_off}, + ${bold}you must delete all .cfg files${all_off} and ${bold}re-configure your controllers${all_off}. + You should also run: + '# ${bold}sdlmame --newini${all_off}' + + to force the script to create a new ini + file with default settings at '${bold}~/.mame/mame.ini${all_off}' + since there may be new ini options.\n" +} |