From 94c3f6db5b8282c9a919c1e95ce9c9491da1e2cf 2022-09-02 23:47:17 From: Branko Majic Date: 2022-09-02 23:47:17 Subject: [PATCH] [factorio_development.sh] Expand deployed files for new mods: - Include stock text for a couple of sections in the README file. - Mark build script as explicitly being released under a GPLv3 license. - Include Emacs editor configuration file for setting the fill column to a biter saner (larger) value. - Include an empty control.lua file with helpful header stating copyright and license (for easier copy/pasting from it). --- diff --git a/games/factorio_development.sh b/games/factorio_development.sh index 6df797e175349176ed9d0c9ed045261bc0af8410..4f80b8c4ddda9fc7a1e97a50c7d508b5db9266c0 100755 --- a/games/factorio_development.sh +++ b/games/factorio_development.sh @@ -22,7 +22,7 @@ set -u PROGRAM="factorio_development.sh" -VERSION="1.0.2" +VERSION="1.1.0" function usage() { cat < "$base_dir/LICENSE" @@ -585,6 +593,7 @@ EOF # Specify list of paths to exclude from the built release archives. IGNORE_PATHS=( + ".dir-locals.el" ".gitignore" "build.cfg" "build.sh" @@ -607,6 +616,11 @@ build/ # Ignore project temporary directory. tmp/ +EOF + + cat < "$base_dir/.dir-locals.el" +;; Set wrapping column for Emacs lua-mode. +((lua-mode . ((fill-column . 120)))) EOF cat < "$source_dir/info.json" @@ -633,6 +647,11 @@ Date: 9999-99-99 Bugfixes: EOF + cat < "$source_dir/control.lua" +-- Copyright (c) $(date +%Y) YOUR_NAME +-- Provided under MIT license. See LICENSE for details. +EOF + git init "$base_dir" git -C "$base_dir" add .