#!/bin/sh
#
# $Id: file_get_files_sysconfig,v 1.1.1.1 2005/05/11 09:03:12 gleissner Exp $
#
#
# Project     :  SCPM (System Configuration Profile Management)
# Module      :  SCPM Utilities
# File        :  file_get_files_sysconfig
# Description :  Determines generic sysconfig files for given sysconfig path
# Author      :  Joachim Gleissner <jg@suse.de>
#
# Copyright 2002-2004 SuSE Linux AG
#           2005 SUSE LINUX Products GmbH
#
# Released under the terms of the GNU General Public License
# (see file COPYRIGHT in project root directory).
#

test -z "$1" && exit 1
test -d $1 || exit 1

cd $2$1

echo $1
for i in * ; do
    hide=no
    test "${i#*.}" = "$i" || hide=yes
    test "${i#*~}" = "$i" || hide=yes
    test -d $i && hide=yes
    test -e $i || hide=yes
    test $hide = no && echo $1/$i
done

exit 0
