Browse Source

sde-create-manifest: sort manifest_scan output

user/amery/wip/manifest
Alejandro Mery 14 years ago
parent
commit
a556c098b9
1 changed files with 17 additions and 1 deletions
  1. +17
    -1
      bin/sde-create-manifest

+ 17
- 1
bin/sde-create-manifest

@ -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

Loading…
Cancel
Save