[hipl-commit] [trunk] Rev 4422: cosmetics: Generate slightly more pretty looking shell scripts.

  • From: Diego Biurrun <diego@xxxxxxxxxx>
  • To: hipl-commit@xxxxxxxxxxxxx
  • Date: Wed, 28 Apr 2010 14:36:07 +0300

Committer: Diego Biurrun <diego@xxxxxxxxxx>
Date: 28/04/2010 at 14:36:07
Revision: 4422
Revision-id: diego@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Branch nick: trunk

Log:
  cosmetics: Generate slightly more pretty looking shell scripts.

Modified:
  M  tools/gen-python-starter.sh

=== modified file 'tools/gen-python-starter.sh'
--- tools/gen-python-starter.sh 2010-02-04 18:40:24 +0000
+++ tools/gen-python-starter.sh 2010-04-28 11:35:51 +0000
@@ -24,18 +24,18 @@
 
 cat > $SHELL_SCRIPT <<EOF
 #!/bin/sh
-path=\`dirname \$0\`
+
+path=\$(dirname \$0)
 dev_script=$PYTHON_SCRIPT
-if test ! -x \$dev_script
-then
-    dev_script=\`basename $PYTHON_SCRIPT\`
+
+if test ! -x \$dev_script; then
+    dev_script=\$(basename $PYTHON_SCRIPT)
 fi
 
-if echo \$path|grep -q /usr
-then
-  python $PYTHON_PATH/\`basename $PYTHON_SCRIPT\` \$@
+if echo \$path | grep -q /usr; then
+    python $PYTHON_PATH/\$(basename $PYTHON_SCRIPT) \$@
 else
-  python \$dev_script \$@
+    python \$dev_script \$@
 fi
 EOF

Other related posts:

  • » [hipl-commit] [trunk] Rev 4422: cosmetics: Generate slightly more pretty looking shell scripts. - Diego Biurrun