When enumerating files to process, ignore those generated by this script. release-9.2.0
authorChris Hanson <org/chris-hanson/cph>
Thu, 5 Jun 2014 02:51:18 +0000 (19:51 -0700)
committerChris Hanson <org/chris-hanson/cph>
Thu, 5 Jun 2014 02:51:18 +0000 (19:51 -0700)
dist/make-upload-files

index f57ab5e08e27d5fcaea1110a20a08ef220809e3b..eee1bc9f39b7cbb6a998ce4725407ad9338f0fea 100755 (executable)
@@ -16,6 +16,11 @@ if ! [[ ${VERSION} =~ ^[0-9.]+$ ]]; then
 fi
 
 for FILE in "${@}"; do
+    # Ignore files written by this script.
+    [[ ${FILE} == *.directive ]] && continue
+    [[ ${FILE} == *.asc ]] && continue
+    [[ ${FILE} == *.sig ]] && continue
+
     rm -f "${FILE}".directive
     cat > "${FILE}".directive <<EOF
 version: 1.1