Mercurial > hg > config
annotate bin/example/script-path.sh @ 353:ee8ab3de9c7f
f-ing print
author | Jeff Hammel <jhammel@mozilla.com> |
---|---|
date | Thu, 27 Jun 2013 02:41:53 -0700 |
parents | 18683536bc57 |
children | 3da85ac3c54f |
rev | line source |
---|---|
319
18683536bc57
adding example scripts for my own posterity
Jeff Hammel <jhammel@mozilla.com>
parents:
diff
changeset
|
1 #!/bin/bash |
18683536bc57
adding example scripts for my own posterity
Jeff Hammel <jhammel@mozilla.com>
parents:
diff
changeset
|
2 |
18683536bc57
adding example scripts for my own posterity
Jeff Hammel <jhammel@mozilla.com>
parents:
diff
changeset
|
3 # echoes path to this script (example) |
18683536bc57
adding example scripts for my own posterity
Jeff Hammel <jhammel@mozilla.com>
parents:
diff
changeset
|
4 |
18683536bc57
adding example scripts for my own posterity
Jeff Hammel <jhammel@mozilla.com>
parents:
diff
changeset
|
5 echo "argv[0]: $0" |
18683536bc57
adding example scripts for my own posterity
Jeff Hammel <jhammel@mozilla.com>
parents:
diff
changeset
|
6 path=`readlink -f $0` |
18683536bc57
adding example scripts for my own posterity
Jeff Hammel <jhammel@mozilla.com>
parents:
diff
changeset
|
7 echo "path: ${path}" |