Mercurial > hg > config
annotate bin/example/script-path.sh @ 922:74dc16f074be default tip
ignore ff merges
author | Jeff Hammel <k0scist@gmail.com> |
---|---|
date | Thu, 03 Oct 2024 05:36:19 -0700 |
parents | 3da85ac3c54f |
children |
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}" |
685
3da85ac3c54f
STUB: bin/example/script-path.sh
Jeff Hammel <k0scist@gmail.com>
parents:
319
diff
changeset
|
8 echo "basename: $(basename $0)" |