This repository has been archived on 2023-08-20. You can view files and clone it, but cannot push or open issues or pull requests.
yap-6.3/Logtalk/scripts/build_release.sh
pmoura 46c8cfbeff Logtalk 2.29.4 files.
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1799 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2007-02-19 18:58:28 +00:00

55 lines
1.5 KiB
Bash

#!/bin/sh
## =================================================================
## Logtalk - Object oriented extension to Prolog
## Release 2.29.4
##
## Copyright (c) 1998-2007 Paulo Moura. All Rights Reserved.
## =================================================================
dir=`PWD`
cvs -d :pserver:anonymous@cvs.logtalk.org:/usr/local/cvsroot checkout logtalk
cd logtalk
scripts/cleandist.sh
chmod a+x manuals/userman/*.sh
chmod a+x manuals/refman/*.sh
chmod a+x scripts/*.sh
chmod a-x scripts/*.js
chmod a+x scripts/linux/*.sh
chmod a+x scripts/macosx/postflight
chmod a+x xml/*.sh
chmod a-x xml/*.js
cd ..
cp -R logtalk/manuals man2294
tar -czf man2294.tgz man2294
mv logtalk lgt2294
tar -czf lgt2294.tgz lgt2294
md5="`md5 -q lgt2294.tgz`"
sudo mkdir -p /opt/local/var/db/dports/distfiles/logtalk
sudo cp -f lgt2294.tgz /opt/local/var/db/dports/distfiles/logtalk/lgt2294.tgz
cd /opt/local/var/db/dports/sources/rsync.rsync.darwinports.org_dpupdate_dports/lang/logtalk/
sudo cp -f Portfile Portfile.old
sudo sed -e 's/^version.*/version 2.29.4/' -i '' Portfile
sudo sed -e "s/^checksums.*/checksums md5 $md5/" -i '' Portfile
sudo sed -e 's/^distname.*/distname lgt2294/' -i '' Portfile
sudo port clean --archive logtalk
sudo port install logtalk
sudo port pkg logtalk
cp -R work/logtalk-2.29.4.pkg $dir
sudo port uninstall logtalk
cd $dir
mkdir manpdf2294
cd man2294/userman
./userman.sh
mv userman.pdf ../../manpdf2294
cd ../refman
./refman.sh
mv refman.pdf ../../manpdf2294
cd ../..
tar -czf manpdf2294.tgz manpdf2294