source: main/trunk/package-kits/linux/pkg.in/files/build-demo.sh@ 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: 406 bytes
Line 
1#!/bin/bash
2
3GSDL3HOME=$(pwd)
4export GSDL3HOME
5. greenstone --no-interactive
6mv -T src sites/localsite/collect
7find sites/localsite/collect/ -mindepth 1 -maxdepth 1 -not -name ".*" -execdir bash -c 'col="$(basename $1)"; import.pl -removeold -site localsite "$col"; buildcol.pl -removeold -site localsite "$col"; mv "${col}/building" "${col}/index"' -- {} \;
8mv -T sites/localsite/collect src
9rm -rf sites
Note: See TracBrowser for help on using the repository browser.