Short: Writes, checks, uploads Aminet readmes Author: SkIzZoLFs / LfsCrew Uploader: SkIzZoLFs Type: comm/tcp Version: 1.5 Requires: AmigaOS 3.5+ (ReAction), 68020+, TCP/IP (bsdsocket) Architecture: m68k-amigaos Distribution: Aminet Kurz: Aminet-Readmes schreiben/pruefen/senden [ENGLISH] Aminet Upload For Dummy 1.5 =========================== Prepares an archive for Aminet and uploads it: writes and checks the readme, then sends archive and readme to the /new directory of main.aminet.net. Rewritten from scratch after Aminet-Uploader 1.0 (ReAction version), adding Save readme and a full readme check. NEW IN 1.5 ---------- - "Save readme" is now on the Description tab, next to "Load readme..." and "Clear all", with a status line that tells the result (written, unchanged or error). The Compile button on the General tab is gone: there you only pick or drop the archive, and the check runs by itself. - Sign: a box on the Description tab adds a last line "Uploaded with Aminet Upload For Dummy" to the readme. It is on by default and the choice is remembered; switch it off and Save readme removes the line. A signed readme loaded again does not show the line in the editor, so it is never written twice. - Fixed: an .lha with many readmes could leave some in T:AUFD and the next archive without a readme picked up an old one. - Fixed: the "Simulate upload" and "Sign" boxes are read correctly. - "Add:" goes back to "-" after a choice. NEW IN 1.4 ---------- - More platforms in Architecture: the new field "Also for" holds the other systems, separated by ";" (for example "ppc-amigaos >= 4.0; ppc-morphos"); "Add" picks them from a list. A warning appears if "generic" is mixed with other architectures. An Architecture line longer than 78 characters is only a warning: Aminet accepts it, it does not block the upload. - The readme name is checked too: Aminet allows 30 characters for it, so the archive name without extension can have 23 at most (1.3 checked only the archive name). - New archive names: AminetUpload4Dummy.lha and AminetUpload4Dummy-src.lha. NEW IN 1.3 ---------- - Drag and drop: drop an archive or a readme icon on the window. On the Description tab a readme (or any text file) is loaded into the description: you can choose all of it or the description only, and replace or append to the text already there. - Description tab: "Load readme..." and "Clear all" buttons; an empty description shows "Drop .readme file HERE!". - Double-click a description row in the log: the tab opens and the line is marked. - Kurz field (German Short) with a warning if Short changes and Kurz does not. - Mouse wheel in About, Description, log and status list. - Architecture generic empties the version field. - Language from the icon: tooltype LANGUAGE=italiano / english / deutsch (or LANGUAGE= from the Shell). - Clearer message when a ReAction class is missing; the 3.2 program started on an older system no longer uses the list call that freezes 3.9. NEW IN 1.2 ---------- - A separate program for AmigaOS 3.9: AminetUploadForDummy_OS39. Use AminetUploadForDummy on 3.2 and AminetUploadForDummy_OS39 on 3.9. - Changing tab no longer touches the gadgets while the system redraws the page (could freeze the machine with some GUI patches). - The log is redrawn only when its contents change: the window is lighter while you type. HOW TO USE IT ------------- 1. General: Name and E-Mail (used for the Uploader: field), then Select... the archive. If .readme is next to it, it is loaded automatically; if it is missing and the archive is an .lha, the readme is searched inside it with C:lha. Open... loads any readme: if the archive with the same name is next to it, it is selected automatically. 2. Readme Header: category, Short and Kurz (40 characters at most), Architecture (and "Also for" for more platforms) and the other fields. 3. Readme Description: the free text (lines of 78 characters at most). 4. Save readme (Description tab): writes the readme next to the archive. If one existed and was different, the old one is kept as .readme.bak. "Sign" adds the line "Uploaded with Aminet Upload For Dummy" at the end (on by default). 5. Upload: Check tests the server; Upload to Aminet sends archive and readme. "Simulate upload" does everything but sending. "Aminet defaults" restores server, user name and password. THE README CHECK ---------------- On the General tab every problem has a row: type, line in the file, field and explanation. ERROR blocks the upload: Short over 40 characters, Type missing, header line over 78 characters, invalid file name... WARNING asks before uploading: Version missing, long lines in the description, unknown fields... The check runs again when you confirm a field (Return or Tab), change a choice or a tab, and always before Save readme and Upload. Readmes with Windows (CR+LF) or Mac (CR) line ends and UTF-8 text (converted to ISO-8859-1) are accepted; everything unusual is reported in the log, nothing is dropped silently. AMINET RULES TO REMEMBER ------------------------ - Source archives: Architecture: generic. - The readme is named like the archive: foo.lha -> foo.readme. - File name: 30 characters at most, only A-Z a-z 0-9 . _ - The readme too: the archive name without extension 23 at most. - An incomplete file in /new cannot be deleted: try the simulation or a test FTP server (host:port) first. INSTALLATION ------------ Copy the drawer AminetUploadForDummy wherever you like; keep the drawer "catalogs" next to the programs (Italian and German; English is built in). Preferences are kept in ENVARC:AminetUploadForDummy.prefs; the password is never saved (for Aminet it is your e-mail address). Shell: AminetUploadForDummy [ARCHIVE=] [DRYRUN] [LANGUAGE=] System: AmigaOS 3.5 or higher (ReAction), tested on 3.2 and 3.9. Use AminetUploadForDummy on 3.2, AminetUploadForDummy_OS39 on 3.5/3.9. CREDITS ------- Made by SkIzZoLFs / LfsCrew Contact: lfscr3w@gmail.com Built with GCC 6.5 (m68k-amigaos). Sources: AminetUpload4Dummy-src.lha. Freeware. THANKS ------ Thanks to VagaPPC, who tested version 1.3 and suggested the idea behind "More platforms" in 1.4: one readme for every system the program runs on. ======================================================================== [ITALIANO] Aminet Upload For Dummy 1.5 =========================== Prepara un archivio per Aminet e lo invia: scrive e controlla il readme, poi carica archivio e readme nella cartella /new di main.aminet.net. Rifatto da zero partendo da Aminet-Uploader 1.0 (versione ReAction), con in piu' Salva readme e un controllo completo del readme. NOVITA' DELLA 1.5 ----------------- - "Salva readme" ora e' nella scheda Descrizione, accanto a "Carica readme..." e "Azzera tutto", con una riga di stato che dice com'e' andata (scritto, invariato o errore). In Generale il tasto Compila non c'e' piu': li' si sceglie o si trascina l'archivio e il controllo parte da solo. - Firma: una casella nella scheda Descrizione aggiunge in fondo al readme la riga "Uploaded with Aminet Upload For Dummy". E' accesa di base e la scelta viene ricordata; spegnendola, Salva readme toglie la riga. Un readme firmato riaperto non mostra la riga nell'editor, cosi' non viene mai scritta due volte. - Corretto: un .lha con tanti readme poteva lasciarne qualcuno in T:AUFD e l'archivio seguente senza readme prendeva quello vecchio. - Corretto: le caselle "Simulazione invio" e "Firma" vengono lette nel modo giusto. - "Aggiungi:" torna a "-" dopo la scelta. NOVITA' DELLA 1.4 ----------------- - Piu' piattaforme in Architecture: il nuovo campo "Anche per" contiene gli altri sistemi, separati da ";" (per esempio "ppc-amigaos >= 4.0; ppc-morphos"); "Aggiungi" li prende da un elenco. Un avviso se "generic" e' insieme ad altre architetture. Una riga Architecture oltre i 78 caratteri da' solo un avviso: Aminet la accetta, non blocca l'invio. - Ora si controlla anche il nome del readme: Aminet ammette 30 caratteri anche per lui, quindi il nome dell'archivio senza estensione puo' averne al massimo 23 (la 1.3 guardava solo l'archivio). - Nuovi nomi degli archivi: AminetUpload4Dummy.lha e AminetUpload4Dummy-src.lha. NOVITA' DELLA 1.3 ----------------- - Trascina e rilascia: trascina sulla finestra l'icona di un archivio o di un readme. Nella scheda Descrizione un readme (o un file di testo qualsiasi) va nella descrizione: si sceglie se tutto o solo la descrizione, e se sostituire o aggiungere in fondo. - Scheda Descrizione: pulsanti "Carica readme..." e "Azzera tutto"; a descrizione vuota appare "Trascina File .Readme QUI !". - Doppio clic su una riga della descrizione nel log: si apre la scheda e la riga viene evidenziata. - Campo Kurz (lo Short in tedesco), con un avviso se cambia Short ma non Kurz. - Rotella del mouse in Informazioni, Descrizione, log e lista Stato. - Architecture generic svuota il campo della versione. - Lingua dall'icona: tooltype LANGUAGE=italiano / english / deutsch (o LANGUAGE= dalla Shell). - Messaggio piu' chiaro se manca una classe ReAction; il programma per il 3.2 avviato su un sistema piu' vecchio non usa piu' la chiamata della lista che blocca il 3.9. NOVITA' DELLA 1.2 ----------------- - Un programma a parte per AmigaOS 3.9: AminetUploadForDummy_OS39. Sul 3.2 si usa AminetUploadForDummy, sul 3.9 AminetUploadForDummy_OS39. - Cambiando scheda il programma non tocca piu' i gadget mentre il sistema ridisegna la pagina (con alcune patch della GUI poteva bloccare la macchina). - Il log si ridisegna solo quando cambia: la finestra e' piu' leggera mentre si scrive. COME SI USA ----------- 1. Generale: Nome ed E-Mail (servono per il campo Uploader:), poi Seleziona... l'archivio. Se accanto c'e' .readme viene caricato da solo; se manca e l'archivio e' un .lha, il readme viene cercato dentro l'archivio con C:lha. Con Apri... si carica un readme qualsiasi: se accanto c'e' l'archivio con lo stesso nome, viene scelto da solo. 2. Intestazione del Readme: categoria, Short e Kurz (al massimo 40 caratteri), Architecture (e "Anche per" per piu' piattaforme) e gli altri campi. 3. Descrizione del Readme: il testo libero (righe di 78 caratteri al massimo). 4. Salva readme (scheda Descrizione): scrive il readme accanto all'archivio. Se ce n'era uno diverso, il vecchio resta come .readme.bak. "Firma" aggiunge in fondo la riga "Uploaded with Aminet Upload For Dummy" (accesa di base). 5. Upload: Verifica prova il server; Carica su Aminet invia archivio e readme. "Simulazione invio" fa tutto tranne l'invio. "Predefiniti Aminet" rimette server, nome utente e password. IL CONTROLLO DEL README ----------------------- Nella scheda Generale ogni problema ha una riga: tipo, riga del file, campo e spiegazione. ERRORE blocca l'invio: Short oltre 40 caratteri, Type mancante, riga d'intestazione oltre 78 caratteri, nome del file non valido... AVVISO chiede conferma prima dell'invio: Version mancante, righe lunghe nella descrizione, campi sconosciuti... Il controllo riparte quando si conferma un campo (Invio o Tab), si cambia una scelta o una scheda, e sempre prima di Salva readme e Carica. Sono accettati readme con fine riga Windows (CR+LF) o Mac (CR) e testo UTF-8 (convertito in ISO-8859-1); tutto cio' che e' insolito finisce nel log, niente viene scartato in silenzio. REGOLE DI AMINET DA RICORDARE ----------------------------- - Archivi di sorgenti: Architecture: generic. - Il readme si chiama come l'archivio: lfscrew.lha -> lfscrew.readme. - Nome del file: al massimo 30 caratteri, solo A-Z a-z 0-9 . _ - Anche il readme: il nome dell'archivio senza estensione al massimo 23. - Un file incompleto in /new non si puo' cancellare: prima prova la simulazione o un server FTP di prova (host:porta). INSTALLAZIONE ------------- Copia il cassetto AminetUploadForDummy dove vuoi; tieni il cassetto "catalogs" accanto ai programmi (italiano e tedesco; l'inglese e' dentro il programma). Le preferenze stanno in ENVARC:AminetUploadForDummy.prefs; la password non viene mai salvata (per Aminet e' il tuo indirizzo e-mail). Shell: AminetUploadForDummy [ARCHIVIO=] [PROVA] [LANGUAGE=] Sistema: AmigaOS 3.5 o superiore (ReAction), provato su 3.2 e 3.9. Sul 3.2 AminetUploadForDummy, sul 3.5/3.9 AminetUploadForDummy_OS39. CREDITI ------- Fatto da SkIzZoLFs / LfsCrew Contatti: lfscr3w@gmail.com Compilato con GCC 6.5 (m68k-amigaos). Sorgenti: AminetUpload4Dummy-src.lha. Freeware. RINGRAZIAMENTI -------------- Grazie a VagaPPC, che ha provato la versione 1.3 e ha proposto l'idea da cui e' nato "Piu' piattaforme" della 1.4: un solo readme per tutti i sistemi su cui gira il programma. -- Uploaded with Aminet Upload For Dummy 1.5 (Aminet: comm/tcp)