File: new_data

package info (click to toggle)
sympow 2.023.7-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 496 kB
  • sloc: ansic: 3,871; sh: 687; makefile: 17
file content (43 lines) | stat: -rwxr-xr-x 957 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
#! /bin/sh
#
# This script should not need to be run directly,
# but will be automatically executed via "sympow -new_data []"
#
# example direct usages
# sh new_data /bin/sh /usr/bin/gp '-sp 3 -dv 2'
# sh new_data /bin/sh /usr/bin/gp '-cm -sp 4'
# sh new_data /bin/sh /usr/bin/gp '-sp 2'
# sh new_data /bin/sh /usr/bin/gp '-hecke -sp 3 -dv 1'

set -e

if [ -z $SYMPOW_INVOCATIONNAME ];
then
echo "**ERROR**: unset environment variable SYMPOW_INVOCATIONNAME"; exit;
fi

if [ $# != 3 ];
then
echo "**ERROR**: Wrong number of input parameters"; exit;
fi

SYMPOW="$SYMPOW_INVOCATIONNAME ${SYMPOW_OPTS_VERBOSITY:--quiet}"

echo "Running the new_data script for $3"

SH=$1
GP="$2 ${SYMPOW_OPTS_GP--D debugmem=0}"

echo "Making the datafiles for $3"
echo ""
$SYMPOW -rewarp
$SYMPOW -shell1 "$3" | $SH
echo "Running the gp script"
echo ""
$SYMPOW -pari "$3" | $GP -f -q > /dev/null
echo ""
$SYMPOW -shell2 "$3" | $SH
$SYMPOW -rewarp
echo "Finished with $3"

exit 0