Adding licensing headers and updating installer for JoeyDev.
This commit is contained in:
parent
1832f5de7d
commit
986c63e7e1
4 changed files with 81 additions and 7 deletions
|
@ -1,5 +1,26 @@
|
||||||
#!/bin/bash -e
|
#!/bin/bash -e
|
||||||
|
|
||||||
|
#
|
||||||
|
# JoeyLib
|
||||||
|
# Copyright (C) 2018-2019 Scott Duensing <scott@kangaroopunch.com>
|
||||||
|
#
|
||||||
|
# This software is provided 'as-is', without any express or implied
|
||||||
|
# warranty. In no event will the authors be held liable for any damages
|
||||||
|
# arising from the use of this software.
|
||||||
|
#
|
||||||
|
# Permission is granted to anyone to use this software for any purpose,
|
||||||
|
# including commercial applications, and to alter it and redistribute it
|
||||||
|
# freely, subject to the following restrictions:
|
||||||
|
#
|
||||||
|
# 1. The origin of this software must not be misrepresented; you must not
|
||||||
|
# claim that you wrote the original software. If you use this software
|
||||||
|
# in a product, an acknowledgment in the product documentation would be
|
||||||
|
# appreciated but is not required.
|
||||||
|
# 2. Altered source versions must be plainly marked as such, and must not be
|
||||||
|
# misrepresented as being the original software.
|
||||||
|
# 3. This notice may not be removed or altered from any source distribution.
|
||||||
|
#
|
||||||
|
|
||||||
# Amiga
|
# Amiga
|
||||||
# https://github.com/bebbo/amiga-gcc
|
# https://github.com/bebbo/amiga-gcc
|
||||||
# m68k-amigaos-gcc -idirafter /home/scott/joey/sdks/amiga/m68k-amigaos/sys-include/machine -c ../src/joey.c
|
# m68k-amigaos-gcc -idirafter /home/scott/joey/sdks/amiga/m68k-amigaos/sys-include/machine -c ../src/joey.c
|
||||||
|
|
|
@ -1,3 +1,24 @@
|
||||||
|
#
|
||||||
|
# JoeyLib
|
||||||
|
# Copyright (C) 2018-2019 Scott Duensing <scott@kangaroopunch.com>
|
||||||
|
#
|
||||||
|
# This software is provided 'as-is', without any express or implied
|
||||||
|
# warranty. In no event will the authors be held liable for any damages
|
||||||
|
# arising from the use of this software.
|
||||||
|
#
|
||||||
|
# Permission is granted to anyone to use this software for any purpose,
|
||||||
|
# including commercial applications, and to alter it and redistribute it
|
||||||
|
# freely, subject to the following restrictions:
|
||||||
|
#
|
||||||
|
# 1. The origin of this software must not be misrepresented; you must not
|
||||||
|
# claim that you wrote the original software. If you use this software
|
||||||
|
# in a product, an acknowledgment in the product documentation would be
|
||||||
|
# appreciated but is not required.
|
||||||
|
# 2. Altered source versions must be plainly marked as such, and must not be
|
||||||
|
# misrepresented as being the original software.
|
||||||
|
# 3. This notice may not be removed or altered from any source distribution.
|
||||||
|
#
|
||||||
|
|
||||||
# --- HERE BE DRAGONS ---
|
# --- HERE BE DRAGONS ---
|
||||||
|
|
||||||
function buildIIgs() {
|
function buildIIgs() {
|
||||||
|
|
|
@ -1,3 +1,24 @@
|
||||||
|
#
|
||||||
|
# JoeyLib
|
||||||
|
# Copyright (C) 2018-2019 Scott Duensing <scott@kangaroopunch.com>
|
||||||
|
#
|
||||||
|
# This software is provided 'as-is', without any express or implied
|
||||||
|
# warranty. In no event will the authors be held liable for any damages
|
||||||
|
# arising from the use of this software.
|
||||||
|
#
|
||||||
|
# Permission is granted to anyone to use this software for any purpose,
|
||||||
|
# including commercial applications, and to alter it and redistribute it
|
||||||
|
# freely, subject to the following restrictions:
|
||||||
|
#
|
||||||
|
# 1. The origin of this software must not be misrepresented; you must not
|
||||||
|
# claim that you wrote the original software. If you use this software
|
||||||
|
# in a product, an acknowledgment in the product documentation would be
|
||||||
|
# appreciated but is not required.
|
||||||
|
# 2. Altered source versions must be plainly marked as such, and must not be
|
||||||
|
# misrepresented as being the original software.
|
||||||
|
# 3. This notice may not be removed or altered from any source distribution.
|
||||||
|
#
|
||||||
|
|
||||||
# --- HERE BE DRAGONS ---
|
# --- HERE BE DRAGONS ---
|
||||||
|
|
||||||
TARGET=${JOEY}/builds/${PROJECT}
|
TARGET=${JOEY}/builds/${PROJECT}
|
||||||
|
|
|
@ -33,6 +33,7 @@ G_UID=$(id -ru)
|
||||||
G_GID=$(id -rg)
|
G_GID=$(id -rg)
|
||||||
G_IS_INSTALLED=()
|
G_IS_INSTALLED=()
|
||||||
G_AUTOMATED=
|
G_AUTOMATED=
|
||||||
|
G_PASSWORD=
|
||||||
G_ORCA_FILE=
|
G_ORCA_FILE=
|
||||||
G_GOLDEN_GATE_FILE=
|
G_GOLDEN_GATE_FILE=
|
||||||
G_XCODE_FILE=
|
G_XCODE_FILE=
|
||||||
|
@ -339,10 +340,17 @@ function doSudo() {
|
||||||
local ARGS="$@"
|
local ARGS="$@"
|
||||||
local ASK="${G_PARENT}/${G_WORK}/askPass.sh"
|
local ASK="${G_PARENT}/${G_WORK}/askPass.sh"
|
||||||
|
|
||||||
|
if [[ "${G_PASSWORD}x" == "x" ]]; then
|
||||||
cat <<- ASKPASS > "${ASK}"
|
cat <<- ASKPASS > "${ASK}"
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
"${G_PARENT}/${G_SCRIPT}" ASKPASS
|
"${G_PARENT}/${G_SCRIPT}" ASKPASS
|
||||||
ASKPASS
|
ASKPASS
|
||||||
|
else
|
||||||
|
cat <<- ASKPASS > "${ASK}"
|
||||||
|
#!/bin/bash
|
||||||
|
echo "${G_PASSWORD}"
|
||||||
|
ASKPASS
|
||||||
|
fi
|
||||||
chmod +x "${ASK}"
|
chmod +x "${ASK}"
|
||||||
|
|
||||||
if [[ "${ARGS}x" == "x" ]]; then
|
if [[ "${ARGS}x" == "x" ]]; then
|
||||||
|
@ -350,6 +358,8 @@ function doSudo() {
|
||||||
else
|
else
|
||||||
SUDO_ASKPASS="${ASK}" sudo -A ${ARGS}
|
SUDO_ASKPASS="${ASK}" sudo -A ${ARGS}
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
rm "${ASK}"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -1064,9 +1074,10 @@ fi
|
||||||
# Are we doing a totally automated install?
|
# Are we doing a totally automated install?
|
||||||
if [[ "$1" == "AUTOMATED" ]]; then
|
if [[ "$1" == "AUTOMATED" ]]; then
|
||||||
G_AUTOMATED=1
|
G_AUTOMATED=1
|
||||||
G_ORCA_FILE=$2
|
G_PASSWORD="$2"
|
||||||
G_GOLDEN_GATE_FILE=$3
|
G_ORCA_FILE="$3"
|
||||||
G_XCODE_FILE=$4
|
G_GOLDEN_GATE_FILE="$4"
|
||||||
|
G_XCODE_FILE="$5"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Don't run as root.
|
# Don't run as root.
|
||||||
|
|
Loading…
Add table
Reference in a new issue