|
|
@ -18,6 +18,8 @@ |
|
|
|
|
|
|
|
. "$SDEROOT/lib/libsde.in" |
|
|
|
|
|
|
|
MANIFEST="$SDEROOT/etc/manifest.ini" |
|
|
|
|
|
|
|
manifest_scan_svn() { |
|
|
|
local dir="${1%/*}" info= root= path= url= url0= |
|
|
|
info="$(cd "$dir"; svn info --xml)" |
|
|
@ -77,4 +79,18 @@ manifest_scan() { |
|
|
|
done |
|
|
|
} |
|
|
|
|
|
|
|
manifest_scan |
|
|
|
create_manifest() { |
|
|
|
local scan="$MANIFEST.scan" |
|
|
|
local d= |
|
|
|
|
|
|
|
# scan |
|
|
|
echo_info "Scanning $SDEROOT..." |
|
|
|
manifest_scan > "$scan" |
|
|
|
# sort scan |
|
|
|
for d in $(cut -d' ' -f1 "$scan" | sort); do |
|
|
|
grep "^$d " "$scan" |
|
|
|
done > $scan~ |
|
|
|
mv $scan~ $scan |
|
|
|
} |
|
|
|
|
|
|
|
create_manifest |