Skip to content

Instantly share code, notes, and snippets.

@khbecker
khbecker / glibc-check.sh
Created March 24, 2016 14:12 — forked from fasterthanlime/glibc-check.sh
Prints the various glibc versions required by an executable
#!/bin/bash
# This scripts lets you check which minimum GLIBC version an executable requires.
# Simply run './glibc-check.sh path/to/your/binary'
#
# You can set `MAX_VER` however low you want, although I (fasterthanlime)
# feel like `2.13` is a good target (For reference, Ubuntu 12.04 has GLIBC 2.15)
MAX_VER=2.13
SCRIPTPATH=$( cd $(dirname $0) ; pwd -P )
@khbecker
khbecker / update-itch.sh
Last active January 12, 2016 18:07 — forked from FrozenCow/update.sh
Update PKGBUILD for itch with new pkgver based on Github releases
#!/bin/sh
# update-itch.sh
#
# Required packages: jq and pkgbuild-introspection
source ./PKGBUILD
OLDVERSION="$pkgver"
echo "Old Version: ${OLDVERSION}"
NEWVERSION=$(curl https://api.github.com/repos/itchio/itch/releases 2> /dev/null | jq -r '.[0].tag_name | match("\\d(\\.\\d+)+").string')