GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — 86Box/bumpversion.sh at master · 86Box/86Box Expand file tree/ Copy pathbumpversion.shMore file actions 75 lines (67 loc) · 2.27 KB / Copy pathbumpversion.shFile metadata and controls75 lines (67 loc) · 2.27 KB 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 #!/bin/sh # # 86Box A hypervisor and IBM PC system emulator that specializes in # running old operating systems and software designed for IBM # PC systems and compatibles from 1981 through fairly recent # system designs based on the PCI bus. # # This file is part of the 86Box distribution. # # Convenience script for changing the emulator's version. # # # Authors: RichardG, <[email protected]> # # Copyright 2022 RichardG. # # Parse arguments. newversion="$1" romversion="$2" if [ -z "$(echo "$newversion" | grep '\.')" ] then echo '[!] Usage: bumpversion.sh x.y[.z] [romversion]' exit 1 fi shift if [ -z "${romversion}" ]; then # Get the latest ROM release from the GitHub API. romversion=$(curl --silent "https://api.github.com/repos/86Box/roms/releases/latest" | grep '"tag_name":' | sed -E 's/.*"v([^"]+)".*/\1/') fi # Switch to the repository root directory. cd "$(dirname "$0")" || exit pretty_date() { # Ensure we get the date in English. LANG=en_US.UTF-8 date '+%a %b %d %Y' } # Patch files. patch_file() { # Parse arguments. desc="$1" shift pattern="$1" shift # Patch the specified files. for file in "$@" do # Skip file if it doesn't exist. [ ! -e "$file" ] && continue # Patch file. if sed -i -r -e "$pattern" "$file" then echo "[-] Patched $desc in $file" else echo "[!] Patching $desc in $file failed" fi done } patch_file VERSION 's/^(\s*VERSION ).+/\1'"$newversion"'/' CMakeLists.txt patch_file version-string 's/(^\s*"version-string"\s*:\s*")[^"]+/\1'"$newversion"'/' vcpkg.json patch_file Version 's/(Version:\s+)[0-9].+/\1'"$newversion"'/' src/unix/assets/*.spec patch_file '%global romver' 's/(^%global\ romver\s+)[^\s]+/\1'"$romversion"'/' src/unix/assets/*.spec patch_file 'changelog version' 's/(^[*]\s.*>\s+)[0-9].+/\1'"$newversion"-1'/' src/unix/assets/*.spec patch_file 'changelog date' 's/(^[*]\s)[a-zA-Z]{3}\s[a-zA-Z]{3}\s[0-9]{2}\s[0-9]{4}/\1'"$(pretty_date)"'/' src/unix/assets/*.spec patch_file release 's/(<release version=")[^"]+(" date=")[^"]+/\1'"$newversion"'\2'"$(date +%Y-%m-%d)"'/' src/unix/assets/*.metainfo.xml patch_file 'changelog date' 's/> .+/> '"$(date -R)"'/' debian/changelog patch_file 'changelog version' 's/86box \(.+\)/86box \('"$newversion"'\)/' debian/changelog |
| You are visitor 01402503 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |