Put back files deleted (in a merge?).

Pascal J. Bourguignon [2021-08-16 12:45]
Put back files deleted (in a merge?).
Filename
save-status
vbox-admin
vbox-debian-save
vbox-debian-start
diff --git a/save-status b/save-status
deleted file mode 100755
index 4ee69b0..0000000
--- a/save-status
+++ /dev/null
@@ -1,60 +0,0 @@
-#!/bin/bash -eu
-
-function printError(){
-    local message="$*"
-    printf "ERROR    %s\n" "$message" >&2
-}
-
-function printWarning(){
-    local message="$*"
-    printf "WARNING  %s\n" "$message" >&2
-}
-
-function printInfo(){
-    local message="$*"
-    printf "INFO     %s\n" "$message" >&2
-}
-
-function printMessage(){
-    printInfo "$@"
-}
-
-function quote(){
-    # concatenate all the arguments and shell-quote them.
-    printf '%s\n' "$*" | sed "s/'/'\\\\''/g;1s/^/'/;\$s/\$/'/"
-}
-
-function quoteRegexp(){
-    # concatenate all the arguments and regexp-quote them.
-    printf '%s\n' "$*" | sed 's/\(.\)/[\1]/g'
-}
-
-
-lockfile=''
-function with_lock(){
-    local file="$1";shift
-    lockfile="${file}.lock"
-    while ! shlock -f "${lockfile}" -p $$ ; do
-        sleep 1
-    done
-    trap 'rm -f "${lockfile}" 2>/dev/null' 0
-}
-
-function saveStatus(){
-    local statusFile="$1"
-    local status="$2"
-    with_lock "$statusFile"
-    echo "$status" >> "$statusFile"
-}
-
-
-function main(){
-    local statusFile="$1"
-    shift
-    local status=0
-    "$@" || status=$?
-    saveStatus "$statusFile" "$status"
-    exit $status
-}
-
-main "$@"
diff --git a/vbox-admin b/vbox-admin
deleted file mode 100644
index f48a128..0000000
--- a/vbox-admin
+++ /dev/null
@@ -1,4 +0,0 @@
-
-vm modifyvm osx --name sata1 --add sata
-vm storagectl osx --name sata1 --add sata
-vm storageattach osx --storagectl sata1 --port 0 --device 0 --type hdd --medium "$(pwd)/disks/galatea.vdi" --mtype multiattach
diff --git a/vbox-debian-save b/vbox-debian-save
deleted file mode 100755
index f7f5032..0000000
--- a/vbox-debian-save
+++ /dev/null
@@ -1,5 +0,0 @@
-#!/bin/bash
-function vboxmanage(){
-    '/Applications/VirtualBox.app/Contents/MacOS/VBoxManage' "$@"
-}
-vboxmanage controlvm "debian-8.6-jessie" savestate
diff --git a/vbox-debian-start b/vbox-debian-start
deleted file mode 100755
index fc41325..0000000
--- a/vbox-debian-start
+++ /dev/null
@@ -1,5 +0,0 @@
-#!/bin/bash
-function vboxmanage(){
-    '/Applications/VirtualBox.app/Contents/MacOS/VBoxManage' "$@"
-}
-vboxmanage startvm   "debian-8.6-jessie"
ViewGit