<commit_before>#!/bin/sh
dir=$1
action=$2
version=$3

if test "x$action" = "xpre"; then
# Use pdflatex
sed -e 's!^\(USE_PDFLATEX *= *\)NO!\1YES!' -i src/api/ccapi/Makefile.am

# Touch to avoid rerunning bison and flex
touch -r src/utils/vomsfake.y src/utils/vomsparser.h
touch -r src/utils/vomsfake.y src/utils/vomsparser.c
touch -r src/utils/vomsfake.y src/utils/lex.yy.c

# rebootstrap
./autogen.sh
fi

if test "x$action" = "xpost"; then
rm -f $dir/usr/lib/*.a
rm -f $dir/usr/lib/*.la
rm -f $dir/usr/lib/*_gcc*.so.*
rm -f $dir/usr/lib/*.so.*
rm -f $dir/usr/lib64/*.a
rm -f $dir/usr/lib64/*.la
rm -f $dir/usr/lib64/*_gcc*.so.*
rm -f $dir/usr/lib64/*.so.*

#mv $dir/usr/include/glite/security/voms $dir/usr/include/voms
mv $dir/include/glite/security/voms $dir/usr/include/voms
rm -rf $dir/include/glite

mv $dir/usr/share/mv $dir/usr/share/aclocal

#touch $dir/etc/vomses
rm -rf $dir/etc/
#rm -rf $dir/include
rm -rf $dir/usr/bin
rm -rf $dir/usr/sbin
rm -rf $dir/var
rm -rf $dir/libexec
rm -rf $dir/share

mkdir -p $dir/usr/share/voms-devel-$version
install -m 644 -p LICENSE AUTHORS $dir/usr/share/voms-devel-$version
fi<commit_msg>Hopefully now works.<commit_after>#!/bin/sh
dir=$1
action=$2
version=$3

if test "x$action" = "xpre"; then
# Use pdflatex
sed -e 's!^\(USE_PDFLATEX *= *\)NO!\1YES!' -i src/api/ccapi/Makefile.am

# Touch to avoid rerunning bison and flex
touch -r src/utils/vomsfake.y src/utils/vomsparser.h
touch -r src/utils/vomsfake.y src/utils/vomsparser.c
touch -r src/utils/vomsfake.y src/utils/lex.yy.c

# rebootstrap
./autogen.sh
fi

if test "x$action" = "xpost"; then
rm -f $dir/usr/lib/*.a
rm -f $dir/usr/lib/*.la
rm -f $dir/usr/lib/*_gcc*.so.*
rm -f $dir/usr/lib/*.so.*
rm -f $dir/usr/lib64/*.a
rm -f $dir/usr/lib64/*.la
rm -f $dir/usr/lib64/*_gcc*.so.*
rm -f $dir/usr/lib64/*.so.*

mkdir -p $dir/usr/include
mv $dir/include/glite/security/voms $dir/usr/include/voms
rm -rf $dir/include

mv $dir/usr/share/mv $dir/usr/share/aclocal

rm -rf $dir/etc/
rm -rf $dir/usr/bin
rm -rf $dir/usr/sbin
rm -rf $dir/var
rm -rf $dir/libexec
rm -rf $dir/usr/libexec
rm -rf $dir/share

mkdir -p $dir/usr/share/voms-devel-$version
install -m 644 -p LICENSE AUTHORS $dir/usr/share/voms-devel-$version
fi
{'fraction_non_alphanumeric': 0.1930379746835443, 'fraction_numerical': 0.013562386980108499, 'mean_word_length': 3.2476007677543186, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6667132', 'n_tokens_mistral': 1028, 'n_tokens_neox': 991, 'n_words': 227}