7 echo "Usage: $0 filename version arch changes_file"
11 export SCRIPTVARS=/srv/ftp-master.debian.org/dak/config/debian/vars
14 WIN32_LOADER_FILE="$1" # *-win32-loader{.exe,txt}
17 CHANGES="$4" # Changes file for the upload
19 # Get the target suite from the Changes file
20 # NOTE: it may be better to pass this to the script as a parameter!
21 SUITE="$(grep "^Distribution:" "$CHANGES" | awk '{print $2}')"
24 echo "Error: unable to determine suite from Changes file"
31 SUITE="${SUITE}-proposed-updates"
35 # This must end with /
36 TARGET="${ftpdir}/tools/win32-loader/${SUITE}/"
38 # Check validity of the target directory
39 if [ ! -d "$TARGET" ]; then
43 # Put said file into the tools directory
44 cp "$WIN32_LOADER_FILE" "$TARGET"