]> code.delx.au - gnu-emacs-elpa/commitdiff
* update-archive.sh: *-readme.txt files aren't mutable.
authorStefan Monnier <monnier@iro.umontreal.ca>
Mon, 1 Apr 2013 13:44:30 +0000 (09:44 -0400)
committerStefan Monnier <monnier@iro.umontreal.ca>
Mon, 1 Apr 2013 13:44:30 +0000 (09:44 -0400)
admin/update-archive.sh

index 4702fdf08a94a5ffac36e19b8f5365f2f8a8c3b2..091d7c07b7d180040fffe63a01839e17ec3d43c3 100755 (executable)
@@ -84,12 +84,15 @@ latest="emacs-packages-latest.tgz"
      # Actually, let's never overwrite an existing version.  So changes can
      # be installed without causing a new package to be built until the
      # version field is changed.  Some files need to be excluded from the
-     # "immutable" policy, most importantly "archive-contents".
-     if [ -r "$dst" ] &&
-        [ ! "archive-contents" = "$(basename "$dst")" ]
-     then rm "$f"
-     else mv "$f" "$dst"
-     fi
+     # "immutable" policy, most importantly "archive-contents"
+     # and "*-readme.txt".
+     case $dst in
+         */archive-contents | *-readme.txt ) mv "$f" "$dst" ;;
+         * ) if [ -r "$dst" ]
+             then rm "$f"
+             else mv "$f" "$dst"
+             fi ;;
+     esac
  done
  mv build/archive/"$latest" staging/
  rm -rf build/archive)