Skip to content

Instantly share code, notes, and snippets.

View starbugs's full-sized avatar
😎

Tobias Lensing starbugs

😎
View GitHub Profile
@starbugs
starbugs / install-gnustep.sh
Last active October 13, 2021 00:11
A tiny shell script for installing GNUstep and libobjc2 automatically on Ubuntu 12. I recommend that you download this script to a distinct folder "gnustep-installer". It will download and unpack a couple of tar packages. For more information see my blog post http://blog.tlensing.org/2013/02/24/objective-c-on-linux-setting-up-gnustep-clang-llvm-…
#!/bin/bash
#
# Written by Tobias Lensing, http://tlensing.org
# For more information see http://blog.tlensing.org/2013/02/24/objective-c-on-linux-setting-up-gnustep-clang-llvm-objective-c-2-0-blocks-runtime-gcd-on-ubuntu-12-04/
#
PKG_OK=$(dpkg-query -W --showformat='${Status}\n' curl | grep "install ok installed")
echo Checking for curl: $PKG_OK
if [ "" == "$PKG_OK" ]; then
sudo apt-get install curl -y
@starbugs
starbugs / main.m
Created February 24, 2013 00:11
Just a small program to test Objective-C blocks, GCD and GUI on Ubuntu
//
// main.m
// Just a little test case for Objective-C 2.0 on Ubuntu
//
// Created by Tobias Lensing on 2/22/13.
// More cool stuff available at blog.tlensing.org.
//
#import <Foundation/Foundation.h>
#import <AppKit/AppKit.h>