1*2b15cb3dSCy Schubert#! /bin/sh 2*2b15cb3dSCy Schubert 3*2b15cb3dSCy Schubert. ./packageinfo.sh 4*2b15cb3dSCy Schubert 5*2b15cb3dSCy Schubert# HMS: Irix doesn't have 'head'... 6*2b15cb3dSCy Schubertcl1=`head -1 ChangeLog || sed -e 1q ChangeLog` 7*2b15cb3dSCy Schubert 8*2b15cb3dSCy Schubertcase "$repotype" in 9*2b15cb3dSCy Schubert dev) ;; 10*2b15cb3dSCy Schubert stable) ;; 11*2b15cb3dSCy Schubert *) echo "Unexpected repotype <$repotype>" 12*2b15cb3dSCy Schubert exit 1 13*2b15cb3dSCy Schubert ;; 14*2b15cb3dSCy Schubertesac 15*2b15cb3dSCy Schubert 16*2b15cb3dSCy Schubertcase "$repotype$cl1" in 17*2b15cb3dSCy Schubert dev---) 18*2b15cb3dSCy Schubert echo "Dev repo ChangeLog must not begin with '---'!" 19*2b15cb3dSCy Schubert exit 1 20*2b15cb3dSCy Schubert ;; 21*2b15cb3dSCy Schubert dev*) 22*2b15cb3dSCy Schubert ;; 23*2b15cb3dSCy Schubert stable---) 24*2b15cb3dSCy Schubert ;; 25*2b15cb3dSCy Schubert stable*) 26*2b15cb3dSCy Schubert echo "Stable repo Changelog must begin with '---'!" 27*2b15cb3dSCy Schubert exit 1 28*2b15cb3dSCy Schubert ;; 29*2b15cb3dSCy Schubertesac 30