8 TARBALL
=$PKGROOT/emacs-packages-latest.tgz
9 TARBALL_ROOT
="emacs-24.1-packages-`/bin/date +'%F'`"
11 REPO
=bzr
://bzr.savannah.gnu.org
/emacs
/elpa
12 REPO_PACKAGES
=$REPO/packages
13 REPO_ADMIN
=$REPO/admin
16 echo "Syntax: $0 HOMEDIR"
18 elif [ -d $ROOT ]; then
19 echo "Installing into '$ROOT', log is '$LOG'"
20 echo "Installing into '$ROOT'" > $LOG
22 echo "Sorry but $ROOT is not a directory, aborting."
27 ## Create the world-facing copy
28 echo "[$TMPROOT -> $PKGROOT] Creating the world-facing package repository copy in $PKGROOT" >> $LOG
31 /usr
/bin
/bzr
export $TMPROOT $REPO_PACKAGES
33 echo "[$TMPROOT -> $PKGROOT] Running the post-export fetchers in $ADMINROOT against $TMPROOT" >> $LOG
35 bzr
export $ADMINROOT $REPO_ADMIN
37 # Copy the org daily package from orgmode.org
38 echo "[$TMPROOT -> $PKGROOT] Running the post-export org-mode fetcher as '$ADMINROOT/org-synch.sh $TMPROOT $ADMINROOT'" >> $LOG
39 $ADMINROOT/org-synch.sh
$TMPROOT $ADMINROOT >> $LOG 2>&1
41 echo "[$TMPROOT -> $PKGROOT] Moving $TMPROOT to $PKGROOT" >> $LOG
42 /bin
/mv $PKGROOT $PKGROOT-old
43 /bin
/mv $TMPROOT $PKGROOT
44 /bin
/rm -rf $PKGROOT-old
46 echo "Exporting packages into $TARBALL (root = $TARBALL_ROOT)" >> $LOG
47 /usr
/bin
/bzr
export --format=tgz
--root=$TARBALL_ROOT $TARBALL $REPO_PACKAGES
49 /bin
/chmod -R a
+rX
$PKGROOT
51 echo "Update complete at" `/bin/date` >> $LOG