4 echo "Usage: $0 filename version arch changes_file"
8 WIN32_LOADER_FILE="$1" # *-win32-loader{.exe,txt}
11 CHANGES="$4" # Changes file for the upload
18 # Get the target suite from the Changes file
19 # NOTE: it may be better to pass this to the script as a parameter!
20 SUITE="$(grep "^Distribution:" "$CHANGES" | awk '{print $2}')"
23 error "Error: unable to determine suite from Changes file"
29 SUITE="${SUITE}-proposed-updates"
33 # This must end with /
34 TARGET="/srv/ftp-master.debian.org/ftp/tools/"
36 # Check validity of the target directory
37 if [ ! -d "$TARGET" ]; then
41 # Put said file into the tools directory
42 cp "$WIN32_LOADER_FILE" "$TARGET"