Skip to content

File changes which can be handled by argument #3

@drdhaval2785

Description

@drdhaval2785

sqlite/redo.sh

https://github.com/sanskrit-lexicon/csl-websanlexicon/blob/master/v00/makotemplates/sqlite/redo.sh

Current version

echo "remaking input.txt..."
php make_input.php ../../pywork/${dictlo}.xml input.txt
rm ${dictlo}.sqlite
echo "remaking sqlite table..."
sqlite3 ${dictlo}.sqlite < def.sql

Suggested version

# Usage - sh redo.sh dictcode
if [ $# -eq 0 ]
  then
    echo "Error: No arguments supplied"
    echo "Correct usage - sh redo.sh dictcode"
    exit
fi
echo "remaking input.txt..."
php make_input.php ../../pywork/$1.xml input.txt
rm $1.sqlite
echo "remaking sqlite table..."
sqlite3 $1.sqlite < def.sql

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions