smalltalk
/
osmo-st-all
Archived
1
0
Fork 0
This repository has been archived on 2022-02-17. You can view files and clone it, but cannot push or open issues or pull requests.
osmo-st-all/make_packages.sh

34 lines
804 B
Bash
Executable File

#!/bin/bash
GST_PACK="/usr/bin/env gst-package"
GST="/usr/bin/env gst"
CURR_DIR=`pwd`
PACK_BUILDER=$CURR_DIR"/PackageBuilder.st"
echo "Packaging in $CURR_DIR ..." > make_packages.log
for i in `find . -name package.st`
do
echo "creating xml file for $i ..."
DIR=`dirname $i`
cd $DIR
$GST $PACK_BUILDER -a package.st > package.xml
cd $CURR_DIR
echo "packaging..."
$GST_PACK -t ~/.st $DIR/package.xml >> make_packages.log
done
if [ -d More/UI ]; then
for i in `find More/UI/stylesheets -type f | grep -v '\.svn'`
do
echo "linking $i to Public..."
ln -fs ../../$i Public/stylesheets/ >> make_packages.log
done
for i in `find More/UI/images -type f | grep -v '\.svn'`
do
echo "linking $i to Public..."
ln -fs ../../$i Public/images/ >> make_packages.log
done
fi