added optional prefix and buildroot args (for RPM)
This commit is contained in:
parent
5da630c13a
commit
2207de4347
@ -3,8 +3,18 @@ import sys
|
|||||||
|
|
||||||
from sugar import setup
|
from sugar import setup
|
||||||
|
|
||||||
|
if len(sys.argv) > 2:
|
||||||
|
prefix = sys.argv[2]
|
||||||
|
else:
|
||||||
|
prefix = '@prefix@'
|
||||||
|
|
||||||
|
if len(sys.argv) > 3:
|
||||||
|
root = sys.argv[3]
|
||||||
|
else:
|
||||||
|
root = ''
|
||||||
|
|
||||||
setup.setup_activity(sys.argv[1],
|
setup.setup_activity(sys.argv[1],
|
||||||
'@prefix@/share/sugar/activities',
|
'%s%s/share/sugar/activities' % (root, prefix),
|
||||||
'@prefix@/bin/sugar-activity-factory')
|
'%s/bin/sugar-activity-factory' % prefix)
|
||||||
|
|
||||||
print '%s installed.' % sys.argv[1]
|
print '%s installed.' % sys.argv[1]
|
||||||
|
Loading…
Reference in New Issue
Block a user