| |
1 |
1 |
|
| |
2 |
2 |
|
| |
3 |
3 |
|
| |
4 |
4 |
|
| |
5 |
5 |
|
| |
6 |
6 |
if [ ! -d debian/debian/var/www/www ]; then |
| |
7 |
7 |
echo "You need to put a .LRN or OpenACS checkout into debian/debian/var/www/. " |
| |
8 |
8 |
exit 1 |
| |
9 |
9 |
fi |
| |
10 |
10 |
|
| |
|
11 |
echo "Removing CVS directories" |
| |
|
12 |
find . -name "CVS" -exec rm {} \; |
| |
|
13 |
|
| |
11 |
14 |
echo "Setting the permissions on the package shell scripts" |
| |
12 |
15 |
chmod 755 debian/debian/DEBIAN/control debian/debian/DEBIAN/postinst debian/debian/DEBIAN/prerm |
| |
13 |
16 |
chown -R root:root debian/debian/DEBIAN/control debian/debian/DEBIAN/postinst debian/debian/DEBIAN/prerm |
| |
14 |
17 |
|
| |
15 |
18 |
echo "Setting OpenACS' ownership to www-data. We may want to set proper permissions here in the future." |
| |
16 |
19 |
chown -R www-data:www-data debian/debian/var/www |
| |
17 |
20 |
rm debian/debian/var/www/put-your-distro-here |
| |
18 |
21 |
|
| |
19 |
22 |
echo "Building the debian package" |
| |
20 |
23 |
pushd debian |
| |
21 |
24 |
dpkg-deb --build debian |
| |
22 |
25 |
mv debian.deb ../dotlrn-2.2.0-0.deb |
| |
23 |
26 |
popd |