source: other-projects/nightly-tasks/crons-and-scripts/greenstone3-rename.sh@ 32965

Last change on this file since 32965 was 32668, checked in by ak19, 5 years ago

Noticed that some nzdl scripts that do nightly tasks for making and maintaining the caveat-emptor pages may not have been backed up anywhere.

  • Property svn:executable set to *
File size: 331 bytes
Line 
1#!/bin/bash
2
3cd /greenstone/greenstone.org/base/caveat-emptor
4
5latestgs3=`ls -rt Greenstone-3*-source-distribution.tar.gz 2>/dev/null | tail -n 1`
6
7if [ ! -z "$latestgs3" ] ; then
8 cp $latestgs3 Greenstone3-latest-source.tar.gz
9else
10 echo "greenstone3-rename.sh: no source.tar.gz for GS3 to rename to latest-source.tar.gz"
11fi
Note: See TracBrowser for help on using the repository browser.