|
|
@ -2,7 +2,7 @@ |
|
|
|
# This copyright note is auto-generated by ./scripts/Create-CopyPatch. |
|
|
|
# |
|
|
|
# Filename: lib/sde-package.in |
|
|
|
# Copyright (C) 2006 - 2007 The OpenSDE Project |
|
|
|
# Copyright (C) 2006 - 2008 The OpenSDE Project |
|
|
|
# |
|
|
|
# More information can be found in the files COPYING and README. |
|
|
|
# |
|
|
@ -16,9 +16,13 @@ |
|
|
|
#Description: Package related tasks |
|
|
|
|
|
|
|
package_autodetect() { |
|
|
|
echo $( pwd -P | sed -n -e "s,^$SDEROOT/package/[^/]*/\([^/]*\)\(/.*\)\?$,\1,p" ) |
|
|
|
pwd -P | sed -n -e "s,^$SDEROOT/package/[^/]*/\([^/]*\)\(/.*\)\?$,\1,p" |
|
|
|
} |
|
|
|
|
|
|
|
package_autodetect_repo() { |
|
|
|
echo $( pwd -P | sed -n -e "s,^$SDEROOT/package/\([^/]*\)\(/.*\)\?,\1,p" ) |
|
|
|
pwd -P | sed -n -e "s,^$SDEROOT/package/\([^/]*\)\(/.*\)\?,\1,p" |
|
|
|
} |
|
|
|
|
|
|
|
package_confdir() { |
|
|
|
ls -1d "$SDEROOT/package"/*/"$1" 2> /dev/null | head -n 1 |
|
|
|
} |