OpenPAM

Check-in [1e2d96fb7a]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Make sure we package symlinks as well as files, but don't package .la files.
Timelines: family | ancestors | trunk | svn-rev-838
Files: files | file ages | folders
SHA1: 1e2d96fb7af365ea5e4cd3e384d5a497d6dae850
User & Date: des 2014-11-02 13:47:08
Context
2014-11-02
13:47
Make sure we package symlinks as well as files, but don't package .la files. Leaf check-in: 1e2d96fb7a user: des tags: trunk, svn-rev-838
2014-10-28
17:50
Oops - the line count is incremented by the line continuation, not by the word that precedes it. check-in: f883983025 user: des tags: trunk, svn-rev-837
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to mkpkgng.in.

120
121
122
123
124
125
126




127
128
129
130
131
132
133
...
146
147
148
149
150
151
152
153


154


155
156
157
158
159
160
161
#
find $tmproot -type d -name 'man[0-9]' |
while read mandir ; do
	find $mandir -type f -name '*.[0-9]' |
	while read manpage ; do
		gzip "$manpage"
	done




done

#
# Generate stub manifest
#
info "Generating the stub manifest."
manifest="$tmproot/+MANIFEST"
................................................................................

#
# Generate file list
#
info "Generating the file list."
(
	echo "files: {"
	find -s "$tmproot@prefix@" -type f | while read file ; do


		[ "$file" = "$manifest" ] && continue


		mode=$(stat -f%p "$file" | cut -c 3-)
		file="${file#$tmproot}"
		echo "  $file: { uname: root, gname: wheel, perm: $mode }"
	done
	echo "}"
)>>"$manifest"








>
>
>
>







 







|
>
>
|
>
>







120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
...
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
#
find $tmproot -type d -name 'man[0-9]' |
while read mandir ; do
	find $mandir -type f -name '*.[0-9]' |
	while read manpage ; do
		gzip "$manpage"
	done
	find $mandir -type l -name '*.[0-9]' |
	while read manlink ; do
		ln -s "$(readlink $manlink).gz" "$manlink.gz"
	done
done

#
# Generate stub manifest
#
info "Generating the stub manifest."
manifest="$tmproot/+MANIFEST"
................................................................................

#
# Generate file list
#
info "Generating the file list."
(
	echo "files: {"
	find -s "$tmproot@prefix@" -type f -or -type l | while read file ; do
		case $file in
		*.la)
			continue
			;;
		esac
		mode=$(stat -f%p "$file" | cut -c 3-)
		file="${file#$tmproot}"
		echo "  $file: { uname: root, gname: wheel, perm: $mode }"
	done
	echo "}"
)>>"$manifest"