#!/bin/sh sph_sc_root="$1" destination="$PWD/src/foreign/sdupes/sph" if test -d "$destination" then rm "$destination"/* else mkdir -p "$destination" fi cd "$sph_sc_root/src/c-precompiled/sph" cp status.h hashtable.h array.h set.h queue.h thread-pool.h thread-pool.c "$destination" # replace include paths in copied files sed -i 's@#include