Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 29 Aug 2012 09:53:59 +0000 (UTC)
From:      Niclas Zeising <zeising@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r303327 - head/www/xombrero/files
Message-ID:  <201208290953.q7T9rxZO022787@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: zeising
Date: Wed Aug 29 09:53:58 2012
New Revision: 303327
URL: http://svn.freebsd.org/changeset/ports/303327

Log:
  Fix the startup script to not overwrite configuration files and accept
  program arguments
  
  PR:		ports/171140, ports/171141
  Submitted by:	kaltheat <kaltheat@gmail.com> (pr), me (patch)
  Approved by:	miwi (mentor)

Modified:
  head/www/xombrero/files/xombrero.in

Modified: head/www/xombrero/files/xombrero.in
==============================================================================
--- head/www/xombrero/files/xombrero.in	Wed Aug 29 09:44:53 2012	(r303326)
+++ head/www/xombrero/files/xombrero.in	Wed Aug 29 09:53:58 2012	(r303327)
@@ -5,18 +5,18 @@
 # A wrapper script for xombrero
 # Created by HU Dong <itechbear@gmail.com>
 
-if [ ! -d "~/.xombrero" ]; then
-	mkdir -p -m 700 ~/.xombrero
+if [ ! -d "$HOME/.xombrero" ]; then
+	mkdir -p -m 700 $HOME/.xombrero
 fi
 
-if [ ! -f "~/.xombrero.conf" ]; then
-	cp %%EXAMPLESDIR%%/xombrero.conf ~/.xombrero.conf
-	chmod +w ~/.xombrero.conf
+if [ ! -f "$HOME/.xombrero.conf" ]; then
+	cp %%EXAMPLESDIR%%/xombrero.conf $HOME/.xombrero.conf
+	chmod +w $HOME/.xombrero.conf
 fi
 
-if [ ! -f "~/.xombrero/playflash.sh" ]; then
-	cp %%EXAMPLESDIR%%/playflash.sh ~/.xombrero/playflash.sh
-	chmod +x ~/.xombrero/playflash.sh
+if [ ! -f "$HOME/.xombrero/playflash.sh" ]; then
+	cp %%EXAMPLESDIR%%/playflash.sh $HOME/.xombrero/playflash.sh
+	chmod +x $HOME/.xombrero/playflash.sh
 fi
 
-exec %%PREFIX%%/bin/xombrero-bin
+exec %%PREFIX%%/bin/xombrero-bin $@



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201208290953.q7T9rxZO022787>