svn commit: r303327 - head/www/xombrero/files

Niclas Zeising zeising at FreeBSD.org
Wed Aug 29 09:53:59 UTC 2012


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 at 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 at 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 $@



More information about the svn-ports-head mailing list