www.nico.schottelius.org/software/cinit/browse_source/cinit-0.3pre19/scripts/build/cinit.configure.tools
Nico Schottelius 7c47ae1c48 update to cinit-0.3pre19
Signed-off-by: Nico Schottelius <nico@ikn.schottelius.org>
2009-11-30 07:27:49 +01:00

24 lines
573 B
Bash
Executable file

#!/bin/sh
# Nico Schottelius
# cinit: setups scripts for compiling and linking
#
HIER=$(dirname $0)
DDIR=$HIER/../../tmpbin/
CC=$(head -n 1 "$HIER/../../conf/cc")
CFLAGS=$(head -n 1 "$HIER/../../conf/cflags")
LD=$(head -n 1 "$HIER/../../conf/ld")
LDFLAGS=$(head -n 1 "$HIER/../../conf/ldflags")
STRIP=$(head -n 1 "$HIER/../../conf/strip")
echo "Configure: CC: Creating cc, ld and strip ..."
mkdir -p "$DDIR"
cd "$DDIR"
echo "$CC $CFLAGS \"\$@\"" > cc
echo "$LD $LDFLAGS \"\$@\"" > ld
echo "$STRIP \"\$@\"" > strip
# set correct permissions
chmod 0700 *