Skip to content

Commit 8c5b4fa

Browse files
committed
Fix example + add pedantic warnings just in case
1 parent 4bedaf2 commit 8c5b4fa

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

example-pkg/package.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,9 @@ rm -rf sample* prototype
77

88
# make prototype file to list files to be packaged
99
echo "i pkginfo" >> prototype
10-
pkgproto usr=/usr >> prototype
10+
for i in `find . -maxdepth 1 -type d -print | sed '1d'`; do
11+
find $i -print | sed '1d' | pkgproto >> prototype
12+
done
1113

1214
# make package into filesystem format
1315
pkgmk -d . -r .

src/mk.config.head

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ VAR=/var
33
CFLAGS = -O
44
LDFLAGS=
55
CCSLDFLAGS=
6-
CPPFLAGS=-D_GNU_SOURCE -std=c89
6+
CPPFLAGS=-D_GNU_SOURCE -std=c89 -Wall -Wextra -pedantic
77
STRIP=strip -s -R .comment -R .note
88
LNS = ln -s
99

0 commit comments

Comments
 (0)