Browse Source

Benjamin Schieder

fixed some nethack.conf syntax errors


git-svn-id: http://www.rocklinux.org/svn/rock-linux/trunk@2407 c5f82cb5-29bc-0310-9cd0-bff59a50e3bc
rocklinux
Rene Rebe 21 years ago
parent
commit
a8a3759afb
1 changed files with 6 additions and 6 deletions
  1. +6
    -6
      package/blindcoder/nethack/nethack.conf

+ 6
- 6
package/blindcoder/nethack/nethack.conf

@ -192,7 +192,7 @@ createpatch () {
EEE
fi
# Wizard name, logfile, news
if [ "$ROCKCFG_PKG_NETHACK_WIZ" -ne "wizard" ] ; then
if [ "$ROCKCFG_PKG_NETHACK_WIZ" != "wizard" ] ; then
cat >>$xx<<-EEE
@@ -139,8 +139,8 @@
#ifndef WIZARD /* allow for compile-time or Makefile changes */
@ -207,14 +207,14 @@ createpatch () {
#endif
EEE
fi
if [ "$ROCKCFG_PKG_NETHACK_LOG" -ne "logfile" ] ; then
if [ "$ROCKCFG_PKG_NETHACK_LOG" != "logfile" ] ; then
cat >>$xx<<-EEE
@@ -151,1 +151,1 @@
-#define LOGFILE "logfile" /* larger file for debugging purposes */
+#define LOGFILE "$ROCKCFG_PKG_NETHACK_LOG" /* larger file for debugging purposes */
EEE
fi
if [ "$ROCKCFG_PKG_NETHACK_NEW" -ne "news" ] ; then
if [ "$ROCKCFG_PKG_NETHACK_NEW" != "news" ] ; then
cat >>$xx<<-EEE
-#define NEWS "news" /* the file containing the latest hack news */
+#define NEWS "$ROCKCFG_PKG_NETHACK_NEW" /* the file containing the latest hack news */
@ -222,14 +222,14 @@ createpatch () {
fi
# Compression
if [ "$ROCKCFG_PKG_NETHACK_USE_COM" == "1" ] ; then
if [ "$ROCKCFG_PKG_NETHACK_COM" -ne "/usr/bin/compress" ] ; then
if [ "$ROCKCFG_PKG_NETHACK_COM" != "/usr/bin/compress" ] ; then
cat >>$xx<<-EEE
@@ -170,1 +170,1 @@
-#define COMPRESS "/usr/bin/compress" /* Lempel-Ziv compression */
+#define COMPRESS "$ROCKCFG_PKG_NETHACK_COM" /* Lempel-Ziv compression */
EEE
fi
if [ "$ROCKCFG_PKG_NETHACK_EXT" -ne ".Z" ] ; then
if [ "$ROCKCFG_PKG_NETHACK_EXT" != ".Z" ] ; then
cat >>$xx<<-EEE
@@ -171,1 +171,1 @@
-#define COMPRESS_EXTENSION ".Z" /* compress's extension */
@ -252,7 +252,7 @@ createpatch () {
EEE
fi
#Hackdir
if [ "$ROCKCFG_PKG_NETHACK_HACKDIR" -ne "/usr/games/lib/nethackdir" ] ; then
if [ "$ROCKCFG_PKG_NETHACK_HACKDIR" != "/usr/games/lib/nethackdir" ] ; then
cat >>$xx<<-EEE
@@ -203,3 +203,3 @@
# else

Loading…
Cancel
Save