[Fusionforge-commits] r12137 - trunk/src/utils

Roland Mas lolando at libremir.placard.fr.eu.org
Thu Feb 3 14:24:36 CET 2011


Author: lolando
Date: 2011-02-03 14:24:36 +0100 (Thu, 03 Feb 2011)
New Revision: 12137

Added:
   trunk/src/utils/forge_get_compressed_extension
   trunk/src/utils/forge_get_compressor
Log:
Added two helper scripts to get the preferred compressor and the corresponding file extension for use in shell scripts

Added: trunk/src/utils/forge_get_compressed_extension
===================================================================
--- trunk/src/utils/forge_get_compressed_extension	                        (rev 0)
+++ trunk/src/utils/forge_get_compressed_extension	2011-02-03 13:24:36 UTC (rev 12137)
@@ -0,0 +1,35 @@
+#! /usr/bin/php -f
+<?php
+/**
+ * FusionForge helper script
+ *
+ * Copyright 2011, Roland Mas
+ *
+ * This file is part of FusionForge.
+ *
+ * FusionForge is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published
+ * by the Free Software Foundation; either version 2 of the License,
+ * or (at your option) any later version.
+ * 
+ * FusionForge is distributed in the hope that it will be useful, but
+ * WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+ * General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with FusionForge; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
+ * USA
+ */
+        
+require (dirname(__FILE__).'/../common/include/env.inc.php');
+require_once $gfcommon.'include/pre.php';
+
+print util_get_compressed_file_extension()."\n";
+// Local Variables:
+// mode: php
+// c-file-style: "bsd"
+// End:
+
+?>


Property changes on: trunk/src/utils/forge_get_compressed_extension
___________________________________________________________________
Added: svn:executable
   + *

Added: trunk/src/utils/forge_get_compressor
===================================================================
--- trunk/src/utils/forge_get_compressor	                        (rev 0)
+++ trunk/src/utils/forge_get_compressor	2011-02-03 13:24:36 UTC (rev 12137)
@@ -0,0 +1,36 @@
+#! /usr/bin/php -f
+<?php
+/**
+ * FusionForge helper script
+ *
+ * Copyright 2011, Roland Mas
+ *
+ * This file is part of FusionForge.
+ *
+ * FusionForge is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published
+ * by the Free Software Foundation; either version 2 of the License,
+ * or (at your option) any later version.
+ * 
+ * FusionForge is distributed in the hope that it will be useful, but
+ * WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+ * General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with FusionForge; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
+ * USA
+ */
+        
+require (dirname(__FILE__).'/../common/include/env.inc.php');
+require_once $gfcommon.'include/pre.php';
+
+print forge_get_config('compression_method')."\n";
+
+// Local Variables:
+// mode: php
+// c-file-style: "bsd"
+// End:
+
+?>


Property changes on: trunk/src/utils/forge_get_compressor
___________________________________________________________________
Added: svn:executable
   + *




More information about the Fusionforge-commits mailing list