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 |
|
---|
3 | GSDL3HOME=$(pwd)
|
---|
4 | export GSDL3HOME
|
---|
5 | . greenstone --no-interactive
|
---|
6 | mv -T src sites/localsite/collect
|
---|
7 | find 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"' -- {} \;
|
---|
8 | mv -T sites/localsite/collect src
|
---|
9 | rm -rf sites
|
---|
Note:
See
TracBrowser
for help on using the repository browser.