2010-01-11 11:47:11 +01:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
PRGNAM=emacswiki
|
2010-02-16 04:07:09 +01:00
|
|
|
VERSION=svn_$(date +"%Y.%m.%d_%H.%M")
|
2010-01-11 11:47:11 +01:00
|
|
|
BUILD=${BUILD:-1}
|
2011-02-17 05:54:04 +01:00
|
|
|
|
2010-01-11 11:47:11 +01:00
|
|
|
ARCH=emacs
|
|
|
|
|
|
|
|
CWD=$(pwd)
|
2011-02-17 05:54:04 +01:00
|
|
|
TAG=cyco
|
|
|
|
OUTPUT=/tmp
|
2010-01-11 11:47:11 +01:00
|
|
|
TMP=${TMP:-/tmp}
|
2011-02-17 05:58:04 +01:00
|
|
|
PKG=$TMP/pkg-$PRGNAM
|
2010-01-11 11:47:11 +01:00
|
|
|
|
|
|
|
REPOSITORIES=/home/cycojesus/projets/packages/repositories
|
|
|
|
PREFIX=/usr
|
|
|
|
|
|
|
|
rm -rf $PKG
|
|
|
|
|
|
|
|
( cd $REPOSITORIES
|
|
|
|
if [ ! -e $PRGNAM ] ; then
|
|
|
|
svn checkout "svn://svn.sv.gnu.org/emacswiki/emacswikipages" $PRGNAM
|
|
|
|
else
|
|
|
|
( cd $PRGNAM
|
|
|
|
svn update
|
|
|
|
)
|
|
|
|
fi
|
|
|
|
)
|
|
|
|
|
|
|
|
mkdir -p $PKG/$PREFIX/doc/
|
|
|
|
( cd $PKG/$PREFIX/doc/
|
2010-01-12 08:29:12 +01:00
|
|
|
cp -R $REPOSITORIES/$PRGNAM $PRGNAM
|
|
|
|
rm -fr $PRGNAM/.svn
|
|
|
|
)
|
|
|
|
|
|
|
|
mkdir -p $PKG$PREFIX/share/emacs/site-lisp/$PRGNAM/
|
|
|
|
( cd $PKG$PREFIX/share/emacs/site-lisp/$PRGNAM/
|
|
|
|
for el in \
|
2011-03-02 03:52:02 +01:00
|
|
|
"quick-jump.el" \
|
2010-08-03 09:48:44 +02:00
|
|
|
"alarm.el" \
|
2010-07-23 05:01:47 +02:00
|
|
|
"multi-term.el" \
|
2010-07-23 04:02:07 +02:00
|
|
|
"lusty-explorer.el" \
|
2010-03-18 10:07:30 +01:00
|
|
|
"sml-modeline.el" \
|
2010-01-29 13:16:07 +01:00
|
|
|
"apache-mode.el" \
|
2010-01-28 09:12:36 +01:00
|
|
|
"hexrgb.el" \
|
|
|
|
"palette.el" \
|
2010-01-27 03:51:40 +01:00
|
|
|
"pastebin.el" \
|
|
|
|
"openpaste.el" \
|
|
|
|
"snipplr.el" \
|
2010-01-20 06:08:26 +01:00
|
|
|
"legalese.el" \
|
2010-01-12 08:29:12 +01:00
|
|
|
"workspaces.el" \
|
|
|
|
"auto-complete.el" \
|
|
|
|
"gnugo.el" \
|
|
|
|
"http-post-simple.el" \
|
|
|
|
"facebook.el" \
|
|
|
|
"tumbl.el" \
|
|
|
|
"dom.el" \
|
|
|
|
"babel.el" \
|
|
|
|
"cheezburger.el" \
|
|
|
|
"jira.el" \
|
|
|
|
"folding.el" \
|
|
|
|
"sunrise-commander.el" \
|
|
|
|
"typing.el" \
|
|
|
|
"wiki.el" \
|
|
|
|
"tidy.el" \
|
|
|
|
"fixme-mode.el" \
|
|
|
|
"work-timer.el" \
|
2010-01-28 05:04:44 +01:00
|
|
|
"showtip.el" \
|
2010-01-12 08:29:12 +01:00
|
|
|
"sdcv.el" \
|
|
|
|
"etxt.el" \
|
|
|
|
"htmlr.el" \
|
|
|
|
"cus-edit+.el" \
|
|
|
|
"xml-rpc.el" \
|
|
|
|
"weblogger.el" \
|
|
|
|
"newsticker-notify.el" ;
|
|
|
|
do
|
2011-03-02 03:52:02 +01:00
|
|
|
[ -e "$PREFIX/doc/$PRGNAM/$el" ] && ln -s "$PREFIX/doc/$PRGNAM/$el" "$el" ;
|
2010-01-12 08:29:12 +01:00
|
|
|
done
|
2010-01-11 11:47:11 +01:00
|
|
|
)
|
|
|
|
|
|
|
|
( cd $PKG
|
|
|
|
chown -R root:root .
|
|
|
|
find . \
|
|
|
|
\( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \
|
|
|
|
-exec chmod 755 {} \; -o \
|
|
|
|
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
|
|
|
|
-exec chmod 644 {} \;
|
2010-01-11 11:48:19 +01:00
|
|
|
|
|
|
|
mkdir -p $PKG/install
|
|
|
|
cat <<EOF > $PKG/install/slack-desc
|
2010-01-11 11:47:11 +01:00
|
|
|
$PRGNAM: $PRGNAM (a local mirror of EmacsWiki)
|
|
|
|
$PRGNAM:
|
|
|
|
$PRGNAM:
|
|
|
|
$PRGNAM:
|
|
|
|
$PRGNAM:
|
|
|
|
$PRGNAM:
|
|
|
|
$PRGNAM:
|
|
|
|
$PRGNAM: http://emacswiki.org/
|
|
|
|
$PRGNAM:
|
|
|
|
$PRGNAM:
|
|
|
|
$PRGNAM:
|
|
|
|
EOF
|
|
|
|
)
|
|
|
|
|
|
|
|
cd $PKG
|
2011-02-17 05:54:04 +01:00
|
|
|
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.txz
|
2010-01-11 11:47:11 +01:00
|
|
|
|