You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
ryzom-core/code/ryzom/server/src/gen_deps.sh

26 lines
406 B
Bash

#!/bin/sh
command=''
sources=''
phase=0
for arg in $*
do
if [ "$phase" == 0 ] && [ "$arg" == '--' ]
then
phase=1
elif [ "$phase" == 0 ]
then
command="$command $arg"
elif [ "$phase" == 1 ]
then
sources="$sources $arg"
fi
done
for src in $sources
do
obj=`echo $src | sed -e 's/.cpp$/.o/'`
$command -MT $obj -M $src
done