Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
adds extra arch upgrade scripts. adds whichpy for python module locat…
…ion.
- Loading branch information
Troy Melhase
committed
Apr 26, 2010
1 parent
b2acbae
commit 19d4698
Showing
5 changed files
with
24 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
#!/bin/bash | ||
|
||
whichpy "$1" | xargs cat |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
#!/bin/bash | ||
yaourt -Syu --aur "$@" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
#!/bin/bash | ||
yaourt -Syu --devel "$@" | ||
|
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
#!/bin/bash | ||
|
||
python -c " | ||
import sys | ||
try: | ||
import $1 | ||
fn = $1.__file__ | ||
if fn.endswith('.pyc') or fn.endswith('.pyo'): | ||
fn = fn.rpartition('.py')[0] + '.py' | ||
print fn | ||
sys.exit(0) | ||
except (Exception, ), exc: | ||
print 'Exception: ', exc | ||
sys.exit(1) | ||
" |