Skip to content

Commit

Permalink
Preparation for 3.0 release.
Browse files Browse the repository at this point in the history
- Update version numbers
- Remove "vufind2" references from default paths/package.
  • Loading branch information
demiankatz committed Apr 6, 2016
1 parent 319b29d commit ef2d981
Show file tree
Hide file tree
Showing 8 changed files with 22 additions and 16 deletions.
14 changes: 7 additions & 7 deletions build.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<project name="vufind2" basedir="." default="main">
<project name="vufind" basedir="." default="main">
<property name="tmp" value="/tmp" />
<property name="package" value="${phing.project.name}" override="true" />
<property name="builddir" value="${tmp}/build/${phing.project.name}" override="true" />
Expand All @@ -26,7 +26,7 @@
<property name="php-cs-fixers" value="no_blank_lines_before_namespaces,function_call_space,trailing_spaces,unused_use,lowercase_keywords,encoding,parenthesis,php_closing_tag,visibility,duplicate_semicolon,extra_empty_lines,no_blank_lines_after_class_opening,no_empty_lines_after_phpdocs,operators_spaces,spaces_before_semicolon,ternary_spaces,concat_with_spaces,short_array_syntax,phpdoc_no_access,remove_leading_slash_use,eof_ending" />


<property name="version" value="2.5.3" />
<property name="version" value="3.0" />

<!-- We only need the -p switch if the password is non-blank -->
<if><not><equals arg1="${mysqlrootpass}" arg2="" /></not><then>
Expand Down Expand Up @@ -269,18 +269,18 @@
<delete dir="${builddir}/packages" includeemptydirs="true" failonerror="false" />
<mkdir dir="${builddir}/packages" />
<delete dir="${builddir}/export" includeemptydirs="true" failonerror="false" />
<mkdir dir="${builddir}/export/vufind/usr/local/vufind2" />
<mkdir dir="${builddir}/export/vufind/usr/local/vufind" />

<!-- load the relevant files into the work area -->
<phingcall target="composer" />
<exec command="git archive HEAD --format=tar | tar -x -C ${builddir}/export/vufind/usr/local/vufind2" />
<copy todir = "${builddir}/export/vufind/usr/local/vufind2/vendor">
<exec command="git archive HEAD --format=tar | tar -x -C ${builddir}/export/vufind/usr/local/vufind" />
<copy todir = "${builddir}/export/vufind/usr/local/vufind/vendor">
<fileset dir="${srcdir}/vendor" defaultexcludes="false" />
</copy>

<!-- create a version-specific symlink so that tar/zip packages will have
appropriate directory structures. -->
<exec command="ln -s ${builddir}/export/vufind/usr/local/vufind2 ${builddir}/export/vufind-${version}" />
<exec command="ln -s ${builddir}/export/vufind/usr/local/vufind ${builddir}/export/vufind-${version}" />

<!-- build the standard tar.gz archive -->
<echo message="Building .tar.gz...." />
Expand All @@ -292,7 +292,7 @@

<!-- build the DEB package -->
<echo message="Building .deb...." />
<move file="${builddir}/export/vufind/usr/local/vufind2/packages/DEBIAN" todir="${builddir}/export/vufind" includeemptydirs="true"/>
<move file="${builddir}/export/vufind/usr/local/vufind/packages/DEBIAN" todir="${builddir}/export/vufind" includeemptydirs="true"/>
<exec command="chmod 0775 ${builddir}/export/vufind/DEBIAN/postinst" />
<exec command="dpkg-deb -b ${builddir}/export/vufind ${builddir}/packages/vufind_${version}.deb" checkreturn="true" />

Expand Down
2 changes: 1 addition & 1 deletion config/vufind/config.ini
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ showBulkOptions = false
; Should users be allowed to save searches in their accounts?
allowSavedSearches = true
; Generator value to display in an HTML header <meta> tag:
generator = "VuFind 2.5.3"
generator = "VuFind 3.0"

; This section allows you to configure the mechanism used for storing user
; sessions. Available types: File, Memcache, Database.
Expand Down
2 changes: 1 addition & 1 deletion import-marc.sh
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ fi
##################################################
if [ -z "$VUFIND_HOME" ]
then
VUFIND_HOME="/usr/local/vufind2"
VUFIND_HOME="/usr/local/vufind"
fi


Expand Down
6 changes: 6 additions & 0 deletions packages/DEBIAN/changelog
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
vufind 3.0 distribution; urgency=low

* VuFind 3.0 release (see http://vufind.org/wiki/changelog for details)

-- maintainer VuFind Project Administration Team <[email protected]> Mo 25 Apr 2016 09:28:51 UTC

vufind 2.5.3 distribution; urgency=low

* VuFind 2.5.3 release (see http://vufind.org/wiki/changelog for details)
Expand Down
2 changes: 1 addition & 1 deletion packages/DEBIAN/conffiles
Original file line number Diff line number Diff line change
@@ -1 +1 @@
/usr/local/vufind2/solr/biblio/conf/solrconfig.xml
/usr/local/vufind/solr/vufind/biblio/conf/solrconfig.xml
4 changes: 2 additions & 2 deletions packages/DEBIAN/control
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Package: vufind2
Version: 2.5.3
Package: vufind
Version: 3.0
Section: World Wide Web
Priority: Optional
Architecture: all
Expand Down
6 changes: 3 additions & 3 deletions packages/DEBIAN/postinst
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
#!/bin/bash

# Script for installing VuFind 2.x on Ubuntu
# Script for installing VuFind on Ubuntu
# This does not include the OCI8 libraries

# Update the profile file to set required environment variables:
sh -c 'echo export JAVA_HOME=\"/usr/lib/jvm/default-java\" > /etc/profile.d/vufind.sh'
sh -c 'echo export VUFIND_HOME=\"/usr/local/vufind2\" >> /etc/profile.d/vufind.sh'
sh -c 'echo export VUFIND_HOME=\"/usr/local/vufind\" >> /etc/profile.d/vufind.sh'
sh -c 'echo export VUFIND_LOCAL_DIR=\"\$VUFIND_HOME/local\" >> /etc/profile.d/vufind.sh'
source /etc/profile.d/vufind.sh

Expand All @@ -29,5 +29,5 @@ APACHE_CONF_DIR=/etc/apache2/conf.d
if [ ! -d $APACHE_CONF_DIR ]; then
APACHE_CONF_DIR=/etc/apache2/conf-enabled
fi
ln -s $VUFIND_LOCAL_DIR/httpd-vufind.conf $APACHE_CONF_DIR/vufind2.conf
ln -s $VUFIND_LOCAL_DIR/httpd-vufind.conf $APACHE_CONF_DIR/vufind.conf
/etc/init.d/apache2 force-reload
2 changes: 1 addition & 1 deletion public/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@
include_once "xhprof_lib/utils/xhprof_lib.php";
include_once "xhprof_lib/utils/xhprof_runs.php";
$xhprofRuns = new XHProfRuns_Default();
$suffix = 'vufind2';
$suffix = 'vufind';
$xhprofRunId = $xhprofRuns->save_run($xhprofData, $suffix);
$url = "$xhprof?run=$xhprofRunId&source=$suffix";
echo "<a href='$url'>Profiler output</a>";
Expand Down

0 comments on commit ef2d981

Please sign in to comment.