source: main/trunk/package-kits/linux/pkg.in/files/gli@ 29481

Last change on this file since 29481 was 29481, checked in by Jeremy Symon, 9 years ago

Working on a script for generating build scripts for different packages and systems with minimal code duplication and human intervention. Currently should generate working Makefiles, but doesn't handle the package managers yet. Since both RPM and APT package managers rely on Makefiles, I will change the pacman scripts to also use Makefiles, and see if all the package manager scripts can be automatically generated (at least the metadata)

  • Property svn:executable set to *
File size: 403 bytes
Line 
1#!/bin/bash
2
3if test -z "$JAVA_HOME"; then
4 for dir in /usr/lib/jvm/default/ /usr/lib/jvm/default-java/; do
5 if test -d $dir; then
6 JAVA_HOME=$dir
7 break
8 fi
9 done
10fi
11if test -z "$JAVA_HOME"; then
12 echo -e "Could not find JAVA_HOME.\nPlease export JAVA_HOME=<jre_location>" >&2
13 exit 1
14fi
15
16export JAVA_HOME
17
18. greenstone --no-interactive
19
20/opt/gli/gli.sh
Note: See TracBrowser for help on using the repository browser.