Files
wmaker/WindowMaker/mkMakefile
T

64 lines
729 B
Bash
Raw Normal View History

1999-01-06 15:22:33 +00:00
#!/bin/sh
#
# Creates a Makefile.am file containing all the stuff to install
# wmaker data
#
DIRS="Backgrounds Defaults IconSets Icons Pixmaps Styles Themes"
FILE=Makefile.am
spit() {
echo -n "$*" >> $FILE
}
spitln() {
echo "$*" >> $FILE
}
rm -f $FILE
spitln SUBDIRS = $DIRS
spitln
spitln prefsdatadir = '$(pkgdatadir)'
spitln
EXCEPT="Makefile.am Makefile.in Makefile mkMakefile $FILE"
spit prefsdata_DATA =
1999-01-11 12:28:12 +00:00
FILES=`ls -1|grep -v \~`
FILES=`echo $FILES`
for f in $FILES; do
1999-01-06 15:22:33 +00:00
ok=1
for i in $EXCEPT; do
if test "$i" = "$f"; then
ok=0
break
fi
1999-01-11 12:28:12 +00:00
done
1999-01-06 15:22:33 +00:00
if [ -f $f -a $ok = 1 ]; then
spitln \\
spit " $f"
fi
done
spitln
spitln
1999-01-11 12:28:12 +00:00
spitln EXTRA_DIST = '$(prefsdata_DATA)' mkMakefile
1999-01-06 15:22:33 +00:00
spitln
spitln