[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
SF.net SVN: ledger-smb:[5290] branches/1.3/tools/prepare-company-database. sh
- Subject: SF.net SVN: ledger-smb:[5290] branches/1.3/tools/prepare-company-database. sh
- From: ..hidden..
- Date: Thu, 29 Nov 2012 21:07:51 +0000
Revision: 5290
http://ledger-smb.svn.sourceforge.net/ledger-smb/?rev=5290&view=rev
Author: hasorli
Date: 2012-11-29 21:07:50 +0000 (Thu, 29 Nov 2012)
Log Message:
-----------
Add test for getopt version. Exit if not GNU 'getopt' version, or show information about
the Perl equivalent Chris Travers (einhverfr) submitted in svn 5288 - Fix Bug #3551127
Modified Paths:
--------------
branches/1.3/tools/prepare-company-database.sh
Modified: branches/1.3/tools/prepare-company-database.sh
===================================================================
--- branches/1.3/tools/prepare-company-database.sh 2012-11-29 08:09:56 UTC (rev 5289)
+++ branches/1.3/tools/prepare-company-database.sh 2012-11-29 21:07:50 UTC (rev 5290)
@@ -120,6 +120,15 @@
)/d" -
}
+# Test getopt version. This script use the GNU 'getopt' version.
+getopt -T > /dev/null
+if [ $? -eq 0 ]; then
+ # Original getopt is available
+ echo "This script need the GNU enhanced getopt to work"
+ echo "Use prepare-company-database.pl on your platform"
+ exit 0
+fi
+
# Am I root?
if ! test `whoami` = "root"
then
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.