From b07ab9faad2b8e419cbcd18d86ad91dc7bf2dffc Mon Sep 17 00:00:00 2001 From: "T. Joseph Carter" Date: Fri, 30 Oct 2015 05:34:48 -0700 Subject: [PATCH] Add modelines --- setup/a2chat.txt | 3 ++- setup/a2cloud-aliases.txt | 3 +++ setup/a2cloudrc.txt | 3 +++ setup/a2news.txt | 3 ++- setup/acmd.txt | 3 ++- setup/adtpro-start.txt | 5 +++-- setup/adtpro.sh.txt | 3 ++- setup/baud.txt | 3 ++- setup/cppo.txt | 4 +++- setup/dopo.txt | 3 ++- setup/dos2pro.txt | 5 +++-- setup/gsport-setup-shell.txt | 3 +++ setup/gsport.txt | 3 ++- setup/kegs-setup-shell.txt | 3 +++ setup/kegs.txt | 3 ++- setup/linapple.txt | 3 ++- setup/mkpo.txt | 3 ++- setup/raspbian-update.txt | 3 ++- setup/setup.txt | 3 ++- setup/shk2image.txt | 3 ++- setup/term.txt | 3 +++ setup/ttyusbhandler.txt | 3 ++- setup/usbgetty.txt | 3 ++- setup/vsd.txt | 3 ++- 24 files changed, 56 insertions(+), 21 deletions(-) diff --git a/setup/a2chat.txt b/setup/a2chat.txt index ff064ef..3cb3f80 100644 --- a/setup/a2chat.txt +++ b/setup/a2chat.txt @@ -1,4 +1,5 @@ -#!/bin/bash +#! /bin/bash +# vim: set tabstop=4 shiftwidth=4 expandtab filetype=sh: if [[ ! $(dpkg -l irssi 2> /dev/null | grep '^ii') ]]; then echo "Installing irssi..." diff --git a/setup/a2cloud-aliases.txt b/setup/a2cloud-aliases.txt index caee9cb..66c745a 100644 --- a/setup/a2cloud-aliases.txt +++ b/setup/a2cloud-aliases.txt @@ -1,3 +1,6 @@ +#! /bin/bash +# vim: set tabstop=4 shiftwidth=4 expandtab filetype=sh: + # A2CLOUD aliases: alias a2cloud-setup='wget -qO /tmp/a2cloud-setup ivanx.com/a2cloud/setup/; source /tmp/a2cloud-setup' diff --git a/setup/a2cloudrc.txt b/setup/a2cloudrc.txt index aee7c12..9a609d2 100644 --- a/setup/a2cloudrc.txt +++ b/setup/a2cloudrc.txt @@ -1,3 +1,6 @@ +#! /bin/bash +# vim: set tabstop=4 shiftwidth=4 expandtab filetype=sh: + source /usr/local/etc/a2cloud-aliases if [[ -f /usr/local/java/bin/java ]]; then diff --git a/setup/a2news.txt b/setup/a2news.txt index d185a33..a9aee6f 100644 --- a/setup/a2news.txt +++ b/setup/a2news.txt @@ -1,4 +1,5 @@ -#!/bin/bash +#! /bin/bash +# vim: set tabstop=4 shiftwidth=4 expandtab filetype=sh: defaultNNTP="news.aioe.org" defaultGroups="comp.emulators.apple2:\ncomp.sys.apple2:\ncomp.sys.apple2.comm:\ncomp.sys.apple2.marketplace:\ncomp.sys.apple2.programmer:\ncomp.sys.apple2.usergroups:" diff --git a/setup/acmd.txt b/setup/acmd.txt index 432168f..0e0cd87 100644 --- a/setup/acmd.txt +++ b/setup/acmd.txt @@ -1,4 +1,5 @@ -#!/bin/bash +#! /bin/bash +# vim: set tabstop=4 shiftwidth=4 expandtab filetype=sh: decToHex () { # converts single-byte decimal value to hexadecimal equivalent diff --git a/setup/adtpro-start.txt b/setup/adtpro-start.txt index 2996a1c..04286a0 100644 --- a/setup/adtpro-start.txt +++ b/setup/adtpro-start.txt @@ -1,4 +1,5 @@ -#!/bin/bash +#! /bin/bash +# vim: set tabstop=4 shiftwidth=4 expandtab filetype=sh: # don't do anything if ADTPro is already running if [[ $(ps aux | grep [A]DTPro) ]]; then @@ -30,4 +31,4 @@ else 1>&2 echo " of a hub on the upper USB port. Not starting ADTPro server." fi -fi \ No newline at end of file +fi diff --git a/setup/adtpro.sh.txt b/setup/adtpro.sh.txt index aa9b2a5..fa29a6d 100644 --- a/setup/adtpro.sh.txt +++ b/setup/adtpro.sh.txt @@ -1,4 +1,5 @@ -#!/bin/bash +#! /bin/bash +# vim: set tabstop=4 shiftwidth=4 expandtab filetype=sh: # ADTPro - *nix startup shell script # diff --git a/setup/baud.txt b/setup/baud.txt index 7d48f8e..5060319 100644 --- a/setup/baud.txt +++ b/setup/baud.txt @@ -1,4 +1,5 @@ -#!/bin/bash +#! /bin/bash +# vim: set tabstop=4 shiftwidth=4 expandtab filetype=sh: if [[ $1 == "-d" ]]; then shift diff --git a/setup/cppo.txt b/setup/cppo.txt index fdbf660..d268c1c 100644 --- a/setup/cppo.txt +++ b/setup/cppo.txt @@ -1,4 +1,6 @@ -#!/usr/bin/env python +#! /usr/bin/env python +# vim: set tabstop=4 shiftwidth=4 expandtab filetype=python: + """cppo: Copy or catalog one or all files from a ProDOS raw disk image. copy all files: diff --git a/setup/dopo.txt b/setup/dopo.txt index b097d0b..8a28040 100644 --- a/setup/dopo.txt +++ b/setup/dopo.txt @@ -1,4 +1,5 @@ -#!/bin/bash +#! /bin/bash +# vim: set tabstop=4 shiftwidth=4 expandtab filetype=sh: # follows gzip syntax -- acts in place if filename provided, outputs to # stdout with -c, accepts stdin and outputs to stdout if filename is - or absent diff --git a/setup/dos2pro.txt b/setup/dos2pro.txt index 19cf44e..9c50f19 100644 --- a/setup/dos2pro.txt +++ b/setup/dos2pro.txt @@ -1,4 +1,5 @@ -#!/bin/bash +#! /bin/bash +# vim: set tabstop=4 shiftwidth=4 expandtab filetype=sh: readcharDec () { # read one character from file & convert to equivalent decimal value @@ -121,4 +122,4 @@ if [[ ! $filesCopied ]]; then else echo "No files copied." fi -fi \ No newline at end of file +fi diff --git a/setup/gsport-setup-shell.txt b/setup/gsport-setup-shell.txt index ae6625e..50d7167 100644 --- a/setup/gsport-setup-shell.txt +++ b/setup/gsport-setup-shell.txt @@ -1,3 +1,6 @@ +#! /bin/bash +# vim: set tabstop=4 shiftwidth=4 expandtab filetype=sh: + wget -qO /tmp/gsport-setup appleii.ivanx.com/a2cloud/setup/gsport-setup.txt if [[ $(wc -c /tmp/gsport-setup | grep '^0 ') ]]; then echo "Please connect to the internet to set up GSport." diff --git a/setup/gsport.txt b/setup/gsport.txt index dfbd040..1724604 100644 --- a/setup/gsport.txt +++ b/setup/gsport.txt @@ -1,4 +1,5 @@ -#!/bin/bash +#! /bin/bash +# vim: set tabstop=4 shiftwidth=4 expandtab filetype=sh: if [[ ( $(grep USB <<< $myTTY) || $(grep AMA <<< $myTTY) || $SSH_CLIENT || $REMOTEHOST ) && ! $DISPLAY ]]; then echo "Please run GSport on the console, or in an X Window." diff --git a/setup/kegs-setup-shell.txt b/setup/kegs-setup-shell.txt index 7e5f02e..a09f753 100644 --- a/setup/kegs-setup-shell.txt +++ b/setup/kegs-setup-shell.txt @@ -1,3 +1,6 @@ +#! /bin/bash +# vim: set tabstop=4 shiftwidth=4 expandtab filetype=sh: + wget -qO /tmp/gsport-setup ivanx.com/a2cloud/setup/gsport-setup.txt if [[ $(wc -c /tmp/gsport-setup | grep '^0 ') ]]; then echo "Please connect to the internet to set up KEGS." diff --git a/setup/kegs.txt b/setup/kegs.txt index 7a891f5..4c240a0 100644 --- a/setup/kegs.txt +++ b/setup/kegs.txt @@ -1,4 +1,5 @@ -#!/bin/bash +#! /bin/bash +# vim: set tabstop=4 shiftwidth=4 expandtab filetype=sh: if [[ ! $DISPLAY ]]; then echo "Please run KEGS in an X Window." diff --git a/setup/linapple.txt b/setup/linapple.txt index 0421dc6..b344523 100644 --- a/setup/linapple.txt +++ b/setup/linapple.txt @@ -1,4 +1,5 @@ -#!/bin/bash +#! /bin/bash +# vim: set tabstop=4 shiftwidth=4 expandtab filetype=sh: if [[ ( $(grep USB <<< $myTTY) || $(grep AMA <<< $myTTY) || $SSH_CLIENT || $REMOTEHOST ) && ! $DISPLAY ]]; then echo "Please run LinApple on the console, or in an X Window." diff --git a/setup/mkpo.txt b/setup/mkpo.txt index 0aee1d5..99243b5 100644 --- a/setup/mkpo.txt +++ b/setup/mkpo.txt @@ -1,4 +1,5 @@ -#!/bin/bash +#! /bin/bash +# vim: set tabstop=4 shiftwidth=4 expandtab filetype=sh: # ID-bashByter routines diff --git a/setup/raspbian-update.txt b/setup/raspbian-update.txt index a3efce7..2257812 100644 --- a/setup/raspbian-update.txt +++ b/setup/raspbian-update.txt @@ -1,4 +1,5 @@ -#!/bin/bash +#! /bin/bash +# vim: set tabstop=4 shiftwidth=4 expandtab filetype=sh: # raspbian-update # updates Raspbian to latest version, including NOOBS if installed diff --git a/setup/setup.txt b/setup/setup.txt index 25676f1..cac1a6e 100644 --- a/setup/setup.txt +++ b/setup/setup.txt @@ -1,4 +1,5 @@ -#!/bin/bash +#! /bin/bash +# vim: set tabstop=4 shiftwidth=4 expandtab filetype=sh: version="182" adtProVersion="2.0.1" diff --git a/setup/shk2image.txt b/setup/shk2image.txt index 8d452cf..63babee 100644 --- a/setup/shk2image.txt +++ b/setup/shk2image.txt @@ -1,4 +1,5 @@ -#!/bin/bash +#! /bin/bash +# vim: set tabstop=4 shiftwidth=4 expandtab filetype=sh: origDir="$PWD" [[ ! -n $1 || ! -n $2 ]] && { echo "Usage: shk2image archiveFileName imageFileName [PRODOS.DIR.NAME]"; exit 1; }; diff --git a/setup/term.txt b/setup/term.txt index 44d00ba..3f8b1ff 100644 --- a/setup/term.txt +++ b/setup/term.txt @@ -1,3 +1,6 @@ +#! /bin/bash +# vim: set tabstop=4 shiftwidth=4 expandtab filetype=sh: + if [[ $1 == "-d" ]]; then shift setgetty=1 diff --git a/setup/ttyusbhandler.txt b/setup/ttyusbhandler.txt index 0296fc6..f8ff2a8 100644 --- a/setup/ttyusbhandler.txt +++ b/setup/ttyusbhandler.txt @@ -1,4 +1,5 @@ -#!/bin/bash +#! /bin/bash +# vim: set tabstop=4 shiftwidth=4 expandtab filetype=sh: # called by udev as: # ttyusbhandler [add|remove] ttyUSBname diff --git a/setup/usbgetty.txt b/setup/usbgetty.txt index 8d5b805..9400465 100644 --- a/setup/usbgetty.txt +++ b/setup/usbgetty.txt @@ -1,4 +1,5 @@ -#!/bin/bash +#! /bin/bash +# vim: set tabstop=4 shiftwidth=4 expandtab filetype=sh: ttyUSB= diff --git a/setup/vsd.txt b/setup/vsd.txt index 1fff799..4ff7865 100644 --- a/setup/vsd.txt +++ b/setup/vsd.txt @@ -1,4 +1,5 @@ -#!/bin/bash +#! /bin/bash +# vim: set tabstop=4 shiftwidth=4 expandtab filetype=sh: skipWarning= drive=