X-Git-Url: https://git.decadent.org.uk/gitweb/?p=dak.git;a=blobdiff_plain;f=scripts%2Fdebian%2Fddtp-i18n-check.sh;h=74494ad5c054178e95a584f4fe73472bd65491ed;hp=8f5c6c08ffc746bf2d924dbd285f5bcd06547526;hb=d1b9fb11b2adefa328f8ea41c59b835e148c6f8e;hpb=5f729bd392351218dbd3a9b32127e86ca05c7906 diff --git a/scripts/debian/ddtp-i18n-check.sh b/scripts/debian/ddtp-i18n-check.sh index 8f5c6c08..74494ad5 100755 --- a/scripts/debian/ddtp-i18n-check.sh +++ b/scripts/debian/ddtp-i18n-check.sh @@ -25,10 +25,6 @@ DEBUG=0 # files. DRY_RUN=0 -# When GEN_IDX=1, we create the Index files. There is a runtime option -# to not create/generate the Index file. -GEN_IDX=1 - dists_parent_dir="" # If no argument indicates the PACKAGES_LISTS_DIR then use '.' PACKAGES_LISTS_DIR="" @@ -39,7 +35,6 @@ usage () { echo " --debug Debug mode: do not stop after the first error" >&2 echo " --dry-run Do not generate the compressed version of the " >&2 echo " Translation files">&2 - echo " --no-index Do not generate the Index files" >&2 exit 1 } @@ -52,9 +47,6 @@ for opt; do "--dry-run") DRY_RUN=1 ;; - "--no-index") - GEN_IDX=0 - ;; "-*") usage ;; @@ -355,14 +347,6 @@ while read f; do if ! is_dirname_okay "$f"; then echo "Wrong directory name: $f" >&2 exit 1 - else - # If the directory name is OK, and if it's name is i18n - # and GEN_IDX is enabled, we generate the header of the - # Index file - if [ "$(basename $f)" = "i18n" -a "$GEN_IDX" = "1" ]; - then - echo "SHA1:" > "$f/Index" - fi fi elif [ -f "$f" ]; then # If $f is in $SPECIAL_FILES, we skip to the next loop because @@ -410,17 +394,6 @@ while read f; do # Now generate the compressed files bzip2 "$f" fi - - # Create Index - if [ "$GEN_IDX" = "1" ]; then - fbz=${f}.bz2 - IDX=$(dirname $f) - tf_name=$(basename $fbz) - tf_sha1=$(sha1sum $fbz) - tf_size=$(du --bytes $fbz) - printf ' %s % 7s %s\n' "${tf_sha1% *}" \ - "${tf_size% *}" "${tf_name}" >> "$IDX/Index" - fi else echo "Neither a file or directory: $f" >&2 exit 1